blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0871fca74c943e21055e9e78232ead205ec505f9 | 854fd0d86707a0035eddc2d83300adb3710ac6cb | /1.py | d4299bb76293d054a362a4209e05626d0291b087 | [] | no_license | ForTom/spiders | 5d379af0cf42e4341105ef331eea4fbd27e546f6 | 5a5a644413b02d03a13c6f2614993e9b1989e3d0 | refs/heads/master | 2021-04-27T00:04:39.344879 | 2018-03-04T02:22:50 | 2018-03-04T02:22:50 | 123,747,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | 1.py | '''
豆瓣top250的爬取存储
显示爬去进度条
三部分:
1获取html
2找到所有li
3打印所有内容
4保存文件
'''
import requests
from bs4 import BeautifulSoup
import time
def getHtml(url):
try :
kv = {'user-agent': 'Mozilli/5.0'}
r = requests.get(url, kv)
r.status_code
r.encoding = r.apparent_encoding
return r.text
ex... |
f163f1eab317f38c6a4d9bae0f1f4e524f563b06 | f4ecf945e9d96ca4dd90f4a240c0d02480fab831 | /levelOrder.py | 91e40fb691c4e32c92c752d4c65ba1bfc082868c | [] | no_license | AmandaJisoo/Interview | 3030ae50909a81ea7644d5c204fba91ac68fa2f0 | 443baffcf16e27cb9373ee1671aaf520eea32538 | refs/heads/master | 2020-12-03T12:07:52.826478 | 2020-08-21T06:25:58 | 2020-08-21T06:25:58 | 231,309,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | levelOrder.py | class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
res = []
if not root:
return res
self.helper(res, root, 0)
return res
def helper(self, res, root, level):
if n... |
14d325bd59f78833e40dbe448d36350f8ac496b5 | d271993bf1579e835995e0d4c2427dbe1abddde3 | /gim/common/tests.py | 7090bcb82caa400dc2737bd66ff284f4f2c37b24 | [] | no_license | Mesus/Uvis | 5392507083abf02a6a98c59c20bb82a82072acbf | 9dd54dea852a61a60d1ac54611566c03da6f4dfd | refs/heads/master | 2021-01-22T19:59:16.065873 | 2017-03-17T03:19:32 | 2017-03-17T03:24:40 | 85,266,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | tests.py | #encoding: utf-8
import read_office,jieba
from wordcloud import WordCloud
import matplotlib.pyplot as plt
from matplotlib.font_manager import *
import nlp_processing
ro = read_office.office()
# print ro.read_docx(ur'/home/vicent/Documents/1.docx')
# ro.read_excel(ur'/home/vicent/惠州农场2016020111每日采收表.xlsx')
def h():
... |
72738cae38c0f1403d3dbd5c822c7b0104f8a8bf | 96e742fbfd8890b28ce0cdcf812434f260699607 | /fast/setup.py | c25f8a1807077967c63b8c618640b848b3d5e9ab | [] | no_license | carson/keiro | 37f77174f7962c318cc079bffcb7dd34fe835c5b | c7902347c0d7de8a06f159b5d7e11e01b4014bd3 | refs/heads/master | 2021-01-15T17:29:37.516571 | 2013-04-14T13:43:12 | 2013-04-14T13:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | setup.py | #!/usr/bin/env python
from distutils.core import setup, Extension
vector2d_module = Extension(
'_vector2d',
sources=['vector2d.i', 'vector2d.cpp'],
swig_opts=["-c++"]
)
particle_module = Extension(
'_particle',
sources=['particle.i', 'linearparticle.cpp', 'particle.cpp', 'geometry.cpp', 'vector2d.... |
586b3fd9f921ce1605d63cfb9ffc3b86033b59dc | 0e9d28d5d6325e23c3e77493e2a447f16d057d20 | /kudago/api/methods/base_api.py | 86a06e3ea5ece555712c434951a0fdec4934d775 | [
"MIT"
] | permissive | polarbearjngl/MMM-KudaGo | 796bc736467d29595edab0a170e852e7174ee240 | 4657a7d89967e3f829c67bc2bf819a8b856dd1ab | refs/heads/master | 2021-07-01T10:56:29.845807 | 2021-02-14T19:27:04 | 2021-02-14T19:27:04 | 216,360,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | base_api.py | import requests
from json import JSONDecodeError
from requests import HTTPError
class BaseApi(object):
"""Base API class."""
API_URL = 'https://kudago.com/public-api'
VER_1_4 = '/v1.4'
LANG = 'ru'
@staticmethod
def _request(method, url, is_decode_to_json=True, params=None, headers=None, data... |
78a3bf858c71b6698c8cba9f1f7efdc8942aaaed | 58c09d2ee3de857574546c59712c0c11a0f199c5 | /14.2.practica_for.py | 5577b8594c03411df029ab69be22297aeafc979b | [] | no_license | Vladimir4063/Python_PildorasInformaticas | 6e9d19cca1a304280dd2ca2bfb93896b9625e778 | 6c033da8c02b19328ff4a146a569efb7ee515e8f | refs/heads/master | 2023-08-07T16:53:14.070487 | 2021-09-24T00:23:29 | 2021-09-24T00:23:29 | 337,602,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | 14.2.practica_for.py | """
for i in range(5):
print(f"valor de la variable {i}")
for i in range(5, 50 ,3):
print(f"valor de la variable {i}")
"""
valido = False
email = input("Introduce tu email: ")
for i in range(len(email)):
if email[i] == "@":
valido = True
if valido:
print("Email Correcto.")
else... |
b1766e0997779a7aa6e3dbadd7a82c541b965ebc | 3d4a6bd2297ac04b112bc8d24fa1118f692a4e2b | /procon_python/src/atcoder/abc/past/D_153_Caracal_vs_Monster.py | f0a1dcbfb39efc1ec3d40a6c71e6dac73d4cdd87 | [] | no_license | WAT36/procon_work | beba626d9b9c1effded8c9b9f56fbc37abd13636 | 2e6bc42e6f25938afe740682ad7b6c21a0838d42 | refs/heads/master | 2021-08-16T11:56:25.048392 | 2021-06-17T14:13:10 | 2021-06-17T14:13:10 | 162,991,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | D_153_Caracal_vs_Monster.py | from collections import deque
h=int(input())
q=deque()
count=0
q.append(h)
while(len(q)>0):
hi=q.popleft()
if(hi==1):
pass
else:
attacked_hi=hi//2
q.append(attacked_hi)
count+=1
ans=0
for i in range(count):
ans+=(2**i)
print(ans)
|
52ab381cf5b1b63d83ee90767b98724ff3d3da07 | 1881f3ad04559b5df91bce1005756ff8ff77799c | /classes/card.py | 8bee3868d30baa4a2ef88432942c414ee54b1d09 | [] | no_license | Rodrixkill/monopoly_python | de5ca55e2ffe6350822a1a82b5e1e71fc6fdb3bb | b2dbc28a8aeb6a48cba6a45eee94e356a22453ad | refs/heads/master | 2023-01-04T01:14:19.947210 | 2020-10-26T14:19:22 | 2020-10-26T14:19:22 | 298,356,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | card.py | class Group:
def __init__(self, color, properties, building_cost, is_color=True):
self.color = color
self.properties = properties
self.building_cost = building_cost
self.is_color = is_color
for prop in self.properties:
prop.group = self
def owner(self):
... |
22dd2cdb2bd6d20e75a9dbc1d02a06f7c6c7f780 | cf519b0261f3c9be29853b505c6cc1596b71c72b | /wifi/utils.py | 33f3e53d89de99974146ef588646ec8d5e05e5aa | [
"Apache-2.0"
] | permissive | DentonGentry/gfiber-platform | 5b7c0e62e44608866734cfaecd9094df6bafd11f | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | refs/heads/master | 2021-01-15T16:10:24.809820 | 2016-05-16T19:22:08 | 2017-06-26T21:58:54 | 99,709,543 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,600 | py | utils.py | #!/usr/bin/python -S
"""Small util functions for /bin/wifi scripts."""
from __future__ import print_function
import collections
import math
import os
import re
import signal
import subprocess
import sys
import time
import unicodedata
_CONFIG_DIR = '/fiber/config/wifi'
FILENAME_KIND = collections.namedtuple(
'F... |
111778ce18c60ecfc7163c16f4cd6995858b7144 | 61ff16572f413b78c7f1098e36b060a0e9913acc | /Singly_linked_list.py | 32b203a8a198ec0035eeb936c8a8c385dfcd8fad | [] | no_license | adi226/Python_data_structures | 9d9b99828fa8a6dc5f2dad8d1c908de854c039d6 | d79577f3099152624bf60d51c47a16ace243188c | refs/heads/master | 2022-11-18T02:19:49.680061 | 2020-07-17T02:57:56 | 2020-07-17T02:57:56 | 280,312,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | Singly_linked_list.py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 7 00:48:18 2020
@author: HP
"""
class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def printList(self):
temp = self... |
ca53ff4f62a902ac58394f9ba579f78dd5f87b83 | 984a79a02eef973470d13aed32ed994f469620f5 | /devsearch/projects/forms.py | 7fca35bda5246f5f1a508057c7b98cb095939aa1 | [] | no_license | Sanyam101/lab | 0ebda4247ed2965525f4a4e68aae7ed9fd3e75bb | 0b13c552a2d99f63be8f460c186eff14e47d8b86 | refs/heads/main | 2023-07-18T06:46:08.850195 | 2021-09-07T07:46:53 | 2021-09-07T07:46:53 | 401,976,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | forms.py | from django.db.models import fields
from django.forms import ModelForm, widgets
from .models import Project
from django import forms
class ProjectForm(ModelForm):
class Meta:
model = Project
# view all fields in the form
#fields = '__all__'
# view only selected fields
fie... |
0674c8d03544de3707fe4f1fc13dc2465e0dcbc0 | 04e1d84f64b393b2aaf8c3d52178bf705af4ba2d | /qualification/urls.py | 5a85bcb29e0968521ad1d281002cf4af131c5826 | [] | no_license | jake284773/etrack | 07d718dd8ff9e627ecf2de8b4d92ee145c75c12a | 258935876aa995f9e6b886de5ea3ef6d7ec89cbd | refs/heads/master | 2023-08-07T18:07:01.643686 | 2016-12-24T23:48:14 | 2016-12-24T23:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | urls.py | from django.conf.urls import url, include
from . import views
app_name = 'qualification'
pathway_urls = ([
url(r'^create$', views.PathwayCreate.as_view(), name='create'),
], 'pathway')
unit_urls = ([
url(r'^create$', views.UnitCreate.as_view(), name='create'),
url(r'^(?P<pk>[0-9]+)/$', views.UnitDetail.... |
c2b725f5122da269752aa0c6b0d46c05486d68fb | c004075e0dac6a398324a08fd63ea1c416147926 | /vip/kendeda/air/backend/influx_cloud.py | 4592cfc559f7620f95408fd9663a4a9f107dc926 | [] | no_license | VicerExciser/VIP-KendedaNode | 586b7c52a3eae157047f395aa101a4bc55bf6609 | c218e0bb146cbc09489c34d70a8889f6b3be96ae | refs/heads/master | 2023-01-14T09:00:57.164952 | 2020-11-19T03:05:14 | 2020-11-19T03:05:14 | 292,940,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,761 | py | influx_cloud.py | """
Connect to InfluxDB 2.0 - write data and query them
"""
from datetime import datetime, timezone
import time
from influxdb_client import Point, InfluxDBClient
from influxdb_client.client.write_api import SYNCHRONOUS, WriteType, WriteOptions
import requests
import subprocess as sp
import enum
try:
from util.util im... |
ea85ce368971e57fd7ceb64e3687624ac269bb48 | ea85e903db500eee66fe70ed3029b05577494d9d | /2020-11/1249. 移除无效的括号.py | 1a2af7657f64d1a9c4ab6e35f3409a863eb8ea42 | [] | no_license | baolibin/leetcode | fcd975eb23e5ca3fc7febbd6c47ec833595b5a51 | bc0540ec42131439be144cca19f6355a01de992a | refs/heads/master | 2021-08-15T20:40:25.580955 | 2021-01-20T09:57:21 | 2021-01-20T09:57:21 | 76,557,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | 1249. 移除无效的括号.py | # coding:utf-8
'''
1249. 移除无效的括号
给你一个由 '('、')' 和小写字母组成的字符串 s。
你需要从字符串中删除最少数目的 '(' 或者 ')' (可以删除任意位置的括号),使得剩下的「括号字符串」有效。
请返回任意一个合法字符串。
有效「括号字符串」应当符合以下 任意一条 要求:
空字符串或只包含小写字母的字符串
可以被写作 AB(A 连接 B)的字符串,其中 A 和 B 都是有效「括号字符串」
可以被写作 (A) 的字符串,其中 A 是一个有效的「括号字符串」
示例 1:
输入:s = "lee(t(c)o)de)"
输出:"lee(t(c)o)de"
解释:"lee(t(co)d... |
e0c2c231b27305cc0fb5f15d0fb3934a3216ce29 | c9b4022f6ffed054bcc16a140fe24a4dbe3d58b2 | /workshop/workshop_app/forms.py | 5e4178f4cfe15ab696d7893c0fc2b9a453443494 | [] | no_license | BrendanPotts/workshop_Django | be1f2ab1d924fbd65534fd81049074de62b58e89 | 4b496af1567e167988e4a832cf2dcedb2437ea34 | refs/heads/master | 2021-01-21T11:45:12.695760 | 2015-03-11T13:03:23 | 2015-03-11T13:03:23 | 32,017,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | forms.py | from django import forms
class FirstForm(forms.Form):
text = forms.CharField(30, label='Entry', required=True)
def clean_text(self):
super(FirstForm, self).clean()
if 'bla' not in self['text'].value():
return self.cleaned_data['text']
raise forms.validationError('"bla" was found')
# from django import for... |
5718a407e18069311ec2e647d51f819d53ce8aeb | 83be9327504d7e4b60336adbd8cd054daa16ac7f | /DataStructure&Algorithms/PythonPrimer/Exercises/C_1_19.py | ef7e1fe57c4d99c381481c60f390c7f4eb5d7a00 | [] | no_license | tme5/PythonCodes | f3275e8e0ae797d5dc84d495930f45cf9e5671a7 | 3b0cbb0383de0855a11711c0d274fbb66a14b4a9 | refs/heads/master | 2021-06-21T21:57:43.783414 | 2021-03-04T14:25:30 | 2021-03-04T14:25:30 | 189,532,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | C_1_19.py | '''
Created on Apr 2, 2019
@author: TME5
'''
print([chr(ord('a')+i) for i in range(0,26)]) |
b375d32a6c38339d7e2ef10e312a5c0d3c22e037 | b42fbcc88f9299410783a8f766f5a4e8e3f7dd25 | /generator.py | bfc58f7fe52eacd65aea82cc50af18f74c51aab5 | [] | no_license | zimmaz/ms_thesis | ec30016558f111c1f85193d69c47d3351eddd788 | dc69bf03ef9d935d899d150ad36f42fbd6abdb2a | refs/heads/master | 2023-06-05T20:21:32.076580 | 2021-06-23T17:55:00 | 2021-06-23T17:55:00 | 370,040,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,942 | py | generator.py | import re
from glob import iglob
from random import uniform, randint
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import matplotlib.patches as ptc
import matplotlib as mpl
import numpy as np
from matplotlib import transforms
from scipy.spatial import Voronoi
from shapely.geometry.polygon im... |
fc8f22a1db3b397464c0c1f513312de3a46ede5c | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/8_4_1_1_20210213213904.py | 73e0e29d671a91636e0e4220a02a2c20d16501df | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | 8_4_1_1_20210213213904.py | '''
Author: Daylight
Date: 2021-02-13 21:35:15
LastEditTime: 2021-02-13 21:39:04
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python\8_4_1_1.py
'''
'''
继8_4_1后的完善版代码,用函数高效实现其整个过程
'''
def print_models(unprinted_designs, completed_models):
while unprinted_designs:
current... |
b97c350feaf28ba57681d3d2467f2988f3b1995f | dec4ed5f8f74dd54f189ea11072f454dea3f60b2 | /scripts/map_db_to_image.py | fda092976532725c73f2d4a537869db987055ee6 | [
"Apache-2.0"
] | permissive | elsid/hafen_bot | 4329ce1d82dc6f6d2530163968551358ac6c18f9 | b817a1fc5a72833341e72596d76ab7163ffb8df6 | refs/heads/master | 2023-03-03T10:43:48.691739 | 2021-01-29T22:36:13 | 2021-02-14T14:05:23 | 283,994,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | map_db_to_image.py | #!/usr/bin/env python3
import sqlite3
import click
import collections
import json
import cairo
import math
import os.path
@click.command()
@click.option('--output', default='.', type=click.Path(file_okay=False))
@click.option('--kind', default='tiles', type=click.Choice(('tiles', 'heights')))
@click.argument('path',... |
ba25d6e88910c59b4ef45b70c331b22b8d9e9ebe | d66899cbeee8f226ee3e7331e69dd71487939679 | /ssh_manager/models/key.py | b060ee95ad00425e8e63b98181b1a2c2a4e171ed | [] | no_license | bolinette/ssh-manager | b5d4ba8616e9ff16d46d59a21f0f466b6926b028 | 9ccbda1079c308b69b7795750fa7bcf62c37e249 | refs/heads/master | 2023-08-30T10:56:38.811866 | 2021-11-04T16:00:06 | 2021-11-04T16:00:06 | 424,620,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | key.py | from bolinette import core, types
from bolinette.decorators import model
@model('key')
class Key(core.Model):
id = types.defs.Column(types.db.Integer, primary_key=True)
uid = types.defs.Column(types.db.String, entity_key=True, nullable=False)
name = types.defs.Column(types.db.String, nullable=False)
|
9b75570f6dd6c75c86ad57bbbd6773e43fd6dec1 | 420aad3046418c4fcb36f1dfe2804ab8a38e3c27 | /striped/common/signature.py | 7c7ba88a9a0217766016828ebe1a0cb299fcc56e | [
"BSD-3-Clause"
] | permissive | bjwhite-fnal/striped | 5dfaed86c78cef1707928c30fd0f1a096b06da5b | eef1a4d544fa1b97fde39d7ee5ef779071218891 | refs/heads/master | 2022-02-28T11:18:34.011258 | 2019-09-26T19:55:51 | 2019-09-26T19:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | signature.py | import hashlib, base64, time, uuid, random, sys
from .DataExchange2 import to_bytes, to_str
PY3 = sys.version_info >= (3,)
PY2 = sys.version_info < (3,)
# init random state
rsave = random.getstate()
random.seed() # init from random source
my_rstate = random.getstate()
random.setstate(rsave)
def hash_a... |
fb40f4054aa8bf9b4b19b1119b7280c604861444 | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /FindPossibleRecipes.py | bfbe99bd58bcd8ff38b1057c1a2f655009a294fb | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | FindPossibleRecipes.py | '''
2115. Find All Possible Recipes from Given Supplies
You have information about n different recipes. You are given a string array recipes and a 2D string array ingredients. The ith recipe has the name recipes[i], and you can create it if you have all the needed ingredients from ingredients[i]. Ingredients to a recip... |
18d8a9eabf62d4cb934ba1bf195cb06f2a191a91 | 3f06a7af80b05ceb852289758383df4eab3c8f6b | /streaming_chat.py | 4ed97e46139a25036e450e7b87cad5b18da5f992 | [] | no_license | csaravia97/Twitch-Chat-Dashboard | 6d14fb1b9467ff0c6e60c883655f0cad3074ee89 | 3425921913dda3d5b7904e80f7f8b04344e24d7e | refs/heads/master | 2022-12-18T09:25:18.480252 | 2020-09-23T23:08:30 | 2020-09-23T23:08:30 | 298,111,788 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | streaming_chat.py | import sys
import socket
import constants
import logging
import re
import yaml
from time import time
from datetime import datetime
from collections import defaultdict, Counter
from os import listdir
# Pull from constants file so certain information isn't public
server = constants.server
port = constants.port
token = ... |
6808bd5dfe3d1b6a72e61d5eecbd3647edd31926 | 2ae95f690e0ed16a730aee9544b4b8f63789a0a4 | /gogs/push_repo.py | 7d2e6f678ea078e42b6ff5d066c57696078140e4 | [
"MIT"
] | permissive | unfoldingWord-dev/tools | 9f147672719e9e570f9f39cf38f915a9b4c25b64 | f337286a99e11d5ceb1537bff07ee10f0d6c07ed | refs/heads/develop | 2023-08-09T15:00:16.883806 | 2023-07-31T19:43:53 | 2023-07-31T19:43:53 | 11,344,473 | 7 | 14 | NOASSERTION | 2022-12-11T08:05:58 | 2013-07-11T14:44:36 | Python | UTF-8 | Python | false | false | 7,457 | py | push_repo.py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 unfoldingWord
# http://creativecommons.org/licenses/MIT/
# See LICENSE file for details.
#
# Contributors:
# Richard Mahn <rich.mahn@unfoldingword.org>
#
'''
Pushes a given repo to GOGs and creates the user of the repo if user doesn't exit
'''
... |
a1f191fe3a02ddb528c862615d2656060be869eb | f1313bea84d841fb3d943df2dcdd929824d38b6c | /tests/lib/utils.py | 0be63afae3913ed3ce51746e6b093662c4c89d13 | [
"Apache-2.0"
] | permissive | aristanetworks/ansible-cvp | 05b080f86e0d1696e6aba2a9e1a197108cc8656f | 04380dbe54f09ae72f78c4081303f8d0cd76da10 | refs/heads/devel | 2023-08-31T22:41:02.656909 | 2023-08-29T22:03:09 | 2023-08-29T22:03:09 | 197,042,746 | 62 | 67 | Apache-2.0 | 2023-09-05T18:49:31 | 2019-07-15T17:24:45 | Python | UTF-8 | Python | false | false | 3,852 | py | utils.py | """
utility.py - Declaration of utility functions.
"""
from __future__ import (absolute_import, division, print_function)
import logging
import sys
import requests.packages.urllib3
from cvprac.cvp_client import CvpClient, CvpLoginError, CvpRequestError
from ansible_collections.arista.cvp.plugins.module_utils.resources.... |
d0b332a7e2e5599391b54b54126789f4fbaddebb | c698fb03aa2bf034904a0310931b473b6da66fdc | /com/study/algorithm/reference/Linked List Cycle.py | af24cab2e2ff8e86854a481926462c65e1647aba | [] | no_license | pi408637535/Algorithm | e46df1d07a519ab110e4f97755f461a1b2b7c308 | 75f4056ec6da01f7466a272871a7f7db579166b4 | refs/heads/master | 2021-08-29T19:19:53.368953 | 2021-08-22T16:30:32 | 2021-08-22T16:30:32 | 213,289,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | Linked List Cycle.py | class ListNode(object):
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution(object):
def hasCycle(self, head):
if not head or not head.next:
return False
slow = head
fast = head.next.next
while fast != None:
... |
90313cdb0f835fd989d853e50125042f63c122bb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2614/60634/292820.py | 12f6e67bb3e8f435549c3e44066796f04e6e27c9 | [] | 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 | 412 | py | 292820.py | test = int(input())
for t in range(test):
n = int(input())
A = input().split(' ')
B = input().split(' ')
C = input().split(' ')
D = []
E = {'#'}
for x in range(n):
D.append(int(A[x])-int(B[x]))
E.add(int(C[x]))
count = 0
for x in D:
if x in E:
... |
1293534f1ce9180f5b25751083322173dc82459a | 2348bb39e076c2a3fef4800d7d2ee4a16cff992a | /python_Ashwin-A-K/day_26.py | ab8297f2d3c78d7883fc400131dbc26ba47ee330 | [
"MIT"
] | permissive | 01coders/100-Days-Of-Code | a9717bcbc0a8581548ad61d68f9ecc522007c536 | 98928cf0e186ee295bc90a4da0aa9554e2918659 | refs/heads/master | 2020-05-18T12:03:34.623600 | 2020-03-04T12:37:12 | 2020-03-04T12:37:12 | 184,396,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | day_26.py | #!/usr/bin/python
# File Handling function for working with files in Python is the open() function which takes two parameters; filename, and mode.
# There are four different methods (modes) for opening a file:
# "r" - Read - Default value. Opens a file for reading, error if the file does not exist
# "a" - Append - Op... |
8354056c152bdf17f7ea380c69d51afba19e0435 | 4b08e55f139be9fbb9fb21890188f2cce63a3633 | /src/conf/settings/__init__.py | 9c19c22646ce3d99504abe0c2883f4d5bd1c3c7b | [] | no_license | LighTechLLC/todo-backend | 7c313126a4f0948ebd9e6f93b504851247a7ae65 | beacc29fbd0b21e6eab33d2f9ec0061c869445ae | refs/heads/master | 2023-08-17T00:28:17.009085 | 2021-09-29T08:14:47 | 2021-09-29T08:14:47 | 411,207,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | __init__.py | from split_settings.tools import optional, include
include(
'base.py',
'templates.py',
'databases.py',
'swagger.py',
'rest.py',
optional('local_settings.py'),
)
|
af89f06a52f20f1cf64668b970675096a3a688f4 | 8983c02e0d2231722bc8f8e5031fdb1fbd735363 | /__init__.py | 5d91f3d7c18a96ee3244cf5e145116b740ca5ed5 | [] | no_license | brentini/animation-nodes | 02043f0d49f17b92d928c2e32c8f48f8a633d52b | cfc775a8ce8f11e89b89067881a77680c0f8895e | refs/heads/master | 2020-02-26T17:39:55.445898 | 2014-10-06T16:02:19 | 2014-10-06T16:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | __init__.py | '''
Copyright (C) 2014 Jacques Lucke
mail@jlucke.com
Created by Jacques Lucke
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versi... |
8597846df157df8bace5959a0e306516ba9fa164 | 3e478daa58fbd63675a535fcac429c4fd7578cf8 | /configs/selfsup/_base_/schedules/sgd_lr02_ep200.py | 9bd33816893664479d1e278782d6c645d6b1d652 | [
"Apache-2.0"
] | permissive | slchenchn/PolSAR_SelfSup | 1095acd6fdd156d5d2ab9fcdd6f099afb079a675 | 281b40a6500fde5b4837247015edab3a5e32dbfb | refs/heads/master | 2023-09-02T17:51:54.204875 | 2021-11-19T05:24:48 | 2021-11-19T05:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | sgd_lr02_ep200.py | '''
Author: Shuailin Chen
Created Date: 2021-10-22
Last Modified: 2021-10-25
content:
'''
# optimizer
# optimizer = dict(type='LARS', lr=0.3, weight_decay=0.000001,
# momentum=0.9,
# paramwise_options={
# '(bn|gn)(\d+)?.(weight|bias)': dict(weight_decay=0., lars_... |
23c6eafc1b5d0d74a09b0f9bd2a9ac0ad6e8fa3f | e22b4e6cde3bb17da8d69b04f42b843ae4265c6e | /Python/P4 - Factorial Permutations/Q2.py | b12d1223f649c2a004dae3b613509b860ae2ebad | [
"MIT"
] | permissive | hbinl/hbinl-scripts | ee84b954a576fda7d6153cbe7a3690bf35352345 | abc14762f6afd4e23ccd95cecd59a637ced20d89 | refs/heads/master | 2021-03-27T14:48:06.305306 | 2019-03-23T10:16:42 | 2019-03-23T10:16:42 | 41,733,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | Q2.py | __author__ = 'HaoBin 25461257'
from Q1 import *
def permute_alt(n, total_ordering):
# Complexity: O(N!) where N! is the number of total permutations
# works generally the same as permute(), except total ordering now depends
# on the second permutation that you want to convert to.
# Basically second p... |
6f1a07faa07d37ff1d3342a238c6986d05c1e5c8 | 7643d2dd84bcc433533a9bf0711e203c79ba7c4a | /users/views/lab_technicians/equipment.py | 23185ca2d7b16a14d59e7d53e9feb513340fe9e4 | [] | no_license | tngeene/TUK-lab-management-system | 1945ff0d4c218374e6ef635d480f0df6a3f1db44 | 88edc0eafddc3854018291b531d4c3d9505e9c03 | refs/heads/master | 2023-01-14T15:35:47.977904 | 2020-11-24T03:34:13 | 2020-11-24T03:34:13 | 260,839,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | equipment.py | from django.contrib import messages
from django.db.models import Count
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse_lazy
from django.views.generic import CreateView, DetailView, ListView, UpdateView
from users.views.lab_technicians.index import LabTechnicianView
from ... |
ff1e6687b57cad1de81f0a95d2b41e64cbcc089d | 158287465027a266a0a62cc5b84bd810057fcfe8 | /nasa/models.py | fe52957e3c0f903bd76f7bee7665b7b1d08c655a | [] | no_license | scintilla-aircheck/aircheck_com | 8a114c02ba5703e62d5d47959ff0e362bbeba534 | 82517312b3ef7c84506a0e7ece11b86c9fbb3d21 | refs/heads/master | 2021-01-14T09:36:50.705561 | 2016-04-24T19:30:03 | 2016-04-24T19:30:03 | 56,723,659 | 0 | 0 | null | 2016-04-28T21:38:14 | 2016-04-20T21:56:38 | CSS | UTF-8 | Python | false | false | 1,467 | py | models.py | from __future__ import unicode_literals
from django.db import models
from mixins.models import DateMixin
class NasaDataFile(DateMixin):
collection_short_name = models.CharField(max_length=300, null=True, blank=True)
collection_long_name = models.CharField(max_length=300, null=True, blank=True)
hdf = mo... |
88bf7701d5ecd219c90a827029cddd590bb944c1 | 1beab7be1c6854f2bb12f4ca6281eaa494062a86 | /book_1/31/listinherited.py | 986b0f4623a28ded67afd0f803f0cdba8ec0c03f | [] | no_license | isys35/python_books | 67d34b9b956ab38d5b8891d8f4166c330f87e940 | 15457a7dbc4c57281fa6436cc0eec9263b3078e8 | refs/heads/master | 2023-04-08T01:23:01.419427 | 2021-04-05T09:08:50 | 2021-04-05T09:08:50 | 345,997,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | listinherited.py | class ListInherited:
"""
Применяет dir() для сбора атрибутов экземпляра и имен, унаследованных
из его классов; в Python З.Х отображается больше имен, чем в Python 2.Х из-за наличия
подразумеваемого суперкласса object в модели классов нового стиля;
getattr() извлекает унаследованные имена не в self._... |
b06e5b23c0cce9277a144018b52825a9a15d413c | 1dbd513b70f84d4940b36a9cbecbabdb427abdea | /Easy/14.longest_common_prefix.py | 352a43b3f4e986e44d882a5b2ae45b26813b93f3 | [] | no_license | di2mot/LeetCode | 84000ee249f78081785e5b24186e422f747c62d0 | 9a39793a36a29f3ecd8be74fc5e8bcf98fa4d007 | refs/heads/main | 2023-07-30T00:37:39.242662 | 2021-09-11T20:37:29 | 2021-09-11T20:37:29 | 396,120,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | 14.longest_common_prefix.py | '''
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string "".
'''
class Solution:
def longestCommonPrefix(strs: list[str]) -> str:
n = False
s = ''
for i in range(len(strs[0])+1):
for n in str... |
81a76fa0f6fe1b185773595d981d1c0be0a7eb09 | d18bcc87d2165363824ed3380f2a70dd510c85eb | /binding.gyp | df5c658ea1d71de1b75717a836cd71d43fa538ba | [
"MIT"
] | permissive | tjfontaine/node-setflags | b8f293d5aeae37d2b5cb7f3ac348deefdd0c114a | f2896b11e55b94c0ac3be70e0f56f09f2bc4ca6f | refs/heads/master | 2016-09-09T18:40:18.010181 | 2013-08-17T18:53:06 | 2013-08-17T18:53:06 | 12,173,951 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | gyp | binding.gyp | {
'targets': [
{
'target_name': 'setflags',
'sources': [ 'setflags.cc' ]
}
]
}
|
cbec1ee8a02de2ba0ab068c6afc67d2e3cebe6d4 | 548605455caaf74164b68496de8e3dc411ed01e0 | /delivery_correios/models/delivery.py | 624f51d637b394fa31a212af21f23da7d2669b32 | [] | no_license | caa-guarani/odoo-apps | c5008494be36b960d20ccb9be782c0be4102417e | 1be59ad3b21219e3b4882f72dc6228920dc2c42e | refs/heads/13.0 | 2023-03-11T18:30:48.088111 | 2021-03-03T19:27:03 | 2021-03-03T19:27:03 | 306,448,983 | 0 | 0 | null | 2021-03-03T19:27:03 | 2020-10-22T20:16:28 | null | UTF-8 | Python | false | false | 16,930 | py | delivery.py | # © 2020 Danimar Ribeiro, Trustcode
# Part of Trustcode. See LICENSE file for full copyright and licensing details.
import re
import base64
import zeep
from datetime import datetime
from odoo import api, fields, models
from odoo.exceptions import UserError
from requests.exceptions import ConnectionError
class Delive... |
1b7f24911077dc7fb37af748113fbad8e949f351 | 140c5da033b64e0e564339a10772b1a100a89738 | /chapter08-obj-ref/demo_weakref.py | b51184e4b42bcb9fe606f1b0622123a433052fea | [
"MIT"
] | permissive | Adrian888888/fluentpython | 51431739923e4f77c28211743439ff9bb8687a26 | ff89ad5a7da59c71f57b6392c9f5d5c6178e0475 | refs/heads/master | 2020-09-15T19:28:03.678862 | 2018-02-28T08:39:08 | 2018-02-28T08:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | demo_weakref.py | """
为了演示对象生命结束时的情形,使用 weakref.finalize 注册一个回调函
数,在销毁对象时调用。
"""
import weakref
def bye():
print('Gone with the wind...')
def main():
s1 = {1, 2, 3}
s2 = s1
ender = weakref.finalize(s1, bye)
print(ender.alive)
del s1
print(ender.alive)
s2 = 'spam'
print(ender.alive)
if __name__ ... |
ab478c1a862be3cc1a5f4211a569ada946ae09a7 | 896c4c477cb2952c5322c25b80b84333f31b3a95 | /lib/dblayer/backend/postgresql/record.py | c5ac0c972c0fcffde760cb61c8ef3cdf9573acd3 | [] | no_license | viktor-ferenczi/dblayer | 0abd59727c255a1a91c44cf62e021d20af833eaf | 4e9dc8e1e2262a6c2bcbae7bea04b1ae2a7d3346 | refs/heads/master | 2023-06-11T08:52:01.979322 | 2023-05-28T16:36:58 | 2023-05-28T16:36:58 | 40,410,315 | 0 | 0 | null | 2023-05-21T01:37:56 | 2015-08-08T17:10:53 | Python | UTF-8 | Python | false | false | 85 | py | record.py | # noinspection PyUnresolvedReferences
from dblayer.backend.base.record import Record
|
882362b9e5fd1f6ae1abc997bb59d176658619af | 86b7bba19f5a736fd337be40bdd469fdc7e6734f | /bitenum/__init__.py | 2784347b22acbe45232bbe486851b3e6453f3766 | [
"Apache-2.0"
] | permissive | jakedt/bitenum | bdff6dd6068f370822bf2416344d5f9ef585fea4 | 7ef34387584026663e2b903cbb3625f32033bb70 | refs/heads/master | 2021-01-19T03:37:55.059157 | 2016-07-15T19:02:22 | 2016-07-15T19:02:22 | 63,433,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | __init__.py | from .bitenum import BitEnum
__version__ = '0.0.1'
__version_info__ = tuple(__version__.split('.'))
__short_version__ = __version__
__all__ = [
'BitEnum',
]
|
7902a246ea160f547bd868e46abd76c6931114a2 | 726f9fc56aac57c5be1d38ed9a08cd8c9ee45c14 | /analysis_2d.py | 2e1c38f057f6fb3efb29e9849ff9de8b742d2dd9 | [] | no_license | chrisolley/project-b1 | 7edcd8fed6cdfd1e8110f2e549b31f4503f0a26a | f781390692686b8f69c16f07403b1451a7735bd0 | refs/heads/master | 2021-03-27T19:54:47.972468 | 2018-11-18T04:01:24 | 2018-11-18T04:01:24 | 111,545,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | analysis_2d.py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
from b1 import nll_2d
from read_data import read_data
from min_2d import grad_min, newton_min
from helper import latexfigure
# latex file figures- comment out this line if just p... |
9d91af73d57fd7a9b835dac2d5708c25f1899183 | a4e31393a69ae82adbfc2b93f9083e7a37228272 | /fermipy/scripts/merit_response.py | 27966c7460ae11ffa5e408f73a8947fb38d7f1d7 | [
"BSD-3-Clause"
] | permissive | fermiPy/fermipy | c73b40682a6b15d391be2f0a59a74cfffbee925a | fbd4c95ffadbff31cbb9cc862ff84a78dc734ef5 | refs/heads/master | 2023-04-30T21:03:01.575885 | 2023-01-18T00:35:23 | 2023-01-18T00:35:23 | 29,631,181 | 51 | 55 | BSD-3-Clause | 2023-01-26T00:17:39 | 2015-01-22T00:07:34 | Python | UTF-8 | Python | false | false | 4,892 | py | merit_response.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
import os
import copy
import re
import yaml
import sys
import array
import string
import random
from os.path import splitext, basename
import argparse
import numpy as np
import ROOT
from ..... |
7b7f83b098fa025a2a0e66f0a1bfc0896edd71eb | e9ed1b8e225d2a9212d00fe4fbf513eeffef1ab6 | /xblogapps/blogs/graphql/types/post.py | a884180d6577d6f8b767cbfc6661c5dfc47fdf26 | [] | no_license | adepeter/xblog | 890a605ed0c871e14f573fb08e7ef7a23b6e7759 | 8aab86bcb74feb6e01b51b47ce92879bedafac00 | refs/heads/master | 2022-11-18T03:37:27.161012 | 2020-07-15T17:09:02 | 2020-07-15T17:09:02 | 274,519,204 | 0 | 0 | null | 2020-07-01T20:45:02 | 2020-06-23T22:11:55 | JavaScript | UTF-8 | Python | false | false | 152 | py | post.py | from graphene_django.types import DjangoObjectType
from ...models import Post
class PostType(DjangoObjectType):
class Meta:
model = Post
|
6a9b4a1a031247f53eecce2b9c1cc600e7b052d9 | 2e6aa9dd6cf0ce7378b5e4d49e37769bbc6b229d | /Mainfile.py | f2ab10d0286e62a61b889fe1e88a3095bdad97f3 | [] | no_license | joeljogy/Glassdoor-Feedback-Prediction | 5221f4c6ddc47b8b198502658be9b722cae45f6a | 487f19ea4e792f2986817f26eb9acebbd97fd899 | refs/heads/master | 2020-04-07T22:55:59.801284 | 2018-11-23T06:54:14 | 2018-11-23T06:54:14 | 158,790,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,722 | py | Mainfile.py | # -*- coding: UTF-8 -*-
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import nltk
from nltk.corpus import stopwords
import matplotlib.pyplot as plt
from nltk.tokenize import word_tokenize
from nltk.classify.util import accuracy
from nltk.classify import NaiveBaye... |
f8c32b49576ae5527e0ca8a0e1ebe5dea1f6d0fb | 68271484f38df62507c7a2e9f26393b02afde905 | /setup.py | a53607dd1b1f012400b650a033df5d7a732698d9 | [] | no_license | jmilou/evolutionary_model | f4e3c0e70b3e562614f81a5adbe1de9d06b654c0 | c846ba53dfedeac051d5fd411c31187f65e6f896 | refs/heads/master | 2023-06-22T02:12:44.063763 | 2021-07-20T16:08:26 | 2021-07-20T16:08:26 | 109,896,924 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | setup.py | from setuptools import setup, find_packages
import os
import evolutionaryModel
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
with open(os.path.join(PACKAGE_PATH, 'readme.rst')) as readme_file:
readme = readme_file.read()
setup(
name='evolutionaryModel',
version=evolutionaryModel.__ver... |
e41cf8ab8408471900aeff9d804a8287b777dc0c | 7a371003b2f6c6c3059ed462604f89f1f1800d70 | /Tarea 1/main.py | 851a59fd297455a1ed9e63affa038df7fff8d5ad | [] | no_license | cmaldonadoa/cc5114 | c3c625453922ee39bc46cd4a71cc2cb8d7420426 | 1c1ace199be0ca1d72195582dac3bdde26b1930c | refs/heads/master | 2020-07-15T15:45:27.818278 | 2019-12-15T05:29:03 | 2019-12-15T05:29:03 | 205,598,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | main.py | import activation_functions as af
import matplotlib.pyplot as plt
import neural_network as nn
import numpy as np
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
# %%
# Some auxiliary functions
def normalize(x, high, low):
return ((x - min(x)) / (max(x) - min(x))... |
95d182918f20bbe856630152034c59e6a71dfd17 | 6a68e970b54faffd08d8fc59c68eb0327c357ad4 | /backend/project/utils/__init__.py | 055c8335df57e7b0fe190a9bf1eea3a8aa5b9491 | [] | no_license | dev-fahim/ThaLasstProzect1 | c429865a00a6a5797f706997b4d36ecd4d292070 | 7cf627b2b6cb04862e8b0bce47b52cc54df522f0 | refs/heads/master | 2023-01-22T17:07:15.572155 | 2019-07-14T15:33:28 | 2019-07-14T15:33:28 | 192,302,867 | 0 | 1 | null | 2023-01-07T06:27:31 | 2019-06-17T08:07:27 | Python | UTF-8 | Python | false | false | 110 | py | __init__.py | from profile_app.models import MainUserProfile, SubUserProfile, Permission, ApplicationMonthlyPayment, Payment |
a85bee02cc087449c1ef76410fb26bc4c52bf310 | e52a67864cb80e6e76e6859a0c955e3739c39b00 | /misc/test.py | b650573b9ca8fdedbe0ae00469861099f06bf7ea | [] | no_license | MageCraft/pyfreecell | 54c6bcf8eff7076eaad6a55994f27a7677cf77ae | f54c0ae4d9a1783f6ec068cd6e2e2918429b3e23 | refs/heads/master | 2020-12-31T05:55:32.093116 | 2010-12-15T11:18:42 | 2010-12-15T11:18:42 | 56,227,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | test.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#努力再努力 * 努 = 优优优优优优
from itertools import izip, count, imap, ifilter
from operator import and_
#oct_(1,2,3) = 123
def oct_(*args):
sum = 0
l = list(args)
l.reverse()
for i, e in izip(count(), l):
assert e >= 0
sum += e * (10 ** i)
ret... |
9c73832784cf7543c1d1fbc5ceba5d8a7ad9a0bb | d5394899eae25c764d01cfcba093d4477f32de9f | /algo/BlackJack.py | 3691ae5a4adb62de891a041b233da5b356fdf0a8 | [] | no_license | AnaelBourgneuf/imie | 4f74b757b6bff2469f08600c259623744708e51f | 5c214196d7f0a87fd3883ad454a9fef73a689da0 | refs/heads/master | 2021-09-05T08:00:14.896496 | 2018-01-25T12:43:21 | 2018-01-25T12:43:21 | 104,326,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | BlackJack.py | from random import shuffle
def creeJeuMelange(nbjeux):
signes=["♦","♥︎","︎︎♣︎","♠︎"]
start=1
end=13
jeu=[]
for i in range(0,nbjeux):
njeu=creeJeu(signes,start,end)
#affichecartes(njeu)
for j in range(0,len(njeu)):
jeu+=[njeu[j],]
print(shuffle(jeu))
return shuffle(jeu)
def creeJeu(signes,start,end):
... |
d599cb24f43cda608ad8abf65f9f8654a8096951 | eff01c84fefd0a5ed3458e7f88edec8b24984b0a | /unsupervised_learning/PCA.py | af729e9e56bdd831f46056ba57bfeccc178404a2 | [] | no_license | hartimat/data_science_ml_development_program | 527e5f961f9548f18fb98595820edfaf669810dc | f647bbd9f2b33497e7f7fb6be1fcfffa35dbc65c | refs/heads/master | 2023-07-20T13:59:10.678647 | 2021-09-04T16:24:52 | 2021-09-04T16:24:52 | 368,214,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | PCA.py | ###############################################################################
# FILENAME: PCA.py
# AUTHOR: Matthew Hartigan
# DATE: 4-June-2021
# DESCRIPTION: A python script to apply PCA to data.
###############################################################################
# IMPORTS
import pandas as pd
import num... |
fe40bae63a0958fbaeab7b8afcf3290a10cb80ef | fb907a58c2229100ee985e2d47cf4d8d503417da | /Database/download.py | c7d5741a01859ac03a5f3b76b4846e2b0c0ef1c0 | [] | no_license | bpalmeiro/IC | 01021de5a06928384d8c9b2c8fa0ada02b47be4f | 2b64bf06949082f137da37ef69623c9c87ef510b | refs/heads/master | 2020-05-01T00:15:32.328234 | 2016-11-07T21:45:56 | 2016-11-07T21:45:56 | 68,367,207 | 0 | 0 | null | 2016-09-16T09:18:58 | 2016-09-16T09:18:58 | null | UTF-8 | Python | false | false | 1,652 | py | download.py | import tables as tb
import os
import MySQLdb
from base64 import b64decode as dec
class DataSensor(tb.IsDescription):
"""
Stores metadata information for the SiPMs
(position, gain, calibration-constant, mask)
"""
sensorID = tb.Int32Col(pos=0)
channel = tb.Int32Col(pos=1)
pmtid = tb.StringCo... |
8cba51df6cd13345a0c51b4ec945868a086a8355 | 47674d9fcd737d2ece253c999d4399acbeecab9d | /functions.py | 56e41f391f59f9995a3aa08ab21285becb549c81 | [] | no_license | schliip/adbINI | 99bd26047a171ae0653a746cc1d027f7e10112df | 482cfbfa7e379ca7a6cb13c39579506ffdd8ebda | refs/heads/master | 2020-03-29T16:19:13.196104 | 2018-09-26T13:12:20 | 2018-09-26T13:15:30 | 150,108,664 | 0 | 0 | null | 2018-09-25T14:02:27 | 2018-09-24T13:40:58 | HTML | UTF-8 | Python | false | false | 663 | py | functions.py | import subprocess
import platform
import os
def adbCommand(self, command):
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
path = os.path.dirname(os.path.realpath(__file__))
path.replace("\\", "/")
osType = platform.system()
if osType in ["Windows", "Darwin", "Linux... |
aa4a8463464bcd2c5ffd2f5e6557ecc5f29af6e8 | f3171c5d6a87b50f80768abfac6348feceaa62d5 | /jarvis/core/atoms.py | afb2df212c1affc31fa657841f60c438b764eb49 | [
"NIST-PD"
] | permissive | tavazza/jarvis | fda795fa09ca3eb03195d055a04ed4a9bf3554ad | 1c44aba9e648b21744b0d306b1ea9b3c73a5b0fb | refs/heads/master | 2021-12-04T15:19:17.297624 | 2021-10-28T19:35:58 | 2021-10-28T19:35:58 | 120,815,120 | 0 | 0 | MIT | 2019-07-31T01:51:28 | 2018-02-08T20:38:13 | Python | UTF-8 | Python | false | false | 59,250 | py | atoms.py | """This module provides classes to specify atomic structure."""
import numpy as np
from jarvis.core.composition import Composition
from jarvis.core.specie import Specie, atomic_numbers_to_symbols
from jarvis.core.lattice import Lattice, lattice_coords_transformer
from collections import OrderedDict
from jarvis.core.uti... |
8f8a911c7372271fe75ab6685ba5b95ec58c7dfd | 4a011d4456de06a96ccd7851fd05dec22fc649db | /website/canvas/tests/test_cache_patterns.py | b5cde2315cfa588f0a6efee1ae66f0360c77557a | [
"BSD-3-Clause"
] | permissive | pillows/canvas | 82373da9e883d6ba652d81958badee3f440cd8e6 | 4ecf386dc08c5d093b814ef4d08dfb71d1fd5604 | refs/heads/patch | 2021-01-24T21:07:30.362750 | 2015-12-31T05:10:11 | 2015-12-31T05:10:11 | 45,960,362 | 0 | 0 | null | 2015-12-31T05:11:59 | 2015-11-11T04:50:04 | Python | UTF-8 | Python | false | false | 7,920 | py | test_cache_patterns.py | from canvas.cache_patterns import CachedCall, DoesNotExist, InProcessCache, memoize, invalidates_cache, cache
from canvas.models import Comment
from canvas.tests.tests_helpers import CB, create_comment, create_content, CanvasTestCase
class NoCache(object):
def get(self, key):
return DoesNotExist
... |
e9df9dda40f9d922ca8f7a0dc9830d377a50a71a | 5c9c33820752885eae04555de88837b39918d101 | /mainApp/migrations/0007_auto_20210131_0420.py | fffb8aefbac321e6a552262341b8c9cb45829b63 | [] | no_license | Nikitaasdrf/Krevetka | a725407ba5fbc30f6c587717542af3cacaf22a12 | e18cbf509913319c7fef4ac774e244d6b47d65ad | refs/heads/main | 2023-07-26T13:05:36.418209 | 2021-08-30T09:30:03 | 2021-08-30T09:30:03 | 401,281,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | 0007_auto_20210131_0420.py | # Generated by Django 3.1.5 on 2021-01-31 04:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainApp', '0006_auto_20210131_0358'),
]
operations = [
migrations.AddField(
model_name='productbuymodel',
name='Prod... |
4046e5512c87b31810c4cab06ed4fd5beb2bca1d | 8222031588392dc0dfcf2b267784de4065440c40 | /proiecte/random_flag.py | 35c5059bd3e8b162b71435f7503e793aba1955af | [] | no_license | flaviaalexandra11/lectii-python | 13bb15e0f68e8ddb95d561b269f0bf791eba2396 | 77289420a459a6149e27e37e4a668c4370431c66 | refs/heads/main | 2023-03-06T22:45:40.243471 | 2021-02-18T18:47:44 | 2021-02-18T18:47:44 | 327,077,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | random_flag.py | from tkinter import *
import random
window = Tk()
window.title("My Flag")
window.minsize(150, 100)
window.resizable(False, True)
def generate_color():
red = random.randint(0, 255)
green = random.randint(0, 255)
blue = random.randint(0, 255)
color = "#%02x%02x%02x" % (red, green, blue)
return color... |
c0319d14d407f24ddf1ac79584f6afcfc45e04e5 | 9d71b58ac062669b9f12b5feb9de5655db71eeaa | /clients/python/base.py | 103c2d9bef0b4ab05f60662c990f7dabf6cc9d82 | [
"MIT"
] | permissive | a100q100/liac-soccer | a87902fdbdb645cb2dbaa84eecacaaa1343412c2 | 321c58d3836a0878be984ac57f12c0038f3e1ae9 | refs/heads/master | 2020-05-05T10:43:29.786804 | 2015-09-29T17:12:55 | 2015-09-29T17:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | base.py | import socket
import json
import random
__all__ = ['BaseBot']
random_names = ['Dee Dee', 'Dexter', 'Johnny Bravo', 'Ed', 'Edd', 'Eddy',
'Courage', 'Mordecai', 'Bloo', 'Steven', 'Finn', 'Marceline',
'Billy', 'Mandy', 'Bubblegum']
class BaseBot(object):
'''Base class for liac-soccer... |
7e23c705f092e03d053997ace1015f6e6841c13c | 7b4ef49e78ad0a40859ab04a34a65f15712e25ae | /SC101_Projects/recursion_test/sierpinski.py | d4ea920ed2077c853d1e0aaa83856ffb5578cd0e | [
"MIT"
] | permissive | cyjangel/MystanCodeSC101Projects | acf6062b7b6133f39086eec4ce84ddd2e31167bd | 3917e6b1edf2743d1aed63e215c5c9a02e547a8e | refs/heads/main | 2023-07-19T21:40:03.450380 | 2021-09-04T08:21:11 | 2021-09-04T08:21:11 | 402,793,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | sierpinski.py | """
File: sierpinski.py
Name: Angel Chen
---------------------------
This file recursively prints the Sierpinski triangle on GWindow.
The Sierpinski triangle is a fractal described in 1915 by Waclaw Sierpinski.
It is a self similar structure that occurs at different levels of iterations.
"""
from campy.graphics.gwindo... |
1dace080db0437395a0b87e89ec36091ad91c2d8 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_8036.py | b8b5f6a3e512f25dee9943bddb10b964f164a20e | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | python_8036.py | # Django admin directory on Debian
sudo updatedb
locate django/contrib/admin/media/
|
496cad2e98baf04499f210c72df0c20e6abd69c5 | c96202d9cac0f7bde0c24da8009c46b2b4149071 | /dungeon.py | 64d2f52b99fc4b97f612444f86e223877383878d | [] | no_license | ayan-kundu/wumpus_game | fe5cea0e5ed172eb2a90938edd808040cae29357 | aca503c7d097880bd2ea2c404076234efb57b4d7 | refs/heads/main | 2023-02-20T01:10:48.296869 | 2021-01-24T10:37:32 | 2021-01-24T10:37:32 | 332,421,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,139 | py | dungeon.py | # dungeon.py
#
# Code to display information about the game in a window.
#
# Shouldn't need modifying --- only changes what gets shown, not what
# happens in the game.
#
# Written by: Simon Parsons
# Last Modified: 25/08/20
from utils import Pose
from graphics import *
import config
class Dungeon():
def __init__... |
ff9abadd3525ba3fec56f253b3eed0edbd703d26 | f928b19352fc727d6cf58d4715c07d313bd42bb7 | /hw4/problem_files/test_only_words.py | 84a4052084e32a4002d1e58650b8c0d93236696f | [] | no_license | B05901022/ML2018FALL | 4440089c77afb96180c112d83e041c923fa3f708 | b83f3fe46d8aa431763ae12b1116f8d8750188da | refs/heads/master | 2021-10-11T11:21:23.598795 | 2019-01-25T03:51:10 | 2019-01-25T03:51:10 | 149,019,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | test_only_words.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 19 11:09:32 2018
@author: austinhsu
"""
import numpy as np
import jieba
from gensim.models import word2vec
#from keras.utils import to_categorical
#from keras.preprocessing.sequence import pad_sequences
#from keras.models import Sequential
#from ke... |
9bd9d7951752c595ae66f8d8b95a148a75a97d84 | f16fc55efe436aba08a0c892035d8083df3046a9 | /product/migrations/0009_auto_20210103_2030.py | cdaf9a4b89c4df6a401da9eeaf7a3ab6a1c18b83 | [] | no_license | shubham37/ecom_backend | 35720dac336f81d292cc1822a667630d5888f883 | 9f7df1440b44f51cfb3c490a75cb1543cbc710c1 | refs/heads/main | 2023-02-27T11:15:18.545838 | 2021-02-08T06:34:49 | 2021-02-08T06:34:49 | 317,912,498 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | 0009_auto_20210103_2030.py | # Generated by Django 3.1.2 on 2021-01-03 20:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0008_auto_20210103_2005'),
]
operations = [
migrations.CreateModel(
name='Feature',
fields=[
... |
5d8b51de7ec5a5411858e72352baf60d7febb3b6 | b03424be411d3c36dc97040501b2d698dfec68c3 | /subsample_test/sdss_psf/ser/test_deblend.py | 7e2a6de45518d462f78fcbb7aefacc66aeba77e7 | [] | no_license | smoh/ETGOutskirts | 4694f9456b6a71e1f9c44c34f7fccc0bb401d18e | c81a32ce1d2b8f125d394bd378725d167b64e222 | refs/heads/master | 2020-05-17T20:25:25.958917 | 2015-01-06T04:19:09 | 2015-01-06T04:21:19 | 16,529,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,799 | py | test_deblend.py |
from pylab import *
from astropy.table import Table
import mpltools
mpltools.set_pub_single()
rc('savefig', dpi=50)
nsa = Table.read('../../SampleZMprobaEllSub_visual.fits')
traw = Table.read('raw/RAWFIT00000.00048.fits')
tmasked = Table.read('masked/RAWFIT00000.00048.fits')
tdeblended = Table.read('deblended/RAWFIT0... |
aa08998252e8509208dd778a5872b347463d6aaf | 370985b10bc02bfc3a413277b3694233347d85ff | /handler.py | 8a9c21a8687de6fa19fe582b20e56747b16a9998 | [] | no_license | buddylindsey/serverless-weather-notifier | 32c67304fb4836e17fd58fab04f134586aa9db44 | 0d44313762bd462315e52ee1825d6cb90df46942 | refs/heads/master | 2023-05-28T04:02:09.586695 | 2019-06-13T03:02:59 | 2019-06-13T03:13:24 | 191,681,490 | 0 | 0 | null | 2023-05-22T22:27:57 | 2019-06-13T03:04:56 | Python | UTF-8 | Python | false | false | 1,973 | py | handler.py | import os
import arrow
import requests
from twilio.rest import Client
DARK_SKY_API_KEY = os.environ.get("DARK_SKY_API_KEY", "")
TWILIO_ACCOUNT_SID = os.environ.get("TWILIO_ACCOUNT_SID", "")
TWILIO_AUTH_TOKEN = os.environ.get("TWILIO_AUTH_TOKEN", "")
TWILIO_FROM = os.environ.get("TWILIO_FROM", "")
FORCAST_URL = "htt... |
2056ba11a3422d21d2f0ce1d43ab810d899560ad | 7505dc96c0c99691abaa08ceb026e0bf9cfd1214 | /website/admin.py | 40717e0e97d6ecfaf6e88aade670bbb512cf4276 | [] | no_license | sourabhtkd/pgvalidation | e98ec129e71d6f187b4d67c04cd2c746343a9156 | ca10c7cb146a7b175a7f8b949da376ace0847812 | refs/heads/master | 2023-05-31T03:04:35.012751 | 2021-06-07T09:56:25 | 2021-06-07T09:56:25 | 374,614,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | admin.py | import csv
from django.contrib.admin import register
from django.http import HttpResponse
from website import models
from django.contrib import admin
from website.forms import MembershipForm
admin.autodiscover()
admin.site.enable_nav_sidebar = False
@register(models.Membership)
class MembershipAdmin(admin.ModelAd... |
f475cd8b4cc5cf6fcadff294f7a6e2dcde371edd | 94ec4063e6f4a13c124d1c8262e4200813896355 | /Lesson-6 Numbers.py | 5f23003676d2ba96dcf6681476ee8d7bf0aa04bc | [] | no_license | VasiliySilver/PythonLessons | 7bc9c9c3ef2a9f099b1c2eef4c83cbe316b590ae | 61783cb043c2ad1810548e148f1a45b18b513e98 | refs/heads/master | 2022-04-25T13:46:42.344407 | 2020-04-29T13:23:21 | 2020-04-29T13:23:21 | 259,930,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | Lesson-6 Numbers.py | num1 = 30
num2 = 45
num3 = num1 + 10
print(num1 + num2)
print(num3)
x1 = 33333333333333333333333333333
x2 = 77777777777777777777777777777
print(x1 + x2)
print(x1 * x2 + 10)
print(num2/3)
x1 = 6
x2 = 4
print(x1/x2)
print((10+2)/5*100)
|
8e9770b161c1b268f5abde363035525681c7920c | 28822573d69a93ea962389e72f565736bcbc5941 | /gestor_general/migrations/0016_auto_20200805_2107.py | a1f0f9717b83d515cc4efbd4b3ed8c589a592b08 | [] | no_license | maxibesso11/Django-Basic-Blog | c4212b8b9e814eece49641258d451091995b1745 | 2917915488cef3a5965ffbf95b36e8d5ec874395 | refs/heads/master | 2023-03-07T11:52:48.865473 | 2021-02-17T20:12:48 | 2021-02-17T20:12:48 | 286,185,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | 0016_auto_20200805_2107.py | # Generated by Django 3.0.8 on 2020-08-06 00:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gestor_general', '0015_remove_ansewer_post_title'),
]
operations = [
migrations.AlterField(
model_name='post',
name=... |
ed79efc321aeb7803d3f88f3fbf7506607e65cc0 | c2fda603039ffa07e9486715185548ee26913c0a | /db_api/resources.py | 333f63a4e45e5ddaf0fcf849232ed117eadad0bf | [] | no_license | nemonanja/spawncamping-wight | 20924dc2a6f280f29b6b4fd1c17c119e1de8b366 | f019117a41b2679f9734d6c9ac36243c39cd7602 | refs/heads/master | 2021-01-10T07:05:08.535261 | 2015-05-24T17:31:24 | 2015-05-24T17:31:24 | 36,183,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,421 | py | resources.py | import json
from flask import Flask, request, Response, g, jsonify
from flask.ext.restful import Resource, Api, abort
from werkzeug.exceptions import NotFound, UnsupportedMediaType
from utils import RegexConverter
import database
DEFAULT_DB_PATH = 'db/project.db'
#Constants for hypermedia formats and profiles
COL... |
2e925579d46d48e9a4d3b3da99647116f781d217 | aea4fd1d8935c91bb497e87737bdecebcc90b7e9 | /RecordBase/home/views.py | 22e6f42780bf8f65b0af901d089fb25b67e0c235 | [] | no_license | AJH953/dissertation | 4dc4ffd51659cf740d9dabdf70e77887192f55fa | fc7cef1bf0e6acabda78d6332457a65aee79f7e2 | refs/heads/master | 2020-03-12T14:48:49.788748 | 2018-04-30T15:30:51 | 2018-04-30T15:30:51 | 130,676,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,043 | py | views.py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from SPARQLWrapper import SPARQLWrapper, JSON
from SPARQLWrapper.Wrapper import EndPointInternalError
from rdflib import URIRef, BNode, Literal, Namespace, Graph
import musicbrainzngs
import requests
from requests.exceptio... |
6553bbacd6627dfb4ad57c9b2c19f9addb54bb98 | 6128881e158fe57c13228da1ddd2550c84a69c1b | /reeborg/new/mock.py | 69452b2a5a982c801fa5de0603e33656fd509276 | [] | no_license | aroberge/py-fun | 5c6b61308f29b3ddc12c43328d67fc6ff3636731 | dd721e096f8445aee48e69c3a3ebf6501aecc95b | refs/heads/master | 2021-01-19T06:45:34.216897 | 2011-07-09T14:26:19 | 2011-07-09T14:26:19 | 32,361,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | mock.py | def on_beeper(tests=[]):
return tests.pop()
class MockBlockRunner(object):
def __init__(self, block, fake_tests=None, max_nb_instructions=1000):
self.block = block
self.if_branches = False
self.break_loop = None
self.max_nb_instructions = max_nb_instructions
self.nb_inst... |
398454922d3ab55481b2b84622a8d137999a0d54 | 278e88e9413afc983e50610f7002c885720126f2 | /Dalitz_simplified/etest_eval.py | 44f724bbe0e4d3d45c1a66158b3351535d5fc683 | [
"MIT"
] | permissive | weissercn/MLTools | e145c4fb83325d75e879cfe792e6e96dd86da0c9 | 75dc566947437249ad077939941839126eb20016 | refs/heads/master | 2020-12-29T02:42:37.965792 | 2016-12-20T18:31:35 | 2016-12-20T18:31:35 | 50,689,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | etest_eval.py |
"""
This script can be used to get the p value for the Miranda method (=chi squared). It takes input files with column vectors corresponding to
features and lables.
"""
print(__doc__)
import os
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt
import numpy.matlib
from matplotlib.colors i... |
a67bf6d71129401b1e21481e849b38e47539f33e | 21058f3d8554e5f31d4d97f4d564db908aa4ec2a | /Rosalind.py | f9eed20f6df3476d78539032cdd8264981e540bd | [] | no_license | aginnimb/Rosalind-Solutions | 41e61a5ca0617c781bf7b6b8efe04f62f5a0acf6 | d2f62d1a307ce52b79a8d47740441845a4132407 | refs/heads/main | 2023-01-03T22:38:08.742595 | 2020-10-30T17:32:29 | 2020-10-30T17:32:29 | 308,698,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | Rosalind.py | #Rosalind TREE List
# 1ST
from collections import Counter
file = open("/Users/anu/Downloads/rosalind_dna.txt", "r")
st = (file.readline())
# print(st)
counter = Counter(st)
print(counter["A"],"",counter["C"],"",counter["G"],"",counter["T"])
#2ND
file = open("/Users/anu/Downloads/rosalind_rna.txt", "r")
st = (file.rea... |
e9fac7f16cd9e25b67503810f50bb5ce46cf45fd | e538256235499e79dcc9ded3403a4d9290b45899 | /Python Files/imageAiLive.py | c58b26b6ea7980fd27801ba680a1323f00b99cda | [] | no_license | kian2attari/Now-you-see-me | cdd370d31aa587a8d98738e48886a242f4cb3d74 | 15f9056a0fe739aaad735139525538916b43228d | refs/heads/master | 2020-12-05T00:43:10.108969 | 2020-01-05T18:45:28 | 2020-01-05T18:45:28 | 231,954,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | imageAiLive.py | import os
import cv2
from imageai.Detection import VideoObjectDetection
execution_path = os.getcwd()
camera = cv2.VideoCapture(0)
detector = VideoObjectDetection()
detector.setModelTypeAsTinyYOLOv3()
detector.setModelPath(os.path.join(execution_path , "yolo-tiny.h5"))
detector.loadModel()
video_p... |
bd547cb4de370737d061fe26c944d48d9917388e | dd0721c05eb0fe0ec97f4cd88ec1ea62c9c7c92c | /Proyecto final/python/pruebaPyWavelet.py | 35a0b39988a73bdd014169267ecbd4c351dfa0f6 | [] | no_license | valentinPertierra/DSP_UTN | 2e357f99db79f8dcd977b652674537090a2d06f7 | 68ae2fc63c7304c3243cffdaaba510ec84d77e5c | refs/heads/master | 2020-03-27T00:37:08.331768 | 2019-04-25T02:21:07 | 2019-04-25T02:21:07 | 145,638,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | pruebaPyWavelet.py | # -*- coding: utf-8 -*-
#Documentacion del modulo pywt: https://pywavelets.readthedocs.io/en/latest/ref/cwt.html
from scipy import signal
import matplotlib.pyplot as plt
from matplotlib.text import OffsetFrom
import numpy as np
import pywt
t = np.linspace(-1, 1, 200*3, endpoint=False)
#sig = signal.gau... |
987b9d09be3b486c6a74a03b48de67f35454fd7d | d788892704e618c3f613a5641e10908d63feb659 | /slovnet/markup.py | 4db9092c99fcc65c2fa24450e29c59d4be81ff76 | [
"MIT"
] | permissive | natasha/slovnet | a4a4d664cbda72d36bc7d6d49881266c574bddce | 4b46dc497b586e106258819c23be28c277efac97 | refs/heads/master | 2023-08-09T04:15:03.635410 | 2023-07-24T09:48:01 | 2023-07-24T09:48:01 | 205,827,805 | 201 | 22 | MIT | 2023-01-23T07:59:39 | 2019-09-02T09:56:37 | Python | UTF-8 | Python | false | false | 3,997 | py | markup.py |
try:
from ipymarkup import (
show_span_box_markup,
show_dep_markup
)
except ImportError:
pass
from .record import Record
from .bio import (
spans_bio,
bio_spans
)
from .token import find_tokens
from .sent import sentenize
from .span import (
Span,
envelop_spans,
offset_... |
4b30db86f1f624d69057206cf03a3f53a8551010 | 2daa281ae6b94fe31abc87264119cebaef5dafb9 | /src/utils/timer.py | 26ff3274f17f43f79dc103cd3caeb7a0240f1027 | [
"MIT"
] | permissive | koukyo1994/tabular-data-analysis-pipeline | 62e28a1be38684ee69d32a2fea209f5c13869ab1 | d4007be7dceb8bf86f7d9bad3fd3e2e5dc3ed2b2 | refs/heads/master | 2022-11-24T07:11:00.702413 | 2020-06-09T08:12:43 | 2020-06-09T08:12:43 | 235,430,558 | 7 | 1 | MIT | 2022-11-22T05:15:45 | 2020-01-21T20:02:02 | Python | UTF-8 | Python | false | false | 444 | py | timer.py | import logging
import time
from contextlib import contextmanager
from typing import Optional
@contextmanager
def timer(name: str, logger: Optional[logging.Logger] = None):
t0 = time.time()
msg = f"[{name}] start"
if logger is None:
print(msg)
else:
logger.info(msg)
yield
msg ... |
ced1da8af367322a6b983df7ab209bf41e086ea2 | d577219913f10a9c8c50b59d6feab1a020d30460 | /allapps/core/views.py | 1a41c3618fe07f5f560a8884b9852dd5b0e79cb2 | [] | no_license | anykate/likes_prj | c516004ff91d43c7e218bf933d77e0ad6fc34000 | 03103fcbca8c66c31b85fae67ba4005f0d1dbb83 | refs/heads/master | 2023-03-21T06:50:21.863519 | 2020-05-14T14:11:30 | 2020-05-14T14:11:30 | 263,933,503 | 0 | 0 | null | 2021-03-19T03:15:36 | 2020-05-14T14:11:02 | Python | UTF-8 | Python | false | false | 676 | py | views.py | from django.shortcuts import render
from django.views.generic import TemplateView
from django.http import JsonResponse
# Create your views here.
def home(request):
return render(request, 'core/index.html', {})
class HomeView(TemplateView):
template_name = 'core/index.html'
def get_context_data(self, **... |
5e3d89983a97836cc68c5eac040dd10bc583513b | 34b6ef182c42e5e963c4bc0acfdb3a25f2eb5d27 | /dask/bag/__init__.py | 283d9ff26484953174e9d780685e0f24f2729a64 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | agevole/dask | f5f6f45dbc0ea98baa4d3622aa3f86e86bfa5c63 | 9573c76b73b74c14fade9cc7d403647ec8ef799d | refs/heads/master | 2021-01-17T23:16:12.935477 | 2015-03-11T21:31:46 | 2015-03-11T21:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | __init__.py | from __future__ import absolute_import, division, print_function
from .core import Bag, Item
|
69ec15878040fadffe981e7198310e13f6cd21de | 9abd182d02355ddf0b79afd4a35f7127a4a66f7a | /docs/tutorials/datasets/cityscapes.py | 2e49979c2aa133f62276154d1bd6ad75b2dfbdbd | [
"Apache-2.0"
] | permissive | dmlc/gluon-cv | e1303086419a5733661d0fcb9095c09d4f2382ad | 567775619f3b97d47e7c360748912a4fd883ff52 | refs/heads/master | 2023-07-19T12:02:36.824294 | 2023-01-19T00:37:33 | 2023-01-19T00:37:33 | 122,896,249 | 6,064 | 1,458 | Apache-2.0 | 2023-01-19T00:37:35 | 2018-02-26T01:33:21 | Python | UTF-8 | Python | false | false | 2,239 | py | cityscapes.py | """Prepare Cityscapes dataset.
========================
`Cityscapes <http://sceneparsing.csail.mit.edu/>`_ focuses on semantic understanding of
urban street scenes. This tutorial help you to download Cityscapes and set it up for later experiments.
.. image:: https://www.cityscapes-dataset.com/wordpress/wp-content/up... |
ef9611f34b1a61fce42b74cd06b9b30ae278d06c | a285c9700a482a5f11fe5915c7bbed10b3dd9674 | /actions/swagger_client/models/embed_playbook_step_execution.py | b0305fd1a3b145c32ae7c7d0c529d2c7e55f855c | [] | no_license | ymzust/automation-test | d071f4b83cf58b934ac5ab9d2d46ad7d9209d099 | 55a375cb850dc39c8602f001ffad6a241981727d | refs/heads/master | 2022-12-10T12:19:22.813381 | 2019-11-18T15:46:25 | 2019-11-18T15:46:25 | 221,499,577 | 0 | 0 | null | 2022-12-08T06:52:40 | 2019-11-13T16:07:20 | Python | UTF-8 | Python | false | false | 5,841 | py | embed_playbook_step_execution.py | # coding: utf-8
"""
CyberProof Platform Backend API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.3.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... |
8165c4120d0027e7fd21fe15932a0c7c1d8590be | f87115bf14fdd572f1678cb5292c8e31615cc815 | /knn.py | 84e45eb71ea68c838e18116caf1e5ce6330958ea | [] | no_license | jolinchen0102/SSL-with-KNN | de4dabd75d6e15dab0784eb6a3d387b1584ac551 | d01cc98bebc84ccf7b70a060f3e1eea21fb5218a | refs/heads/main | 2023-04-23T03:16:10.431228 | 2021-05-07T08:11:40 | 2021-05-07T08:11:40 | 365,154,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,669 | py | knn.py | import time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import random
import collections
import seaborn as sns
from math import *
from sklearn import cluster, datasets, mixture
from sklearn.metrics import accuracy_score
from random import randrange
# np.random.seed(0)
# N_A = 100
# d=2
... |
8a0e4e062a767155d0bd7630d136404d950a4903 | 95e8c941b627a3ec30609a85ce248562a2499f79 | /src/classifier/classifier_nfold.py | 790dfd9969823239fd08c32b412c1d7bc05145d7 | [] | no_license | hhxx2015/subjectclassify_py2 | 39dadc68b74c203bee495b39e49a19789782c285 | 086236843057bbe2a42518eacb4f5e8890bfe495 | refs/heads/master | 2021-06-07T23:22:50.702295 | 2016-11-28T08:20:26 | 2016-11-28T08:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | classifier_nfold.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from sklearn.cross_validation import StratifiedKFold
from util import feature_util
from eval_module import eval_func
class classifier_nfold():
c1nub = 1
c2nub = 1
def __init__(self, nfold):
self.nfold = nfold
pass
def classify(self, X ,y)... |
b994eec648e2c093cf036648ab128e15a38ff4ec | 6c1195f309619c7f293fd7b327960927b4b1e527 | /2020-10-29-liczby-pierwsze/sito.py | c9fc6ebb70219185d804da90aaf516947a49e121 | [] | no_license | nlo-edu-pl/2020-nlo-inf | 997930a3a35b7fe522133035a0fde3055d40f5f5 | 75ea3fe203ab62eefeff38f2d843ea853c6668be | refs/heads/master | 2023-04-30T05:48:41.993327 | 2021-05-23T22:17:49 | 2021-05-23T22:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | sito.py | zakres = 1000000
liczby = ( zakres + 1 ) * [ True ]
for biezaca in range( 2, zakres + 1):
if liczby[ biezaca ] == True:
# ta liczba jest pierwsza:
# - zostawiamy ja
# - wykreslamy wszystkie wielokrotnosci
# zaczynajac od kwadratu biezacej liczby
for i in range( biezaca, z... |
924019eea4ee4220226591f253d27616727e98fd | c46f8b1b822166b426b7dacfa85bbf093c8b3fa0 | /pycity_calc/toolbox/others/pv_analysis_own_consumption.py | 8053110657e3d16ae86f0243b0620663546a57af | [
"MIT"
] | permissive | RWTH-EBC/pyCity_calc | d82e684488ed2fba82167c07439f1ffa00907cd8 | 99fd0dab7f9a9030fd84ba4715753364662927ec | refs/heads/master | 2021-03-27T13:11:13.171620 | 2019-06-16T12:01:59 | 2019-06-16T12:01:59 | 92,810,373 | 4 | 0 | MIT | 2019-06-16T11:38:14 | 2017-05-30T07:56:52 | Python | UTF-8 | Python | false | false | 8,074 | py | pv_analysis_own_consumption.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import pycity_base.classes.supply.PV as pvmodule
import pycity_base.classes.Weather as Weather
import pycity_base.classes.demand.ElectricalDemand as elecdem
import pycity_base.classes.demand.Occupancy as occu
import pycity_base.functions.changeResolution as chres
... |
ed1c9294bec129f65275c14382a8bcc91d411fb7 | f92dc2e69d8290c3a91c78eb9c24c7450120d5dd | /python_html_flask/vars.py | b624458c441de75f1f0d392092ee8095d1dd7c03 | [
"MIT"
] | permissive | rohan2734/CRUD__react-flask-mongdb | cf8bed3ffecb79155d86c46d4f5e2aef6e36c73f | e200cb3903b66261fee840e74f838d533d0e9258 | refs/heads/master | 2023-04-24T15:07:42.836171 | 2021-05-12T06:39:56 | 2021-05-12T06:39:56 | 323,265,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | vars.py | from flask import Flask,render_template
app=Flask(__name__)
@app.route('/')
def index():
# return 'Hi'
return render_template('hello.html',list_of_names=['chris','Ben','Pizza'])
@app.route('/<string:name>')
def greet(name):
return f'Hello {name}'
@app.route('/about')
def about():
return render_templa... |
922e2eeed9a8fcc4060c55ee475e808b5e508abd | 9866208a005dd15c1996bc46a36bc0e5d93b9908 | /practica_if_doble.py | 2b33f9b04ed51762f7a146ca6f2912f441120c7d | [] | no_license | LuisEnriqueSosaHernandez/Python | 25f3b6add3a2fa7d891ccbfe7d5b31dd70e3c523 | a7e117d09543584baf6071605011841545aa2222 | refs/heads/master | 2021-01-25T01:03:17.701003 | 2017-06-18T23:13:09 | 2017-06-18T23:13:09 | 94,718,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | practica_if_doble.py | print("Ingrese el nombre del empleado")
nombre=input()
print("Ingrese la horas trabajadas esta semana ", nombre,":")
horas=input()
horas=int(horas)
print("Cuanto se paga por hora")
precioH=input()
precioH=float(precioH)
#Evaluando el salario
if(horas<=40):
pago=horas*precioH
print("El sueldo Final de ",nombre,"... |
713a28263894e5a3ac6112a92081cd87664c14e2 | 08e8034b3f180d740f053497d2dad05150c865dd | /rl_utils.py | ffa88bef870da1d07fc841c02a01a132f25030b4 | [
"Apache-2.0"
] | permissive | lizhengCH/RL2048 | dfa0a669573efe30b0bf0373710343a56ee881d6 | fd5a87d96049c0c5f97148d59cce864f5564e4ca | refs/heads/master | 2020-03-23T21:50:56.651891 | 2018-07-25T10:13:50 | 2018-07-25T10:13:50 | 142,133,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | rl_utils.py | # @Author : Zheng Li
# @Time : 2018/7/25
# @Version : 1.0
# @Document: RL2048.ipynb
import pickle
import numpy as np
def reward(state):
table = state.copy().values[1:-1, 1:-1]
score = np.sum((table // 4) ** 2)
zero = np.sum(table == 0) * np.mean(table)
dev = np.cov(table.reshape(... |
bbe21301bb8900706177f59f0efcd62030bc89f8 | f3e938b42b8913cf7cf5218502876445aa5e4007 | /map.py | b38c309d468a01a6e009ce66a0ca772da3013790 | [] | no_license | ty1cube/python-training | 742ee5ecdb8f372bf781e7346bccae42d31d62db | a8caf3675c90987b8bb878041d743d45b9c509b9 | refs/heads/master | 2021-01-02T19:25:27.244438 | 2020-02-11T14:23:55 | 2020-02-11T14:23:55 | 239,764,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | map.py | def multiply_number(a):
return a*a
x = map(multiply_number, (1, 2, 3, 4)) # x is the map object
# print(x)
print(list(x))
vowel = ("abc", "dcsgd", "hdkfn", "hdjdmfmf")
# vowel = tuple()
print(vowel)
const = {"dog", 'cat', "sheep", "ram"}
# const = set()
print(const)
def func(a, b):
return a + b
a = map... |
f0ca226e92ada7c7dba32a33edb59151c380df9e | 142b96e4c61b53e983430f26c1eba3f7efbb678b | /A00170892/07_flask_examples/script.py | 7868d78d053892d698c0abb7d87e9ccc072f9bf4 | [] | no_license | CarlosLlano/so-microservices-python | 0d40ec5b65176ca603a605018d0d96456757339e | 08b530a92ee769e54a62a672a42fc6301b5ffe53 | refs/heads/master | 2021-01-22T18:15:30.855480 | 2017-05-27T23:44:03 | 2017-05-27T23:44:03 | 85,071,566 | 0 | 0 | null | 2017-03-15T12:48:10 | 2017-03-15T12:48:10 | null | UTF-8 | Python | false | false | 1,499 | py | script.py | from subprocess import Popen, PIPE, call
from modelo import db, Monitoreo
import time
while True:
#consumo de cpu
comandos_cpu = "ps -A -o pcpu | tail -n+2 | paste -sd+ | bc"
respuesta = Popen(comandos_cpu,shell=True, stdout=PIPE, stderr=PIPE).communicate()[0].split('\n')
pcpu = respuesta[0] + "%"
#consu... |
870edc9f940e5b9abe9b1adda849f2eaa400cefa | 0d51af235ba2826b07fd5dfa65db6e72fb4a9aa9 | /aiohttp_prometheus_exporter/handler.py | 021cd649b3331d1ff83a0652bc5fb133313069d8 | [
"MIT"
] | permissive | adriankrupa/aiohttp_prometheus_exporter | 86ce3310f1cd358f4a256d28a1137605d456b6e3 | 9f3eb10093927d68b8a822b3e97fe80955ec8c4d | refs/heads/master | 2023-03-11T05:00:08.242992 | 2021-09-21T07:31:32 | 2021-09-21T07:31:32 | 253,838,369 | 12 | 3 | MIT | 2023-03-06T09:57:35 | 2020-04-07T15:39:32 | Python | UTF-8 | Python | false | false | 423 | py | handler.py | import prometheus_client
from aiohttp import web
def metrics(registry: prometheus_client.CollectorRegistry = None):
async def handler(_):
prom_registry = registry if registry else prometheus_client.REGISTRY
response = web.Response(body=prometheus_client.generate_latest(prom_registry))
res... |
22767f4b2e3bd8290ab7ba3de7a56fea9cc7b750 | a8d503c9c48a7dd827a3c808f1380a46ab971d50 | /Company/admin.py | 416af9c34022330666e9d1055acfb3c8c7b4c3f5 | [] | no_license | sandeshdeshmukh1/E-prescription | 46912ed689fa2adbf231d74f8b740243d3c6e51e | f96bef55bdddf26c1594db6dbd71081a0281f611 | refs/heads/master | 2023-07-09T05:25:18.436716 | 2021-08-14T19:19:21 | 2021-08-14T19:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | admin.py | from django.contrib import admin
from .models import Company, Medicine, MedicineForm, MedicineType,AntibioticType
admin.site.register(Company)
admin.site.register(Medicine)
admin.site.register(MedicineType)
admin.site.register(MedicineForm)
admin.site.register(AntibioticType)
|
8285f7f0529ba178267fcbdfda22c3bfee0891ab | f5c400bcb41d9b2bae80d3f818b00cbbea0c9466 | /Python-Django/django-youtube-1/youtube/__init__.py | c3d874dbbccf73090f3b32de9469a8da33d013cc | [] | no_license | CursosWeb/Code | 0218acfdae745d6dc4a1fb1e80053589b13ac7d0 | 0f738eda14381f556c07f86242103fa119b094fa | refs/heads/master | 2023-06-07T19:34:19.536499 | 2023-05-26T17:39:55 | 2023-05-26T17:39:55 | 29,100,935 | 0 | 137 | null | 2023-02-23T09:37:25 | 2015-01-11T18:17:04 | Python | UTF-8 | Python | false | false | 49 | py | __init__.py | default_app_config = 'youtube.apps.YouTubeConfig' |
c6352d25fb579338fa1d1d4b18fa4127150027f0 | adc27d9ab1c6744e29b54107209fe5ec877e4442 | /jo-member_works_seg/inference.py | 75ff97547fd3184858a679fc66de50469cf5a0ad | [] | no_license | jo-member/p3-ims-obd-hansarang | 4b563349fe9afa6e51a274f3a5fdea3b3ed7f763 | 3a06e4e71b45c73142ee780bddcb5b888d8703c6 | refs/heads/main | 2023-05-10T02:52:02.143123 | 2021-05-26T09:40:36 | 2021-05-26T09:40:36 | 369,602,972 | 1 | 0 | null | 2021-05-21T17:05:32 | 2021-05-21T17:05:31 | null | UTF-8 | Python | false | false | 3,036 | py | inference.py | import torch
from model import *
from dataset import TrashDataset
import matplotlib.pyplot as plt
import seaborn as sns;
sns.set()
import numpy as np
from importlib import import_module
import albumentations as A
import pandas as pd
import segmentation_models_pytorch as smp
from tqdm import tqdm
plt.rcParams['axes.gri... |
2b5b0fbcec3f668d0be42e2f53787fd21705baf4 | db731f2ae2708b7f0b274d03f3a4aa3200b225bf | /app/models/events_list.py | d9317d4abff934f1c2d4703a2cbee99db71174da | [] | no_license | AmyBrowneDesigns/CC_Flask_Event_Lab | c87fedcc1542a88dfa3f3d09beca6c4c7c33631e | aa2a3b405881b5bc32f57b98aaa50b74a8eb419b | refs/heads/master | 2022-12-20T13:28:58.813319 | 2020-09-24T17:15:35 | 2020-09-24T17:15:35 | 298,345,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | events_list.py | from app.models.event import *
event1 = Event ("oct 19", "Harrisons birthday", 22, "fishbowl", "cake time" )
event2 = Event ("dec 25", "Christmas", 100, "codeclan", "party time")
events = [event1, event2]
def add_new_event(event):
events.append(event) |
716f3eea4915a1992bf967136692559929ae4a15 | 17d26c9ce011545421b2a26e096108050d5b7aab | /mlp2.py | 67e88853f3b9119bf9aefe277c5f0ba32e137734 | [] | no_license | lenaalex/mlp_without_np | 2800ad590f686d700b69576b11bf132eaf86c19a | 29eba7ace5fa28bc97930e5d908e06106dddebe5 | refs/heads/master | 2020-04-09T23:33:34.409204 | 2018-12-06T10:45:18 | 2018-12-06T10:45:18 | 160,660,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | mlp2.py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 16 16:56:03 2018
@author: Lena Aleksandrova
"""
import numpy as np
class mlp2:
def __init__(self, inputs, targets, nhidden):
#set up neural networks
self.beta = 1
self.eta = 0.1 #learning rates
self.momentum = 0.9 #opt... |
d47b331d73dff7e72cff8447a971dc0c10a56501 | 6ee7dba243a21ce106a8be0be163859cf225be48 | /server/connection/__init__.py | 4b573fa364826e2d3357c22153d3b28caef6d39c | [] | no_license | zdimon/django-channels-quiz | 86be4fa1c83b83e4852c446c11112c29531f5e65 | c5162971bb3f5e38dd1c884ccd3d324d98f92fd8 | refs/heads/master | 2023-08-31T00:29:27.194215 | 2023-08-19T14:18:40 | 2023-08-19T14:18:40 | 308,049,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | __init__.py | default_app_config = 'connection.apps.ConnectionConfig' |
80e7f108b3fe2b0ff46c727b107f63bbe53e1cdd | 65008c51a08ad2d133ade0bd1300f40642ee1da5 | /git2.py | a41be21d36afdb8b6a7bdada2378f245726081ce | [] | no_license | prabhu446/Ansible_Training | fae350bcc5e03ad35eeb0d45c326253f14595178 | 05d5b0479b907f2e8abb353febb39b2d345ee56b | refs/heads/master | 2022-06-06T23:50:25.319560 | 2020-05-03T00:55:19 | 2020-05-03T00:55:19 | 260,587,169 | 0 | 0 | null | 2020-05-03T00:55:21 | 2020-05-02T00:44:21 | Python | UTF-8 | Python | false | false | 150 | py | git2.py | print("EXAMPLE OF GIT PUSH FROM LOCAL TO REMOTE")
print("EXAMPLE OF GIT PUSH FROM LOCAL TO REMOTE")
print("EXAMPLE OF GIT PUSH FROM LOCAL TO REMOTE")
|
ab19e4441f9932a16c070edb217048ebdc7ab6bc | 94f1fca5f21c984a89bb32a6c6f68f37d1cca521 | /rezoom.py | bf20cb47d87d3069e10dde297b2e6ad1fd1d9171 | [] | no_license | tarasii/RasPiCamDigiZoom | 1e9f9fdbb0a94adac5f3800c8619a0a2fee930cd | 401b89631c2a72436e313ef92af513ade044fdfb | refs/heads/master | 2020-05-29T20:30:55.930872 | 2019-10-30T15:14:33 | 2019-10-30T15:14:33 | 189,353,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | rezoom.py | import cv2
import numpy as np
from datetime import datetime as dt
import cvhelper
cap = cv2.VideoCapture(0)
if not cap.isOpened():
print("Cannot open camera")
exit()
xout = 320
yout = 240
zooms = ((320,240,"1x"), (480, 360, "1.5x"), (640,480,"2x"), (800,600,"2.5x"), (1280,720,"3x"))
cuts = ((0,0), (160,60)... |
fa3f3a440a2ec127f0501e724e6413a33d2717d2 | 666efdd72a15feed93ade7efd7999ebf588fbeb7 | /backend/OJ/settings.py | 9e00446116c3cd182a71463d762491741c0f01b8 | [] | no_license | Gzu-OnlineJudge/onlineJudge | ecc96835fe47fd8437ebff7d493c6c590e7dfdbe | b2e3250720cdd79fdeff0a1f3ab05fff5bcc4ebb | refs/heads/master | 2021-05-24T09:47:24.733267 | 2020-04-06T13:59:27 | 2020-04-06T13:59:27 | 253,504,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | settings.py | """
Django settings for OJ 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 da... |