blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed1f6dacb8ce8bd16c4fdacede44ca2bf74c08a2 | 38cac672104e8d95d4ee34aa38ace1fb9d62f862 | /lazyflask/wsgi.py | 03d2f26644daac32a4d3899e2f3824475d420ca4 | [
"Apache-2.0"
] | permissive | xiaopeng163/lazy-flask | f60e8361e391944c3910f0c8345ec2ccb849d0e8 | e55cd5eb5260e152c94b1956194afd8bf8a840e5 | refs/heads/master | 2021-09-02T11:09:11.688229 | 2018-01-02T06:59:03 | 2018-01-02T06:59:03 | 105,125,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Copyright 2017-2018 Be-Lazy Groups
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
e94e44a8a5485fed485e560afbd44d0a228843b6 | 71686ed78b74844b6bb16752a0dd9f245d691eac | /experiments/coco-segmatch-15/run.py | 66c3d3b86730f164f6e06e05581cd8d359bd9066 | [] | no_license | gchrupala/vgs | aa3c1a1e46f6c80b35de1ff5d51703f01c79cac6 | 01146cf8a08e1be4964a747fc7a38425e88568f8 | refs/heads/master | 2021-04-25T05:09:00.773011 | 2018-10-16T14:25:16 | 2018-10-16T14:25:16 | 114,238,061 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | import random
import numpy
seed =1235
random.seed(seed)
numpy.random.seed(seed)
import vg.simple_data as sd
import vg.experiment as E
import vg.vendrov_provider as dp
import vg.defn.segmatch as D
dataset = 'coco'
batch_size = 32
epochs=15
prov = dp.getDataProvider(dataset, root='../..', audio_kind='mfcc')
data = s... | [
"g.chrupala@uvt.nl"
] | g.chrupala@uvt.nl |
669027f993fbea99f5c184e79f238c519752c3dc | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d278160c1fd0e8c3b24ee96c4fd91dddbbfab668-<_print_figure>-fix.py | 4ad915c9b8c85eaee6b029f97a46460ae9aea1c2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,992 | py | def _print_figure(self, outfile, format, dpi=72, facecolor='w', edgecolor='w', orientation='portrait', isLandscape=False, papertype=None, metadata=None, **kwargs):
"\n Render the figure to hardcopy. Set the figure patch face and\n edge colors. This is useful because some of the GUIs have a\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7849d5da6e5498dd762ecb8c677e003fde9d5fc7 | 53ec01fa57d9cdc7e7fd3364990713d211e1c414 | /ABC119/119d.py | 88d8811e10867486745ace233673f63e15b1309c | [] | no_license | nekoTheShadow/atcoder-answers | 4f2cae82ac2b24df4153c43381ce58084647704c | 461e5a9b00718fd9a3b19dc6071da0fb3192f34e | refs/heads/master | 2022-02-03T18:24:01.673661 | 2022-01-24T14:43:44 | 2022-01-24T14:43:44 | 165,072,722 | 0 | 0 | null | 2020-03-22T13:25:56 | 2019-01-10T14:19:52 | Java | UTF-8 | Python | false | false | 968 | py | import bisect
a, b, q = map(int, input().split())
slist = list(sorted(int(input()) for _ in range(a)))
tlist = list(sorted(int(input()) for _ in range(b)))
xlist = [int(input()) for _ in range(q)]
dlist = []
for x in xlist:
i = bisect.bisect_left(slist, x)
j = bisect.bisect_left(tlist, x)
d = float('inf')... | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
086a126fa363531111ef146627310e19509dfe58 | 2fbda72388e0b1a74b2b020a1c5a13f197918e42 | /dwi/fit_one_by_one.py | 0eabbf62fd98d774912859140014313d2c1c8b8a | [
"MIT"
] | permissive | Nie-yingchun/dwilib | 6c8765418ba3ab38e06c2977341c59814acd95d1 | 9610ab49ee2fbc58f3e09a90b83c2bf5af9c80c6 | refs/heads/master | 2021-01-24T15:33:30.647566 | 2014-09-02T18:03:25 | 2014-09-02T18:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | """Fitting implementation that fits curves simply one by one in serial."""
import numpy as np
from leastsqbound import leastsqbound
def fit_curves_mi(f, xdata, ydatas, guesses, bounds, out_pmap):
"""Fit curves to data with multiple initializations.
Parameters
----------
f : callable
Cost func... | [
"jupito@iki.fi"
] | jupito@iki.fi |
6249f045f17841d0ce1eb71756b679e96d78541f | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/devel/.private/moveit_ros_planning_interface/lib/python2.7/dist-packages/moveit_ros_planning_interface/__init__.py | 26552754c7b4aa3aa9af6699a8a69101f17a8b9a | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/acis/sim2real/simulations/kinova/src/move... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
d7c9b93541dc649e326b6e3df597f83fc0d4c9d7 | f85916c3887ef559f4844e87f568e1e093dce32f | /Modules/Blueprint/oldMods/parentJoint.py | b9a763d91e3e1a2513e5979421e9af39c3f04934 | [] | no_license | griffinanimator/MPR | f75e0a099fa916b6466e73fe7c5f4dfca04b6018 | d217215d13b282f7d64e53fd338786ad5b80e01b | refs/heads/master | 2016-09-02T03:06:58.214239 | 2013-05-31T18:43:43 | 2013-05-31T18:43:43 | 10,410,778 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | import maya.cmds as cmds
import System.blueprint as blueprintMod
#reload(blueprintMod)
import Blueprint.singleOrientableJoint as singleOrientableJoint
#reload(singleOrientableJoint)
import System.utils as utils
#reload(utils)
import os
CLASS_NAME = "ParentJoint"
TITLE = "Parent Joint"
DESCRIPTION = "This module w... | [
"ryangrif@gmail.com"
] | ryangrif@gmail.com |
64257221df923ba3c889aaa4ddbd300a6d923ffd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_360/ch14_2020_03_03_12_13_48_243552.py | 338d4068dd07cc41d42bfa504ab0bb1a7b180a76 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import math
def calcula_distancia_do_projetil(v,y0,teta):
p1=(v**2)/(2*9.8)*(math.sin(2*teta))
p2=(1+1+((2*9.8*y0)/(v**2)*(math.sinh((teta**2)**1/2))
return (p1*p2) | [
"you@example.com"
] | you@example.com |
2d27ed0f07c2d97d17ac77e98be8040f99dc585f | c8e7b99c2079c3f4a8af380064b9f6fdc5eeef1c | /loops.py | 283fb1591d29505ec1f488def8b59b7c0cae0d4d | [] | no_license | stuartelimu/python-1 | 47de403fba331a17eb4c698236a843786a72d25d | a0bd5d55da08442613f1a7664cc5e3d0fe94732f | refs/heads/master | 2020-05-25T17:22:05.553997 | 2019-05-21T21:58:16 | 2019-05-21T21:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # while loop
x = 0
while(x < 5):
print(x)
x = x + 1
# for loop
for i in range(3):
print(i)
for i in range(3, 10, 2):
print(i)
days = ["Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun"]
for day in days:
print(day)
# continue and break statements
for i in range(6):
if (i % 2 == 0):
cont... | [
"stuartelimu@gmail.com"
] | stuartelimu@gmail.com |
221f579cb40bbc74ff02fa4ff11c7f841dccc17c | 2251d71bc3ecb589ce1a8b274a08370c3240bf51 | /0739 Daily Temperatures.py | 4e5eaa70d3d03ddb5e606093b90f126d390ac841 | [] | no_license | YuanyuanQiu/LeetCode | 3495a3878edc2028f134bddb5b9ec963069562cb | 6f5d0ef6a353713c0b41fa7ec0fb8c43a7e8dc55 | refs/heads/master | 2022-12-11T04:04:01.686226 | 2022-12-06T18:42:14 | 2022-12-06T18:42:14 | 231,168,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def dailyTemperatures(self, T: List[int]) -> List[int]:
n = len(T)
if n < 2:
return 0
ans = [0] * n
# 栈存放所在日,若当日比栈尾温度高,栈尾日结果update为当日与栈尾所在日之差并从栈中移除
stack = []
for i in range(n):
# 结束条件为全部移除或没有出现更高的温度
while stack and T[i] > T[stack[-1]]:
prev_index = stack.pop(... | [
"50243732+YuanyuanQiu@users.noreply.github.com"
] | 50243732+YuanyuanQiu@users.noreply.github.com |
099510054c48263f4910bb44b6ebb59803ec41d2 | 99f9a64315d051069ada71f8a22a6ca3793b2bba | /pyqt_example/example3.py | f5e5df880a5b25a99e8ab1eb45e52f04ecf21614 | [] | no_license | dnddnjs/inflearn-python-pyqt | 1fe1bfe7841a3a411b88f9783f676a3f34d014c5 | eea4ffa52e54f4e376fb50601b5fc481934fd2a1 | refs/heads/master | 2020-04-01T06:48:03.729008 | 2018-10-14T10:57:19 | 2018-10-14T10:57:19 | 152,964,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5 import QtWidgets, QtCore
class TestForm(QMainWindow):
def __init__(self):
super().__init__()
self.setupUI()
def setupUI(self):
self.setWindowTitle("PyQT Test")
self.setGeometry(800, 400, 500, 500)
label_1 = QLabel("입력테스트", self)
label_2 = QLabel("출력테... | [
"dnddnjs11@naver.com"
] | dnddnjs11@naver.com |
4a02f0e5342ec97c9c01895a5e62e078c705aaea | b68115ac6cd996c1a09d70c2cf7158715c125aae | /fmu_storage/api/views.py | 03765aae9da2b53c260b7570a026b95a898e32bc | [] | no_license | joakim-hove/fmu_storage | 3a71d7521818658a252e90a3b08c32810a86d544 | c02feb69493a9e17592b1b5e3cf201c559b20bdf | refs/heads/master | 2021-08-28T06:54:59.291006 | 2017-12-11T13:51:36 | 2017-12-11T13:51:36 | 103,049,778 | 0 | 2 | null | 2017-09-14T13:14:26 | 2017-09-10T17:53:27 | Python | UTF-8 | Python | false | false | 1,011 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.urls import reverse
from django.views import View
from django.http import JsonResponse, HttpResponse
def make_url(key, kwargs, doc):
url = reverse(key , kwargs = kwargs)
for k,v in kwargs.iteritems():
url = url.replace(str(v)... | [
"joakim.hove@gmail.com"
] | joakim.hove@gmail.com |
91ed7201e75a997abe043527c9ffe8391a760bac | af594e2782e0cadef6ca9156144bb8b1b0973e6a | /examples/bench.py | 873313ffc89bffbe2b87ea07678726d84aab4027 | [
"BSD-3-Clause"
] | permissive | automaticdai/py-bteve | d9ef4f5842e9e38644aa08eddf8cdcb4c5f935e7 | dd2dc7cdd9c5e5ef82f84132ec9a05d989788112 | refs/heads/master | 2022-06-29T17:45:00.605908 | 2021-07-20T17:04:04 | 2021-07-20T17:04:04 | 245,732,049 | 0 | 0 | BSD-3-Clause | 2020-03-08T01:19:14 | 2020-03-08T01:19:13 | null | UTF-8 | Python | false | false | 937 | py | import os
import sys
import time
import bteve as eve
gd = eve.Gameduino()
gd.init()
print(os.listdir("/sd"))
FN = "/sd/spa-1500.avi"
L = 825478
t0 = time.monotonic()
if 0:
gd.cmd_memwrite(0, L)
with open(FN, "rb") as f:
gd.load(f)
gd.finish()
else:
with open(FN, "rb") as f:
a = 0
... | [
"jamesb@excamera.com"
] | jamesb@excamera.com |
9e638878d4bfcd715b3e97ef63f02f8d5662ab5f | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/dmac_20200619152024.py | 85ba2c28d9c9fafe96bda8b2fe109fa8d0b8ff9b | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import yfinance as yf
import numpy as np
from scipy.stats import norm
import pandas as pd
from pandasgui import show
def main():
tickers = 'SPY AAPL MRNA TSLA'
data = yf.download(tickers, period='max', group_by='ticker')
dirty = pd.DataFrame(data['TSLA'])
frame = clean_data(dirty)
sma = frame.rolli... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
208df091e95ea0a8ce9165107a96d1d523e1b634 | d3239c2e5652378b17932553f80be1dbcbbdfdbf | /python/week3/ejercicios10.py | 1dd7fe07fa57b5cab976ff8fdcb489c62ac8e812 | [] | no_license | jorge-alvarado-revata/code_educa | 673a8b10817c24b3fc2c5792d216837c15a701aa | 241e1e3f43586e486b73cee8f385ab74dd99caf1 | refs/heads/main | 2022-12-25T21:37:36.988225 | 2020-10-13T18:59:38 | 2020-10-13T18:59:38 | 303,801,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import sys
es_bisiesto = False
if len(sys.argv) > 0:
year = int(sys.argv[1])
es_bisiesto = (year % 4 == 0)
es_bisiesto = es_bisiesto and (year % 100 != 0)
es_bisiesto = es_bisiesto or (year % 400 == 0)
print(es_bisiesto)
| [
"serviciosplusapp@gmail.com"
] | serviciosplusapp@gmail.com |
d17ce9253b12f231c52503b2a30aaf66cff543e0 | 9752f8065f5b4fb229d94416bc4c6a1fddbd4179 | /templates_advanced-recources/templates_advanced/core/mixins/group_required_mixin.py | abb1d6e4c9e85b615b9d11a4154182ebd9b79d17 | [] | no_license | DeanDupalov/web-basic-django | 1b2bbc7d3bdb9452f067f230cd14733859071dea | 52e79535d12ce7673a4b17680154b48d7d184487 | refs/heads/master | 2023-07-12T19:13:49.117155 | 2021-08-26T10:57:41 | 2021-08-26T10:57:41 | 370,965,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from django.core.exceptions import PermissionDenied
class GroupRequiredMixin:
"""
group_required - list of strings, required params
"""
group_required = None
def dispatch(self, request, *args, **kwargs):
if not request.user.is_authenticated:
raise PermissionDenied
... | [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
cf9cbe188af8e0a68a3311d008259a5499a05fe3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fennel.py | 86fa67f2a77d8af74a9f6166a09e57dcba87fc84 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py |
#calss header
class _FENNEL():
def __init__(self,):
self.name = "FENNEL"
self.definitions = [u'a plant with a large, rounded base that is eaten as a vegetable and seeds that are used to give a special taste to food']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f3738475e396794c256993f47be55994ae98fb1f | b68c764000a5be543a1a4f3c7b83c23b47984b30 | /apiv2/handlers/teacher.py | 871e56eece6edc255e56a74ae437edc915fe1831 | [] | no_license | nuannuanwu/weixiao | 7caea4b791584c595adfefd569e3ad257e21c404 | 1b1fbe4c66df731f63f10c57dee20cb0bb4edb4c | refs/heads/master | 2021-01-06T20:37:12.699189 | 2014-02-18T08:04:10 | 2014-02-18T08:04:10 | 16,940,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # -*- coding: utf-8 -*-
from piston.handler import BaseHandler
from api.helpers import rc
from kinger.models import Teacher, Group
from api.helpers import query_range_filter
from django.core.exceptions import ObjectDoesNotExist
class TeacherHandler(BaseHandler):
model = Teacher
fields = ("id", "school_id", ... | [
"rjpanpan@gmail.com"
] | rjpanpan@gmail.com |
0e6641df7961ef4455355c5993679e23159f8d49 | bd5995a1063ff552bb127e0344fd5e60612ed6ae | /selenium.py | 924642656dc9260acb58db0dea89afd61ba1c122 | [] | no_license | Utschie/pythonwork | f07f25d426875cae3d29865c3aa6c1ab5bddd355 | b4014585c1f0dd7007b9c7f5368335daa059839f | refs/heads/master | 2021-05-01T16:49:26.010743 | 2020-06-17T23:10:46 | 2020-06-17T23:10:46 | 121,054,629 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | #selenium自动使用chrome,然后为之后使用PhantomJS做准备
#有时还有bug
#需要添加显式等待代码,能点开的时候就马上点开,不用等加载完,要不然太慢
#等待ajax加载那部分要改,用鼠标拖动到底部那个脚本可能有些问题
#中间还要更换IP和UA
#然后剩下的就是函数和循环了
from selenium import webdriver
from selenium.webdriver.support.ui import Select#用来搞下拉列表
from selenium.webdriver.common.by import By#用来添加显示等待
from selenium.webdrive... | [
"littlecat.j@hotmail.com"
] | littlecat.j@hotmail.com |
c3aa4b41deefb3e5801ccf5f28270c5888a76191 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02265/s299791699.py | 0a03b091b95ca482891fed801602dfe755b7514a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from collections import deque
deq = deque()
n = int(input())
for _ in range(n):
operation = input()
if operation == "deleteFirst":
deq.popleft()
elif operation == "deleteLast":
deq.pop()
else:
command, value = operation.split()
if command == "insert":
d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b40cf7e5f1bd9a41f3c36398c114b805faf51ad0 | f6cb1b34668f4e864836c595efce40083baa8f91 | /common/recipes-rest/rest-api/files/boot_source.py | a535f5fde0f6bf289f7aefefd1b04b00fb1717c5 | [] | no_license | isabella232/openbmc | d419d61092f457d2c25a057831fc8d56cd482e8a | 7a0ece893ac2d985af85701d8a003fa62a34cae0 | refs/heads/helium | 2023-04-06T06:29:29.854842 | 2021-04-16T01:04:35 | 2021-04-16T01:54:48 | 358,585,013 | 0 | 0 | null | 2021-04-16T12:02:45 | 2021-04-16T12:01:40 | null | UTF-8 | Python | false | false | 2,819 | py | #!/usr/bin/env python3
#
# Copyright 2014-present Facebook. All Rights Reserved.
#
# This program file 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; version 2 of the License.
#
# This program is distributed ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e9991fdae2a3358d519f8e5b51311ad024875de6 | 8c4782450881b60a4ce6e2cb312505ade3ab105d | /49.py | 84ce55b4b2457219f331d7e8ca71598d04f574ad | [] | no_license | minahosam/python-examples | 459bc6760fb895866bf8a459ddc26c19aa46efcb | bfcbc64cfecf639a1dd11fbe7a82cadf40b52f2c | refs/heads/master | 2022-12-07T09:49:02.022076 | 2020-09-01T15:16:03 | 2020-09-01T15:16:03 | 291,807,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | file=open('file.txt','r')
text=file.read()
print(text)
file.seek(0)
text1=file.readlines()
print(text1)
file.seek(9)
text2=file.readline()
print(text2)
input ('p e t e')
| [
"you@example.com"
] | you@example.com |
29cff7e5242521a072bc09fb20580402e00962be | 8fc9b78c72c4785f15ecda8de3157839340787d0 | /backend/home/management/commands/load_initial_data.py | c8fbb5dd85e5a468c1230fbc8c027c0a319b044b | [] | no_license | crowdbotics-apps/starty-4859 | 5738f4f35d7f5883369d7e403ceec59b0fdd4ffc | 9669fbdda0106f03fc009c9974296f72080b3f61 | refs/heads/master | 2022-12-12T23:52:45.685770 | 2019-06-18T21:54:58 | 2019-06-18T21:54:58 | 192,617,571 | 0 | 0 | null | 2022-12-09T06:51:09 | 2019-06-18T21:54:41 | Python | UTF-8 | Python | false | false | 715 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">Starty</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics slack app. ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b0365b49eb3d264584f77f3c44d0b3f17a922868 | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/gridland-metro268.py | 8e1bfb0853377dca11a4707e05fc2888f31015d4 | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # Wrong Answer
# Python 3
n, m, k = [int(x) for x in input().split()]
# now n is total train track
n *= m
for _ in range(k):
p, q, r = [int(x) for x in input().split()]
r = r-q+1
n -= r
print(n)
| [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
fab28faccdaebf0a967393ad4f2bf5187e2a95fc | 95761ba9ca92c9bf68f3fb88524ee01ddba9b314 | /api-web/src/www/notasquare/urad_api/__init__.py | fd32ac034fd8a7ba2163055c1266e60ae5f46903 | [] | no_license | duytran92-cse/nas-workboard | 918adf4b976f04a13dc756f8dc32aecf397c6258 | bebe7674a7c6e8a3776264f18a3b7ca6b417dc7e | refs/heads/master | 2022-10-23T01:02:39.583449 | 2020-06-14T19:25:01 | 2020-06-14T19:25:01 | 272,268,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import helpers
import handlers
import tests
import parsers
import authenticators
import authorizators
import queues
import consumers
import containers
| [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
ad65cea9418ec75539cecd8d8768bf44fc6a026d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1110+045/sdB_pg_1110+045_lc.py | e4b227e048cb58f0daa39932ed56b528b6bbe132 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[168.322292,4.220764], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1110+045/sdB_pg_1110+045_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
25c975196c1fe7afe6fce77687bde9cd3a490ef6 | 8a62da2d9c1ac404c5002f39163c1fa8675ac573 | /Scripts/scripts/TC_AD_Bluetooth_12_29_FTP_Long_Duration_File_Transfer_All_1.py | aa32d061cf0a4de8018b8e622c34a122e87b3141 | [] | no_license | evijaythegr8/Applications | 210c0cf432d3366571daee5f34f477a5c6247c99 | f85d7171ae2a177660dc5c5be49575fb52eb849b | refs/heads/master | 2021-01-22T07:04:11.509844 | 2014-04-20T11:15:53 | 2014-04-20T11:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | #
#=BEGIN
#
# This file is part of the Bluetooth use-case verification
#
# Copyright (C) ST-Ericsson SA 2010. All rights reserved.
#
# This code is ST-Ericsson proprietary and confidential.
# Any use of the code for whatever purpose is subject to
# specific written permission of ST-Ericsson SA.
#
#=END
#
import setup_p... | [
"evijaythegr8@gmail.com"
] | evijaythegr8@gmail.com |
2ce71e4077d7462db49d850ca83ac65cd0c285c3 | 7ec0e4c31ed29bcf30f74d779966c8009b2f04f8 | /bin/easy_install-2.7 | 5f34e3f0bbfd0eed2088b6123a2c99c08c461646 | [] | no_license | jaythaceo/ToolSet | 80a9cf5f3a04da808cf316f76db14f598ca2dc56 | 4baef18c374af0c6483e2f97c7b5c8d42a62c7bb | refs/heads/master | 2021-01-10T08:59:37.391778 | 2015-06-20T07:38:51 | 2015-06-20T07:38:51 | 36,956,365 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | 7 | #!/Users/jaythaceo/Documents/djangoApps/toolSet/bin/python2.7
# -*- 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())
| [
"jaythaceo@gmail.com"
] | jaythaceo@gmail.com |
c03f935a14c689fe6d8d0c981b6f3f7a942675aa | 72d7cfbdd02f77300edb0f5e4104a1a147048ade | /tkinterfiles/one.py | 41a7caa20c668a2411715f2c66ab1280f24fc07b | [] | no_license | simrangrover5/batch430 | 33f3e59b7d2c70f87d796cc869855975ffef976a | ec841051d3a84cd56515aeff3b9d328cebea3705 | refs/heads/master | 2020-12-18T09:21:12.518412 | 2020-02-11T12:40:48 | 2020-02-11T12:40:48 | 235,325,192 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from tkinter import *
root = Tk()
l1 = Label(root,text="Welcome to First Class",fg="black",bg="red")
l1.config(font=(None,25,'italic'))
l1.pack()
b1 = Button(root,text="Button1",bg="black",fg="red")
b1.pack()
b2 = Button(root,text="Button1",bg="black",fg="yellow")
b2.pack(side='left')
root.geometry('700x700')
r... | [
"simrangrover5@gmail.com"
] | simrangrover5@gmail.com |
b64490b799287dccc87b7fc1f9679a3e8f54e2da | 01d11e0131785d76b7a28a5b0dfac37ccbf3b62f | /brain_games/games/even.py | a29112fbbf39947a3c50c681c93ccbad500e6b54 | [] | no_license | paalso/python-project-lvl1 | 2e7f461bb87c4135c0c74179ce857960b7fb35a1 | 9e9d8c5d1c58a20b4e404d4bb2677098ae3955fe | refs/heads/main | 2023-06-25T17:07:02.871538 | 2021-07-29T16:29:31 | 2021-07-29T16:29:31 | 387,167,672 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from brain_games.mathlib import is_even, randint
task = 'Answer "yes" if the number is even, otherwise answer "no".'
def gen_question():
return randint()
def str_question(question):
return str(question)
def correct_answer(question):
return {True: "yes", False: "no"}[is_even(question)]
... | [
"40a.pvl@gmail.com"
] | 40a.pvl@gmail.com |
a5757ffd06cac90806111e74c913978958efd5fc | 8e02228b5857d876de244d37b1d6ec3bbd21227e | /python_modules/dagster-test/dagster_test/toys/retries.py | 65774b0f3d1db2e392567108e60b26a9a627b39c | [
"Apache-2.0"
] | permissive | ChocoletMousse/dagster | 4af255d5ab99c25d1a2be379a5bbd83fa3221b64 | a256cb43cde0ab5a800a87ee1f55de560587a4ab | refs/heads/master | 2022-12-26T00:04:31.172150 | 2020-09-25T21:36:15 | 2020-09-26T02:15:35 | 297,765,844 | 1 | 0 | Apache-2.0 | 2020-09-22T20:35:23 | 2020-09-22T20:35:22 | null | UTF-8 | Python | false | false | 959 | py | import time
from dagster import PresetDefinition, RetryRequested, lambda_solid, pipeline, solid
@lambda_solid
def echo(x):
return x
_ATTEMPTS = 0
@solid(config_schema={"max_retries": int, "delay": int, "work_on_attempt": int})
def retry_solid(context):
time.sleep(1)
global _ATTEMPTS # pylint: disabl... | [
"alex@elementl.com"
] | alex@elementl.com |
a5bce036c337a09ce3c55f0d8f4ed8e2f27787f2 | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/transmittals/migrations/0052_remove_trsrevision_originator.py | 351a5ade4413729c0e3938564f21b58236df1848 | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transmittals', '0051_auto_20160226_1127'),
]
operations = [
migrations.RemoveField(
model_name='trsrevision',
... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
0a8d2d8d857fb7fab45cd210e91f1a8df5efd937 | 847f94217951a3afc98b22317662c34c6063e762 | /alternate_sort.py | 748eec487264c400d8058e735222c054c0e9884d | [] | no_license | tashakim/puzzles_python | abf8c4cca4046e3ab611cab2efd33265ece4e954 | 95a86cbbca28d0c0f6d72d28a2f1cb5a86327934 | refs/heads/master | 2023-08-30T19:28:55.134966 | 2021-11-04T03:50:04 | 2021-11-04T03:50:04 | 247,339,457 | 8 | 1 | null | 2021-06-11T03:38:40 | 2020-03-14T19:22:38 | Python | UTF-8 | Python | false | false | 384 | py | def alternatingSort(a):
"""Purpose: Returns a sorted array merged with a special rule.
"""
cur, prev = 0, float('-inf')
for i in range(len(a)):
print("i = ", i)
if i%2 == 0: # even index
cur = i//2
else: # odd index
cur = (-i//2)
if a[cur] <= prev... | [
"jae_young_kim@brown.edu"
] | jae_young_kim@brown.edu |
6a8c25d726145e8d9961e0e54d49fc72ad40bad1 | 303d4aa8ec749844d2f7472e1006b46379c62bc6 | /Tkinter/25、鼠标点击事件.py | 8aa072b8e4e36f6b7cf418abc63e1d3c11ff36d1 | [] | no_license | suntyneu/test | d6f63791006785518d8e4c92d89018049396dd01 | a05f93fe71cdd0594fba180e0bed52d402b47bb2 | refs/heads/master | 2023-03-26T10:55:28.214978 | 2021-03-20T07:04:03 | 2021-03-20T10:02:38 | 349,372,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import tkinter
# 创建主窗口
win = tkinter.Tk()
# 创建标题
win.title("sunty")
# 设置大小和位置
win.geometry("600x400+200+20")
def func(event):
print(event.x, event.y)
# <Button-1> 鼠标左键 <Button-3>"鼠标右键 <Button-2>" 中间滚轮
# <Double-Button> 左键双击
button1 = tkinter.Button(win, text="leftmouse button")
# bind 给控件绑定的事件
button1.bind(... | [
"19904270266@189.cn"
] | 19904270266@189.cn |
e35ce9da391dade5f3888c5bdb47aa2b4d8af753 | 82e19a94a4215683ff46e6dfef19b48e3a093736 | /impfunctions.py | 0aefb954a1eecf1a6390c87cc53abf966354e655 | [] | no_license | goginenigvk/PythonSep_2019 | d6f0505e3639e54b9f0166aef165e57223053d14 | 65cf63212d02b805b1f52c15ccaf9bf67a80ef1b | refs/heads/master | 2022-03-31T06:33:02.623974 | 2019-11-22T16:39:54 | 2019-11-22T16:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | x=int(input("Enter x value :"))
y=int(input("enter y value :"))
print(x+y)
name=input("Enter your name")
print(name)
print(type(name))
print(type(x))
#range(1,100)
for i in range(1,10):
print(i)
#boolean types
True
False
| [
"rajageturgoal@gmail.com"
] | rajageturgoal@gmail.com |
2af2957417f7f9aabded01b15fd09ad7a639b873 | b52c715ae1c4e4e7324338849e21fe25ed27c7ed | /lesson2/_csv/example1_read.py | f99f5841d43b2697e2f7d920e9af2041a2b6c120 | [] | no_license | romi477/cbs_p_advanced | b65321329a00e6b1d9bda413b908124c0f2d9312 | b750d625cb5beddc015c95b432cea3644bd177b1 | refs/heads/master | 2022-12-10T15:57:12.600289 | 2019-03-19T17:15:07 | 2019-03-19T17:15:07 | 176,159,519 | 0 | 0 | null | 2022-12-08T03:01:41 | 2019-03-17T20:53:42 | Python | UTF-8 | Python | false | false | 201 | py | import csv
with open('data/example1.csv', 'r') as f:
reader = csv.reader(f)
print('Line nums', reader.line_num)
print('Dialect', reader.dialect)
for row in reader:
print(row)
| [
"romi4240101@gmail.com"
] | romi4240101@gmail.com |
63fc44f5fe7fdd1d108509d73b67a19d0fe23e18 | 7a043d45cf0ed0938a10a03121c2b75fdd0cc76a | /025/p25.py | 3997296b0507635ac6e3236d5c1a63c89924595d | [] | no_license | tormobr/Project-euler | f8d67292a6426ffba9d589d01c31e2d59249e4ff | b544540b0fee111a6f6cfe332b096fe1ec88935c | refs/heads/master | 2020-05-29T17:27:03.767501 | 2020-02-13T13:06:34 | 2020-02-13T13:06:34 | 189,276,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py |
def get_digits(n):
return len([c for c in str(n)])
current_fib = 1
last_fib = 1
index = 2
while get_digits(current_fib) < 1000:
next_fib = current_fib + last_fib
last_fib = current_fib
current_fib = next_fib
index += 1
print(index)
| [
"tormod.brandshoi@gmail.com"
] | tormod.brandshoi@gmail.com |
f7f81a7e335e78a72290292df56f0a6f45463844 | 1605519e6ec6f2a092d006a851c9ce57e5a2203c | /Mundo 3/05 - Funções - p1/Ex096 - area.py | 4571914968389ae2281e9cccd0e1ddc85b561609 | [
"MIT"
] | permissive | FelipeDreissig/Prog-em-Py---CursoEmVideo | 2ebe8d537493a917b59d7c98fb8bea34e2d6b5fc | 59a85e228b4c7bc0738d1a213e71b0f7fb07d03a | refs/heads/main | 2023-02-06T23:57:43.123295 | 2020-12-28T12:59:04 | 2020-12-28T12:59:04 | 324,915,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | def area(a, b):
ar = a*b
print(f'A área do terro é de {ar:.1f} metros².')
# programa principal
l = float(input('Qual a largura do terreno?'))
c = float(input('Qual o comprimento do terreno?'))
area(l, c)
| [
"58836663+FelipeDreissig@users.noreply.github.com"
] | 58836663+FelipeDreissig@users.noreply.github.com |
997ab5388e02c02aa0fdba042da2ca9171df0df7 | 6e5b8ef12d56a11aa0b68fd5a3700a4be0541acd | /.history/predict_20210820172646.py | cb02d05cbe18fa0fa045f09f2bd63ca37d23efe5 | [] | no_license | Arcofcosmos/MyYolov5_Pytorch | d8fc7f8398249aeb996fa4b07c3ecdc6fedd2308 | 07bcb7e3b1dd32ec25171d4aa860d462f5a01078 | refs/heads/main | 2023-07-15T16:07:52.624808 | 2021-08-21T07:13:42 | 2021-08-21T07:13:42 | 398,490,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | '''
Author: TuZhou
Version: 1.0
Date: 2021-08-20 13:37:28
LastEditTime: 2021-08-20 13:37:47
LastEditors: TuZhou
Description:
FilePath: \my_yolov5\predict.py
'''
#----------------------------------------------------#
# 对视频中的predict.py进行了修改,
# 将单张图片预测、摄像头检测和FPS测试功能
# 整合到了一个py文件中,通过指定mode进行模式的修改。
#-----------------... | [
"tz2062750487@163.com"
] | tz2062750487@163.com |
8360225037f5b128ceb9cb9269cbb149c8c77285 | 1dab494d77c3e7fc3458cf4233a7fb6f74824358 | /contacts/migrations/0006_contact_notes.py | 96988b86d8e78b76d1c88e1f50cadb310851603e | [] | no_license | lightninglu10/silo-backend | bf5d65cbbe5c1d722081321e11ad817fa9651526 | 24c9cf42e0dc166488d1f23ca6bb8b85905d4e8c | refs/heads/master | 2021-01-20T11:49:54.059057 | 2017-03-10T19:45:51 | 2017-03-10T19:45:51 | 80,680,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-13 20:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contacts', '0005_auto_20170207_0303'),
]
operations = [
migrations.AddField... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
5480e86837e4170f16b79ef63698fdd20f6e9117 | 77a3895808b67dd2511ccbe9cd9e56d17c0f7dcf | /src/radical/ensemblemd/kernel_plugins/md/post_lsdmap.py | 7c121c2ac4c0ade828b145ebe5a6177b0ce00d60 | [
"MIT"
] | permissive | peterkasson/radical.ensemblemd | 3b846aaadadae6b074221691c3bdc6fb1223fc36 | 0c02c5071b42c7af8905f7efc0e633f0f2ed89ca | refs/heads/master | 2021-05-29T20:34:59.498724 | 2015-10-22T07:02:52 | 2015-10-22T07:02:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,287 | py | #!/usr/bin/env python
"""A kernel that creates a new ASCII file with a given size and name.
"""
__author__ = "Vivek <vivek.balasubramanian@rutgers.edu>"
__copyright__ = "Copyright 2014, http://radical.rutgers.edu"
__license__ = "MIT"
from copy import deepcopy
from radical.ensemblemd.exceptions import ArgumentE... | [
"b.vivek91@gmail.com"
] | b.vivek91@gmail.com |
a3bd1e2ae1ede9fce76589419f9a76f5fe5dd718 | e9a9a78f0ab3a5ccab4bd7ea8843d6df97f8a08b | /darwen/lib/flask_helpers.py | ea96e11acd13d68a2c511d00a88b3143fcb92f68 | [] | no_license | daimon99/darwenrobot | 6c66789a736419e44f9b663a2de9f8e5db5aa2a6 | 22d140a2838282a53bc233b52985d2ca91070b9f | refs/heads/master | 2021-04-12T17:17:45.312453 | 2020-03-23T15:39:53 | 2020-03-23T15:39:53 | 249,095,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | # Copyright (c) 2018 Anki, 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 in the file LICENSE.txt or at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"daijian1@qq.com"
] | daijian1@qq.com |
efd0260fac53b7df20c04e8073bcb28df371d6ca | a799a105ab2aba39a475bf2ce086405def0351c2 | /test/test_json.py | 932e91dac4ce768a61621627e3737e89f1b58e64 | [
"Apache-2.0"
] | permissive | mbohlkeschneider/gluon-ts | d663750d13798624eca5c9d6f12a87e321ce7334 | df4256b0e67120db555c109a1bf6cfa2b3bd3cd8 | refs/heads/master | 2021-11-24T06:09:49.905352 | 2021-10-14T09:30:38 | 2021-10-14T09:30:38 | 192,546,557 | 54 | 10 | Apache-2.0 | 2022-08-31T18:36:44 | 2019-06-18T13:33:36 | Python | UTF-8 | Python | false | false | 1,773 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | mbohlkeschneider.noreply@github.com |
fbdd17ff1e99dd46d9a573e79b8d428e81813b4d | ed7b5c24d9a13d0c717fd6f6293f3464f43d7cbf | /demo/sjh_opencv/cv1.py | f8f1a8b540dcb192b83d80ca5e0d9281634f0c1f | [] | no_license | befallenStar/python | ccb93d456dc161a8087a78220a7aaab21320ab8b | e44ce8c11b820f03fe2d60dfa84053d8cc356c80 | refs/heads/master | 2022-12-07T18:34:03.091146 | 2020-08-20T02:33:56 | 2020-08-20T02:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | # -*- encoding: utf-8 -*-
import argparse
import base64
import os
import threading
import time
from io import BytesIO
import cv2
import numpy as np
from PIL import Image
from scipy.signal import argrelextrema
import sjh_opencv.crop as crop
class Frame:
def __init__(self, id, diff_sum_mean):
self.id = id
... | [
"sy5622_5@126.com"
] | sy5622_5@126.com |
69bab4256e675a638821e9ce640f227e67aefad7 | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/students/views_20210417001941.py | aaf988203c39b6cf2626617d97a08c0dc5b3223b | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from django.shortcuts import render
from django.views.generic.edit import CreateView
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
class StudentRegisterView(CreateView):
template_name = 'students/student/registeration.html'
form_class = UserCreationForm
succ... | [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
f8398fa9dd7ac6c6113b27cd46dc1a3d426fb8a7 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /Amazon/OnlineAssessment/storage_optimizations.py | 8c7fddbf8258950ce89a119e2cba35090bc421ea | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | # Storage Optimization
# https://aonecode.com/amazon-online-assessment-storage-optimization
# Intuitive Solution
# O(mn) Time
def storage_opt(n, m, h, v):
return get_max(n + 1, h) * get_max(m + 1, v)
def get_max(length, bars):
separators = set([])
for i in range(1, length):
separators.add(i)... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
207c055c93fac0e111dc3a878f2e3dab71753dbf | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/taxonomy/builtin_functions/format/error_format_instance.py | b9fc28746bfac82a483c409697a960fce05a561a | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: # coding=utf-8
2: __doc__ = "format builtin is invoked, but a class is used instead of an instance"
3:
4: if __name__ == '__main__':
5: # Call options
6: # (AnyType) -> <type 'str'>
7: # (AnyType, Str) -> <type 'str'>
8:
9:
10: # Type err... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
1e1cc3979f0eb76d56924b6bdecf38c49b732f94 | 9a10e588e6e70c86a146012e62561eb0e45da32a | /src/storage/storage.py | 302c84a0e597d9d3647bc8f68baae51b8eee6515 | [
"MIT"
] | permissive | yutiansut/PyBitmessage | 8f606945eaeaca5d181d44e028e3fed777e924ed | a29f7534ee54a6b93498ec13e581ee2da22dfc94 | refs/heads/master | 2021-09-24T07:12:18.638728 | 2017-07-21T07:06:02 | 2017-07-21T07:06:02 | 103,613,603 | 0 | 0 | MIT | 2018-10-05T02:18:15 | 2017-09-15T04:23:42 | Python | UTF-8 | Python | false | false | 1,299 | py | import collections
InventoryItem = collections.namedtuple('InventoryItem', 'type stream payload expires tag')
class Storage(object):
pass
# def __init__(self):
# super(self.__class__, self).__init__()
class InventoryStorage(Storage, collections.MutableMapping):
def __init__(self):
# super(se... | [
"surda@economicsofbitcoin.com"
] | surda@economicsofbitcoin.com |
aa5d38b01fccd5e0f0fa0b3ee9e18a5e76560869 | b232ab24686a197a88973f26478157d05c71a930 | /07. 파이썬 분기문/119.py | 7434c666ea5fc97fa0e01f824052747499cca4d4 | [] | no_license | areum0505/python300 | 09a3ea858bb728b6e2f699a57f013457680ab1d8 | e3b56bd653390172410b86e15c40f34ef3125787 | refs/heads/master | 2023-01-06T04:53:44.937116 | 2020-10-22T23:44:36 | 2020-10-22T23:44:36 | 288,321,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # 아래와 같이 fruit 딕셔너리가 정의되어 있다. 사용자가 입력한 값이 딕셔너리 키 (key) 값에 포함되었다면 "정답입니다"를 아닐 경우 "오답입니다" 출력하라.
fruit = {"봄" : "딸기", "여름" : "토마토", "가을" : "사과"}
user = input("제가좋아하는계절은: ")
if user in fruit:
print("정답입니다")
else:
print("오답입니다")
| [
"noreply@github.com"
] | areum0505.noreply@github.com |
e65e76288800474141233e3b19bbef65b23deb85 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/training_event.py | 85fd3dad4824c7f0faba219a00369e7d92c1ddfc | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 2,943 | py | from typing import Tuple
import torch
import torch.distributed as dist
from torch.nn.parallel import DistributedDataParallel as NativeDDP
from torch.optim import Optimizer
from model.fp16 import FP16_Module
from model.fp16 import FP16_Optimizer
from model.models import gpt2_get_params_for_weight_decay_optimization
fr... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
d7b7f317f85a8f0da4515a4c7f377bb5bb6a0fc3 | 419637376e445ec9faf04c877d5fb6c09d15903f | /steam/user/student/userStudentCourseService.py | b8c22e0fb5ca9e1927ce8676de8a55f5193dc069 | [] | no_license | litaojun/steamOmTest | e4203df30acafaa5e282631d77429c0e4483fb88 | 86f84dbd802d947198823e02c2f1ba2695418a76 | refs/heads/master | 2020-04-02T21:48:55.115389 | 2019-07-11T06:08:27 | 2019-07-11T06:08:27 | 154,812,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: Lieb
@license: Apache Licence
@contact: 2750416737@qq.com
@site: http://blog.csdn.net/hqzxsc2006
@software: PyCharm
@file: userStudentCourseService.py
@time: 2018/10/12 17:17
"""
import json
from opg.util.utils import query_json
#from st... | [
"li.taojun@opg.cn"
] | li.taojun@opg.cn |
382c8d2668daf27f2440ca45e12297320a6bd9fa | 578b77c97e4e6e97404a368dc0cb16c7b38074c0 | /backend/mobileapp_dev_1514/wsgi.py | 77c6c1c24ec4e477a05deeaff089a85ae97f0a57 | [] | no_license | crowdbotics-apps/mobileapp123-dev-1514 | 26cdbe44b5884c6c856fb00d822713e3f0b9a5fb | 55ac3e0f020d45f725539287cc12c9b6993a22a5 | refs/heads/master | 2022-04-05T18:32:31.188742 | 2020-01-31T10:45:59 | 2020-01-31T10:45:59 | 234,293,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for mobileapp_dev_1514 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
45a2da7d700bee7f3f589860e89e0a82fcc56bbc | 3b71b68634ff1683ecaa657db744901be7ceaf5c | /ipyparallel/engine/nanny.py | 22a72ecb2ad81bfe213cb37db8d31c1ebaa216a0 | [
"BSD-3-Clause"
] | permissive | yullianaitem204/ipyparallel | d6981ae150782670302078f2c88305b6e85a2c03 | 84e4c4d8536df6cb4cbe72a898235012ddcf0c1b | refs/heads/main | 2023-06-06T16:20:27.163483 | 2021-07-09T18:13:12 | 2021-07-09T18:13:12 | 384,515,783 | 0 | 0 | NOASSERTION | 2021-07-09T18:04:11 | 2021-07-09T18:04:10 | null | UTF-8 | Python | false | false | 7,626 | py | """Engine subprocess that receives and relays signals
Currently the kernel nanny serves two purposes:
1. to relay signals to the process
2. to notice engine shutdown and promptly notify the Hub,
rather than waiting for heartbeat failures.
This has overlapping functionality with the Cluster API,
but has key differ... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
dd7a74aae4452673fbd8b6b9da5319947260810d | 07917881310fc81d85a2cbdf27c9b3c4fa03c694 | /python1901/1_python基础/day12/9.二进制字符串内存的读写.py | 61292ea3461da944d5c5e4f03aa01e016bb7a458 | [] | no_license | zaoyuaner/Learning-materials | 9bc9a127d1c6478fb6cebbb6371b1fd85427c574 | 1f468a6f63158758f7cbfe7b5df17f51e3205f04 | refs/heads/master | 2020-05-18T11:38:45.771271 | 2019-05-20T09:07:44 | 2019-05-20T09:07:44 | 184,384,050 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# author:zhangjiao
from io import BytesIO
#在内存中读取二进制文件/字符串
bio = BytesIO()
bio.write("中国".encode("utf-8"))
print(bio.getvalue())
bio2 = BytesIO(b'\xe4\xb8\xad\xe5\x9b\xbd')
print(bio2.read().decode("utf-8"))
with open("img.jpg","rb") as f:
str1 = f.read()
bio3 = Byt... | [
"13510647877@163.com"
] | 13510647877@163.com |
dd20345f9aa1ca97df79d5ea41ba5dc4c76ff6c6 | 02be25344a36bf58993d690ce3d3eafab30ccf57 | /PythonAndPygameArcade/Chapter 4 Guessing Games with Random Numbers and Loops/4.3/PythonNestedForLoops/PythonNestedForLoops/test.py | 3495fc6f64e3a36fd86012c2bf23e416064a0b03 | [] | no_license | rsoemardja/Python | 127a81e1d94888f8990449faeba34dbe9e2f5f97 | 3ad930a0f419112aa83cd808d8f51fcd050935cc | refs/heads/master | 2021-07-06T06:15:49.509879 | 2020-12-20T02:34:05 | 2020-12-20T02:34:05 | 210,327,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # We will start with code like so
#The brackets means that how many times it will be repeated
for i in range(3):
print ("a")
for j in range(3):
print("b")
#This will loop 3 times and the for loop in the indentation will loop 3 times
# but with b since the loop is 3 times and b's loop 3 times b will be printed ... | [
"rsoemardja@gmail.com"
] | rsoemardja@gmail.com |
c7ca718e6ab80d69c6d40bd639dcc99076fa18c7 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/enums/types/campaign_status.py | 37ba26069649af25c19a480115e6cee974e5a137 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,153 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
97824f0396c638927e31ae2d07adfee21ee71446 | 473274584ef01acc874783ef14ac30f8c4beb861 | /about/apps.py | a8b41b6cb960fe5c497f53f8129e080b768cf927 | [] | no_license | isaev4lex/GoodWell | a58d407d06d0bdfd82da0b09df3181f90a91504d | c5600d6de951453f9e2197d4498947e484cafab5 | refs/heads/main | 2023-09-02T12:11:04.797298 | 2021-11-01T06:26:23 | 2021-11-01T06:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.apps import AppConfig
class AboutConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'about'
verbose_name = 'О компании'
| [
"FWorld21@protonmail.com"
] | FWorld21@protonmail.com |
41b205b3cf071a04da84ecdb34e9a2a4807c9089 | 0ca2d3fcd53fb9795c2d8741affe87cccede300c | /scipy_doc/routines.ma.html/numpy.ma.notmasked_contiguous.py | 677a2dc7c1559f6ed3736acb6082cda0611688db | [] | no_license | yzozulya/numpy_test_examples | 9bafc5d0711149a3366a0644309be6ff6d480c7a | 4b1e65b160728a4c483d883bd00b72b2f61377b8 | refs/heads/master | 2021-01-01T19:01:50.560912 | 2015-04-08T12:18:46 | 2015-04-08T12:18:46 | 33,604,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import numpy as np
a = np.arange(9).reshape((3, 3))
mask = np.zeros_like(a)
mask[1:, 1:] = 1
ma = np.ma.array(a, mask=mask)
np.array(ma[~ma.mask])
np.ma.extras.notmasked_contiguous(ma)
| [
"yulia.zozulya@jetbrains.com"
] | yulia.zozulya@jetbrains.com |
91ee4d3f11d74098d05068eeb508b1195da77aa8 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /customer-profiles_write_f/profile-object-type_delete.py | 2e87de54acfd417f546943f381e3f745df549d11 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
6a8754c1a2bc6cb3ea3c0530d909b07479376269 | a3699050efcd0b991d714d68dd4d91555bcc2a4f | /bsv.py | bc4d5c1629a70e43064385368c147343715df487 | [
"MIT"
] | permissive | mobarski/smash | 94af601dffed1d54f7c4cc0f7d1c22b3f8eff325 | a3e622019ea5e0d77232d3d37531ef6b3add2dd4 | refs/heads/master | 2021-01-19T00:55:56.974534 | 2017-03-31T20:01:35 | 2017-03-31T20:01:35 | 59,865,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | """
Blank Separated Values
"""
import re
p_row = """(?x) "[^"]*" | '[^']*' | \S+ """
re_row = re.compile(p_row)
def rowiter(text):
for line in text.splitlines():
line = line.strip()
if not line: continue
yield re_row.findall(line)
def findall(text):
return re_row.findall(text)
def format(row,sep=' '):
def... | [
"mobarski@pl.grupa.iti"
] | mobarski@pl.grupa.iti |
919c3a723761e3dfa04b1a31eb53b7d5cb84fc4c | 37321963ee1382039052481ec4b3ac71f669e2fe | /usaspending_api/references/migrations/0003_add_definition.py | 9edbe6ea455a5f4b830c9c34757309f82889a7cc | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | vitorbaptista/usaspending-api | 158121d393c4d99a788e0ee7e6c804b947ba17b7 | 67364a33b6909ba3993f197b35fd3436c3229313 | refs/heads/dev | 2021-07-05T17:15:52.398868 | 2017-09-27T19:51:05 | 2017-09-27T19:51:05 | 105,155,363 | 0 | 0 | null | 2017-09-28T13:59:31 | 2017-09-28T13:59:31 | null | UTF-8 | Python | false | false | 1,357 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-05-02 14:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('references', '0002_auto_20170503_1737'),
]
operati... | [
"catherine.devlin@gsa.gov"
] | catherine.devlin@gsa.gov |
f713a66fd6594c7163f5bf4b9ebcd44a0630f397 | 986bd8f5d489534dea7d644b760583dd5d589980 | /0096_unique_binary_search_trees.py | 12bd85f92f194cb13be482acb2010fe20b899b5a | [
"MIT"
] | permissive | subwaymatch/leetcode | f259352df611e0c0cc1101bb1120099e8faa939e | 63ac467d8c6b36656975eb58f3b1c34474586bf2 | refs/heads/master | 2023-01-28T09:50:01.762731 | 2023-01-10T15:32:41 | 2023-01-10T15:32:41 | 135,706,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | class Solution(object):
def numTrees(self, n):
"""
:type n: int
:rtype: int
"""
num_bst_list = [1]
return self.numTreeDP(n, num_bst_list)
def numTreeDP(self, n, num_bst_list):
# If n doesn't exist in dp table, recursively count it
... | [
"noreply@github.com"
] | subwaymatch.noreply@github.com |
075a3012e7a2be1e770b8cbdba3f544573f66628 | 553af49f5937ac8fdf47e826315ea5a761b56d0d | /lecture_03/11a_networks_info.py | 73e11b0a77a05daa1b878fff0e23589e703e84e1 | [] | no_license | compas-ITA20/ITA20 | 6ef232b6376de8a8b6391394f6b2f6e37f5d2068 | 244ddbfdc9480f4ea8dda7f983f600f4793594d8 | refs/heads/main | 2023-01-24T20:30:12.360193 | 2020-12-09T10:47:44 | 2020-12-09T10:47:44 | 300,848,724 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import compas
from compas.datastructures import Network
from compas_plotters import NetworkPlotter
network = Network.from_obj(compas.get('grid_irregular.obj'))
text = {node: str(network.degree(node)) for node in network.nodes()}
plotter = NetworkPlotter(network, figsize=(12, 7.5))
plotter.draw_nodes(text=text, radiu... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
2a6eaed4b33776df8b4edb4299c4cb1253aa2c06 | 0c3debebb2c926d491f2e17e6b74b25ad56ef750 | /linkedListRotationByK.py | f20efda18a597a97d5207707321630071d3306c9 | [] | no_license | WillLuong97/Binary-Search | e711f92dede34ce847dc170150dd6012b421698c | 2a89774f7cd3861501bd94832f56709c134b4d17 | refs/heads/master | 2023-04-16T15:47:41.506730 | 2021-04-28T19:28:11 | 2021-04-28T19:28:11 | 287,374,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | #This python program is the solution for Leetcode 61: Rotate List
#Prolblem statement:
'''
Given a linked list, rotate the list to the right by k places, where k is a non-negative.
Example 1:
Input: 1->2->3->4->5->NULL, k = 2
Output: 4->5->1->2->3->NULL
Explanation:
rotate 1 steps to the right: 5->1->2->3->4->NU... | [
"tluong@stedwards.edu"
] | tluong@stedwards.edu |
78de7c9bf73cb22d9e60fa3695598eb3126e6e6e | 849f043d5c26e2bc6781801df8684b6ea5c78e6e | /base/python_base8.py | 8f01e37f5cade2d2e709688435c7947a1b70ecad | [] | no_license | alexzinoviev/itea_c | d464a7ba76fa3bdad486649130ebecf4ef3b999e | ad55c326add2654e8cf342470ec2860e583247be | refs/heads/master | 2021-01-18T20:29:44.522745 | 2017-06-03T10:24:10 | 2017-06-03T10:24:10 | 86,972,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | l = [1,2,3,4,5,6,8,1,4]
d = {}
for i in l:
if i in l:
print(i)
print(d)
break
d[i] = True
print(d) | [
"shurik.zinovyev@gmail.com"
] | shurik.zinovyev@gmail.com |
77eb0169bda7db7bd5ab0bb32c44946cd85f7f10 | e5e3a924ab5ef8f48ef4a4942b77f91141b8b477 | /httpd.py | 6a687960d14a856b5e92f54d32afcc51f0c5fdaf | [] | no_license | maratkanov-a/highload_web_server | e45f3b1f3cc36d79773c2f35deb4cf8b8745355a | f8d0b38691c8dc392a90bd437f519ad530bc7ba1 | refs/heads/master | 2021-01-11T19:43:11.757580 | 2016-10-16T13:41:42 | 2016-10-16T13:41:42 | 69,187,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # coding: utf8
import argparse
import socket
from multiprocessing import Process
from net_http import set_response_header, get_response
from config import host, port, AMOUNT_THREAD, PROJECT_ROOT, AMOUNT_CPU
def thread_def(server_sock):
while True:
client_sock, client_addr = server_sock.accept()
... | [
"a.s.maratkanov@gmail.com"
] | a.s.maratkanov@gmail.com |
2f0b0e0d34fe310ea9acc3673a994fd275f3495c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02419/s340422221.py | f108de2c48ddfab52fb146072aa9dfc1d71cf8b1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | w = input()
cnt = 0
while(True):
t = input()
if t == "END_OF_TEXT":
break
t = t.lower().split()
for i in t:
if i == w:
cnt += 1
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7746c9f77426c75cc1c1f61ed6cf776889d5b518 | ebb71d8710ac1445dc00b1c2a65a1e42979e2718 | /12-introduction-to-databases-in-python/04-creating-and-manipulating-your-own-databases/03-inserting-a-single-row-with-an-insert-statement.py | 7edf0f7ed3757ade17230c124e1687da398c2851 | [] | no_license | 0ashu0/datacamp-1 | 6473d83afc0ae00dc43116c1889bf065fb923ce4 | 9f0f64427ff07ff5f132886a5f44e19c5045c705 | refs/heads/master | 2020-12-13T07:56:18.687044 | 2019-01-09T07:18:02 | 2019-01-09T07:18:02 | 234,354,666 | 1 | 0 | null | 2020-01-16T15:49:48 | 2020-01-16T15:49:47 | null | UTF-8 | Python | false | false | 1,944 | py | '''
Inserting a single row with an insert() statement
There are several ways to perform an insert with SQLAlchemy; however, we are going to focus on the one that follows the same pattern as the select statement.
It uses an insert statement where you specify the table as an argument, and supply the data you wish to in... | [
"sashakrasnov.nfo@gmail.com"
] | sashakrasnov.nfo@gmail.com |
9da155d9d86381491e41b5c0800ea57c177d190b | ae333003a102da890a4a35cd55c6d0bfd498ef6a | /bit_manipulation/test.py | f15680d65f94e20ebff28b3180d5f5a48f60cf3d | [] | no_license | jschnab/leetcode | e4624181525577d335af4774c4d07b577f80fb04 | 6fe9ea880dbc27c654205bf5c52a09c6313e70e9 | refs/heads/master | 2023-07-06T11:54:31.061907 | 2023-07-04T02:42:10 | 2023-07-04T02:42:10 | 224,428,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | def clear_ms_through_i(number, i):
print("before:", bin(number))
mask = (1 << i) - 1
print("mask:", bin(mask))
print("after:", bin(number & mask))
print()
def clear_i_through_0(number, i):
print("before:", bin(number))
mask = ~((1 << i) - 1)
print("mask:", bin(mask))
print("after:... | [
"jonathan.schnabel31@gmail.com"
] | jonathan.schnabel31@gmail.com |
852b1cbfc71dd2228d8afd219a050633e4d25d81 | 243d0543f8d38f91954616c014456122292a1a3c | /CS2/8500_2d_lists/9910_project_wave_simulation/code_for_students/waves.py | 1256c26360bfd361a3b778e1961042bf7ee99f48 | [
"MIT"
] | permissive | roni-kemp/python_programming_curricula | 758be921953d82d97c816d4768fbcf400649e969 | eda4432dab97178b4a5712b160f5b1da74c068cb | refs/heads/master | 2023-03-23T13:46:42.186939 | 2020-07-15T17:03:34 | 2020-07-15T17:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | '''
This program is based on a NetLogo model found at
Netlogo -> Models Library -> Chemistry & Physics -> Waves -> unverified -> Raindrops
Step 1: Create and draw 2d array of water blobs.
See TODO1 and TODO2
Step 2: getClickedRowCol. Test this by clicking to change individual cell colors.
See #TODO3
Step 3: sumNeigh... | [
"neal.holts@gmail.com"
] | neal.holts@gmail.com |
3ee643ab7e346a79cbf364fe095f114a2872990a | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/html/parsers/HTMLParsers.py | d56269250e77282df6aecaa05363cdeb541b7380 | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | import urllib
import httplib
from vyperlogix.hash import lists
from HTMLParser import HTMLParser
__copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial edu... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
4710ba80d8a0300fc48e3d597a1934c06ed5ecf7 | 775429e4044e0bf54e553317bccdee92c55fd949 | /package/platforms/osx/template/setup.py | 32c3c5983779243b6e22ce30b8967ea3a7f1c7c1 | [] | no_license | painless-security/xml2rfc | 75b575e35d69e89eae4b0ce7032701b15bd831ca | dfc515bf8a0c116e3616e03777e268b1f3a684ec | refs/heads/main | 2023-06-21T07:21:16.656131 | 2021-05-20T19:49:31 | 2021-05-20T19:49:31 | 373,929,333 | 0 | 0 | null | 2021-08-09T15:07:33 | 2021-06-04T18:31:25 | Python | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python
# --------------------------------------------------
# Copyright The IETF Trust 2011, All Rights Reserved
# --------------------------------------------------
from setuptools import setup
import xml2rfc_gui.main
APP = ['xml2rfc-gui.py']
DATA = ['xml2rfc/templates']
OPTIONS = {
'argv_emulatio... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
5e478d8649a9bfff640630f118ddb8141ac9ec0e | 7ab7a79d2b719f8ef8daed5cca8df487884837a8 | /rsaCipher.py | 03168ecc420dfb2eb35f38f2736f950d16bcdd2f | [] | no_license | newsupermario/codebreaker | 9cc8329f3f5da82e5473ce0d4dc54bd4a8185561 | b31b462fe2b641cbb0e2b002d30a679b053ddd97 | refs/heads/master | 2023-06-30T03:42:58.727118 | 2020-10-04T06:43:16 | 2020-10-04T06:43:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | # RSA Cipher
# http://inventwithpython.com/hacking (BSD Licensed)
import sys
# IMPORTANT: The block size MUST be less than or equal to the key size!
# (Note: The block size is in bytes, the key size is in bits. There
# are 8 bits in 1 byte.)
DEFAULT_BLOCK_SIZE = 128 # 128 bytes
BYTE_SIZE = 256 # One byte has... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
57793360c5e4627b8e2d59500e0fdcfc70f03afb | f5d2a1459c81eb23a745bd63f41ef980c41ea0a4 | /ZG-PhaseFour/code/website/xxsy/xxsyComments.py | 4030fa3c192b907c5ed2648c54fae34c9d3b38a0 | [] | no_license | ErBingBing/django-tonado-crawler | 6800bb0269e99e2454fb0a9079175ffe9d4d0a0b | db31b4cdf7ecc509f1a87aa325621943df825e98 | refs/heads/master | 2021-08-22T11:30:08.419583 | 2017-11-30T04:04:40 | 2017-11-30T04:04:40 | 112,562,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,563 | py | # encoding=utf8
##############################################################################################
# @file:XxsyComments.py
# @author:Yongjicao
# @date:2016/12/12
# @version:Ver0.0.0.100
# @note:潇湘书院新闻页获取评论的文件
##############################################################################################
imp... | [
"913702626@qq.com"
] | 913702626@qq.com |
79a5d9674a0a92e0add8a040139512a698a58c87 | 8f3510ad2573dad3a355857f0bb6a8d8442c8be8 | /data_hacks/histogram.py | eb103e2964f0579c18620c2c138cb0040c18875f | [] | no_license | mjschultz/data_hacks | 54fcf77e338e27bd10fdfd6460bed37bb25c0f61 | cb6504babe799c04811129144c6de5001f8e0f2b | refs/heads/master | 2021-01-15T19:40:40.066777 | 2010-11-11T21:33:56 | 2010-11-11T21:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | [
"jehiah@gmail.com"
] | jehiah@gmail.com |
2fe806dc867e89db0fc15055285bddfcbc8113ad | 3f16e66b33b39df8866947fcf1d8249476725c03 | /04_base_of_python/exceptions.py | 62d2c32e8dd707425ef7700a107228306bf3ad72 | [] | no_license | VadimVolynkin/learning_python3 | ea3559e0f01b4c9e09ae82b76ca315de8e41ecc4 | 872f0a2ac296ec3242ac9b81f63a29f09bc614fa | refs/heads/main | 2023-08-10T05:39:04.376172 | 2021-09-07T14:44:20 | 2021-09-07T14:44:20 | 339,133,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,028 | py | # https://pythonworld.ru/tipy-dannyx-v-python/isklyucheniya-v-python-konstrukciya-try-except-dlya-obrabotki-isklyuchenij.html
https://www.youtube.com/watch?v=89wpfOAgrCk
"""
Конструкция try - except нужна для того, чтобы при возникновения исключения программа не падала, а продолжала работать и правильно обрабатывала и... | [
"71ooo@mail.ru"
] | 71ooo@mail.ru |
0273616d55cb67b3470093d1e42b99ef44a2f0e2 | 645e9674e78b3c0ae72a7d4dc5f9694f97c035d3 | /Python/Examples1/example1_2.py | 83fdb699291744cff890683fbea85098b7e94f01 | [
"MIT"
] | permissive | msiplab/EicProgLab | 30cd1b3f45eb86c26a270af5888f6966abaac9ae | aa4b19e59154ce27cda856fa6a615859304bd595 | refs/heads/master | 2023-07-19T22:35:52.457866 | 2023-07-12T20:35:23 | 2023-07-12T20:35:23 | 125,338,699 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | """
example1_2.py
Copyright (c) 2018-2023, Shogo MURAMATSU, All rights reserved
"""
from my_complex import MyComplex
import sys
import math
def main(args):
#引数の数の確認
if len(args) != 5:
print('引数の数は 4 つ必要です.')
sys.exit(0)
#コマンド引数からのデータの読み込み
#MyComplexクラスをインスタンス化
z0 = MyComple... | [
"shogo@eng.niigata-u.ac.jp"
] | shogo@eng.niigata-u.ac.jp |
c74ec6450a669d2942fe8ac8e99f6163eeeb1eb5 | da7a165522daea7c346693c5f32850017c482967 | /abc51-100/abc067/c.py | 659032137fd9536c0ad6901b28e8822f8f384770 | [] | no_license | SShayashi/ABC | 19f8750919208c5ff8935638dbaab941c255f914 | 3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c | refs/heads/master | 2021-05-04T21:06:10.720367 | 2020-07-11T13:59:16 | 2020-07-11T13:59:29 | 119,886,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | def m():
n = int(input())
a = list(map(int, input().split()))
b = a.copy()
for i in range(1, n):
b[i] = b[i] + b[i-1]
for j in range(n-2, -1, -1):
a[j] = a[j] + a[j+1]
ans = 999999999999
for j in range(n-1):
ans = min(ans, abs(b[j] - a[j+1]))
return ans
print(m(... | [
"sshayashi0208@gmail.com"
] | sshayashi0208@gmail.com |
f7bf99f30a3a13b6c4516b1e485a23f355e4c558 | 5d2404f62e58d5fd1f6112744ff32c3166183ac7 | /Exercicios/ex003.py | 1205c9c7c8818d71064cc496ee3824ad4a96faf6 | [] | no_license | Leownhart/My_Course_of_python | 236cfc84d841c5883e5aa1cc0c0730e7a9a83c40 | 5abb21f8cdad91ab54247a007d40bf9ecd2cff8c | refs/heads/master | 2020-08-28T15:04:33.628086 | 2020-08-24T19:25:39 | 2020-08-24T19:25:39 | 217,733,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | n1 = int(input('Informe um valor: '))
n2 = int(input('informe um segundo valor: '))
soma = n1 + n2
print('A soma de {0} é {1} e igual: {2}'.format(n1, n2, soma))
| [
"francisco.amartins.al@gmail.com"
] | francisco.amartins.al@gmail.com |
46921cca5b9c1784f07bf78fade1578b1c07ebec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02726/s305561871.py | f26bf2ce1a76d3269f222e8f66cc379fe74d8ec2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | n,x,y = map(int,input().split())
x -= 1
y -= 1
cnt = [0]*n
for i in range(n):
for j in range(i+1,n):
dis = min(j-i,abs(x-i)+1+abs(j-y))
cnt[dis] += 1
for i in range(1,n):
print(cnt[i]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0f40a22601dcfebc953d9ab7bf8dd71f05c341f9 | f4384a8cc6444ee6036e52be86be3b3a7e1a411f | /devel/lib/python2.7/dist-packages/openai_ros/__init__.py | fe91de84da33728a18ba78b05eca602ee5bee601 | [] | no_license | ava6969/BaxterDRL | ad1ba4693d86747c4bfe9f0f11ca8899f9ae16d4 | 1a38a2d4ff697d0b0312582fb944feae9a293b23 | refs/heads/master | 2023-01-23T13:53:09.791157 | 2020-11-16T02:11:24 | 2020-11-16T02:11:24 | 309,526,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from pkgutil import extend_path
from sys import path as sys_path
__extended_path = '/home/dewe/ros_ws/src/openai_/openai_ros/openai_... | [
"ava6969@rit.edu"
] | ava6969@rit.edu |
7468046b456ac13c5ec56530a65892c709d4d193 | aca209472c7288d69adf57124c197baf98c7a6e7 | /OpenCV讀者資源/讀者資源/程式實例/ch27/ch27_3_1.py | 70b7dfa2eb965cfffefa6109ab8d174663a304bd | [] | no_license | Hank-Liao-Yu-Chih/document | 712790325e48b9d8115d04b5cc2a90cd78431e61 | fafe616678cd224e70936296962dcdbbf55e38b3 | refs/heads/master | 2022-09-22T12:40:33.284033 | 2022-09-08T00:33:41 | 2022-09-08T00:33:41 | 102,203,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # ch27_3_1.py
import cv2
pictPath = r'C:\opencv\data\haarcascade_frontalface_default.xml'
face_cascade = cv2.CascadeClassifier(pictPath) # 建立辨識物件
img = cv2.imread("solvay1927.jpg") # 讀取影像
faces = face_cascade.detectMultiScale(img, scaleFactor=1.1,
minNeighbors = 5, minSize=(20,20)... | [
"hank.liao@vicorelogic.com"
] | hank.liao@vicorelogic.com |
119df6fe55f9fa4a5d8e86887e993ed9e7fd0820 | c62f00317dc0cd352a49413a88ac26a9776d3d4d | /tracker.py | e594c42d3d9265dee7f3c7cb8d66f6f088fc89d4 | [
"MIT"
] | permissive | nicholaskajoh/ivy | 5cdbc1650f9e1f58b4d28433df71c67ffbdf4da1 | 83a97030125301b4838b15c165aabddc78c9a722 | refs/heads/master | 2023-07-03T18:38:14.414235 | 2022-09-30T20:13:05 | 2022-10-02T17:29:31 | 152,116,071 | 237 | 96 | MIT | 2022-10-02T17:29:32 | 2018-10-08T17:03:46 | Python | UTF-8 | Python | false | false | 4,699 | py | '''
Functions for keeping track of detected objects in a video.
'''
import sys
import cv2
import settings
from util.blob import Blob
from util.bounding_box import get_overlap, get_box_image
from util.image import get_base64_image
from util.object_info import generate_object_id
from util.logger import get_logger
logg... | [
"kajohterna@gmail.com"
] | kajohterna@gmail.com |
6efd7abb2ddb79175cc5fcf9f3cf8f3d031bcd1c | 01b6a10e92f3dae773f824065a5508b073fd6d62 | /baekjoon/2920.py | 3088c195c2fc4af94a44b4897f20142275c8499d | [] | no_license | jihongeek/Algo | 213989dc86b5476939776c31b12b21fba48bff8d | 8dfc9db33f611ff76c4943be9868847c3c0501b4 | refs/heads/master | 2023-08-28T23:32:42.448354 | 2023-08-12T11:26:08 | 2023-08-12T11:26:08 | 188,658,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | inputlist = input().split()
ascending = ["1","2","3","4","5","6","7","8"]
descending = list(reversed(ascending))
if inputlist == ascending:
print("ascending",end="")
elif inputlist == descending:
print("descending",end="")
else:
print("mixed",end="")
| [
"jihongeek@kakao.com"
] | jihongeek@kakao.com |
237850a9a8f57914c86ea47bc0cc7d3c264b3c2c | c575745e80d01e9232335e60e7bac1feb390db80 | /defra-atom/utils.py | 00006fe63992443d1b7cde97aa5c0304b1360d86 | [] | no_license | rcgsheffield/urban_flows | 42d4011d5e4834d505b35fbe6cee950f1727c9a2 | 232d4c4e3b8487015e59056bff4f53308f9325b1 | refs/heads/master | 2022-02-12T19:24:29.535474 | 2022-02-07T12:50:49 | 2022-02-07T12:50:49 | 248,738,949 | 2 | 2 | null | 2022-02-07T12:51:14 | 2020-03-20T11:28:37 | Python | UTF-8 | Python | false | false | 583 | py | """
Random utility functions
"""
import os.path
import pathlib
def build_input_dir(root_input_dir: str, year: int) -> str:
return os.path.join(root_input_dir, str(year))
def build_output_dir(root_output_dir, year, input_path) -> str:
"""Prepare output directory"""
output_dir = os.path.join(root_output... | [
"j.heffer@sheffield.ac.uk"
] | j.heffer@sheffield.ac.uk |
9727a23ee67b30e1047ae42adce456f404725533 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/176-tideGauge.py | 213caf41689339fc37bbff10add7acc8884a0e49 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
746f1734aa731689fe4eca6f3b69371a5ec03d7e | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/warehouse/migrations/0008_auto_20200430_0239.py | 5f91fcf4c972a200f23a227faf2e5c7d76e85201 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 510 | py | # Generated by Django 3.0.4 on 2020-04-30 07:39
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("warehouse", "0007_auto_20200406_0341"),
]
operations = [
migrations.AlterField(
model_name="sto... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
95ba2c3cf868392a9cd37a3c94d87345f74d34b9 | 0477cfffe2305776ba9fecbe846680e52b9a34f0 | /examples/academy_course_PYT26038/step5.py | ec1de275067ba468596f4d980577007cbe169ab8 | [
"Apache-2.0"
] | permissive | epogrebnyak/transitionMatrix | 7f6c1ae3493b8bb8049909148b4b6c78f61841b8 | 64c7b3f347664c8b0e06f6865ffb8ad0685b4000 | refs/heads/master | 2023-02-27T17:34:27.518863 | 2021-02-07T12:19:35 | 2021-02-07T12:19:35 | 329,254,641 | 0 | 0 | Apache-2.0 | 2021-02-07T12:19:36 | 2021-01-13T09:21:28 | Python | UTF-8 | Python | false | false | 1,910 | py | # encoding: utf-8
# (c) 2017-2020 Open Risk (https://www.openriskmanagement.com)
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You ... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
f43d5807f9540f6606d61cfc5b608b586808dafe | fa124fdbf36327bf8e74bbc7f00ce448c1e7939a | /src/com/rwanda/mch/controller/stocks.py | 3e86296156594688c5934240557d125329c47d39 | [] | no_license | pivotaccess2007/mch | 039f17cdb16b434c0a25504cc81b7db81e5da988 | 523d1cd706296744e17e85683b5dbedbc05dd9e6 | refs/heads/master | 2020-03-30T16:33:44.451275 | 2018-10-03T13:23:00 | 2018-10-03T13:23:00 | 151,414,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,027 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
##
##
## @author UWANTWALI ZIGAMA Didier
## d.zigama@pivotaccess.com/zigdidier@gmail.com
##
__author__="Zigama Didier"
__date__ ="$Nov 22, 2017 1:29:30 PM$"
from datetime import datetime, timedelta
from controller.main import RSMSRWController
from model.stock impor... | [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
fc519358e7148cb7cb9adfc8863772e3aaf6c5cb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03026/s613366341.py | 67a3eb35a3f577b9399c1bda81fc5d303cfbc346 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | n,*t=map(int,open(0).read().split())
c=sorted(t[-n:])
print(sum(c[:-1]))
e={i:[]for i in range(n)}
for a,b in zip(t[:-n:2],t[1:-n:2]):e[a-1]+=b-1,;e[b-1]+=a-1,
f=[0]*n
q=[0]
while q:
v=q.pop();f[v]=c.pop()
for w in e[v]:q+=[w]*(f[w]<1)
print(*f) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d44e31861e9f28d0056ba1133328324fdf4c478 | 658391aaf5756b057e67101baad5e51462fbc03c | /reference_books/tests.py | f9914fb97ae75dea14f0825f3671653477a08741 | [] | no_license | vintkor/smartfield | e492d5b345e6dd09d6077426c8c0b7ce259cacda | bf1bf1575ae7c03b87eb8296c00a33de2c539f2a | refs/heads/master | 2020-03-26T10:59:06.216459 | 2018-09-11T06:37:50 | 2018-09-11T06:37:50 | 144,823,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import decimal
from django.test import TestCase
from .models import (
Fuel,
FuelCoast,
)
class FuelModelTest(TestCase):
def setUp(self):
Fuel.objects.create(
title='test fuel'
)
def test_save_model(self):
saved_models = Fuel.objects.count()
self.assertEqua... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
baed56ad016160eedc9e0facb1fab6cab378cdb3 | 2e6859082fa5f093d597ccc0b1b22b26d38fe830 | /LeetCode/Python/src/Merge_Two_Sorted_Lists.py | 8f7cb987b470a0d42d69b06aa5cdde04cf133fc8 | [
"MIT"
] | permissive | ruhulmus/RedQuarkTutorials | 82399b0907037567c38f9ac87b579f5e50c8b4ab | a6f44b575fcf11bc288622926090e74e7c428775 | refs/heads/master | 2023-07-31T02:55:43.804163 | 2021-09-24T15:01:01 | 2021-09-24T15:01:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | """
@author - Anirudh Sharma
"""
class ListNode:
def __init__(self, val=0, nextNode=None):
self.val = val
self.next = nextNode
def printList(node: ListNode):
while node is not None:
print(str(node.val), end=" ")
node = node.next
print()
def mergeTwoLists(l1: ListNode, l... | [
"anirudh03sharma@gmail.com"
] | anirudh03sharma@gmail.com |
9a5874a0fc8ff90549a20cffea42ffac5f13738b | 13774d8a2d657cdfa2f1d69e549c361301f90872 | /cwt/wps/ows.py | df877aaf86d4a8a55035c89eb29b03fc9603752f | [] | no_license | nasa-nccs-cds/esgf-compute-api | 4ba45538dccbe60fba50b2e0b284d0dee83cf3bb | d68ca27cbf42a0bb94074ef6824c10ac1e1e6b50 | refs/heads/master | 2020-04-20T22:43:29.534025 | 2019-02-04T01:58:19 | 2019-02-04T01:58:19 | 169,149,486 | 0 | 0 | null | 2019-02-04T21:03:44 | 2019-02-04T21:03:43 | null | UTF-8 | Python | false | false | 3,426 | py | from cwt.wps.raw.ows import *
MissingParameterValue = 'MissingParameterValue'
InvalidParameterValue = 'InvalidParameterValue'
NoApplicableCode = 'NoApplicableCode'
NotEnoughStorage = 'NotEnoughStorage'
ServerBusy = 'ServerBusy'
FileSizeExceeded = 'FileSizeExceeded'
StorageNotSupported = 'StorageNotSupported'
VersionNe... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
878578ccc6596d05527147d08eed055bf11d2035 | e25ff4345513f36352f069ab0c4f59fa306fb177 | /build/mavros/catkin_generated/pkg.installspace.context.pc.py | 2b44cb32d37910e7c67c74aa3100bfcd9f280ce6 | [] | no_license | gistleejongwon/drone_with_arm | db9b40faac17bf59d21803ec3480f45dfec2a395 | ad2abc0283362085379f112cbb66bf34a4a43419 | refs/heads/master | 2023-06-27T20:47:44.827312 | 2021-08-03T05:27:50 | 2021-08-03T05:27:50 | 387,333,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "diagnostic_msgs;diagnostic_updater;eigen_c... | [
"jongwonlee@gist.ac.kr"
] | jongwonlee@gist.ac.kr |
57febaee9ad63d8d7983453a8ec0b3b504b2b0a8 | d4a89b9113980e7b8225a5cfc197f6742b3e2ffe | /2nd year/CN/Solo Learning/networking/advanced_socket.py | 55cb6034857804ae73b0b3945be5e5f4fc0dd943 | [] | no_license | Akitektuo/University | 26a37d2831c3ed8a42dc27bd8c27778b479367c2 | 3c94b6aedcf6e69012d8e892d775481965e7551d | refs/heads/master | 2023-03-19T22:16:20.529707 | 2022-05-19T13:33:02 | 2022-05-19T13:35:03 | 212,976,476 | 2 | 2 | null | 2023-03-06T16:32:34 | 2019-10-05T09:46:05 | Java | UTF-8 | Python | false | false | 2,010 | py | import pickle
import socket
from networking.constants import HEADER_SIZE, ENCODING
class AdvancedSocket:
def __init__(self, using_udp, ip=socket.gethostname(), port=1234, initial_socket=None):
self.using_udp = using_udp
if initial_socket:
self.socket = initial_socket
else:
... | [
"alexcopindean@yahoo.com"
] | alexcopindean@yahoo.com |
c7e6cb586b944e4d29eacabd9120e2da556d7636 | c9ffa6e25b38d129edb14e2fc5a9699b353f7053 | /src/endpoints.py | 9bfe1214fd22e8930c9726c41c483e0fd71861b4 | [
"MIT"
] | permissive | rycus86/webhook-proxy | 6b22b2d28332f3d36fae11363d8cf1e38958a1d4 | c994695b9bb8f41db6324d623cb2b9fe02de12f8 | refs/heads/master | 2023-02-03T20:37:29.839414 | 2023-01-23T06:09:30 | 2023-01-23T06:09:30 | 101,429,044 | 22 | 7 | MIT | 2023-01-23T06:09:32 | 2017-08-25T17:56:48 | Python | UTF-8 | Python | false | false | 5,604 | py | from __future__ import print_function
import re
import threading
import traceback
import six
from flask import request
from jinja2 import Template
import docker_helper
from actions import Action
from util import ConfigurationException, classproperty
class Endpoint(object):
_current = threading.local()
de... | [
"rycus86@gmail.com"
] | rycus86@gmail.com |
11b648e5ab3452036438b50c6cac60bda6afa82b | 4efca0b231a62c23d124b6d9dfad3022dda25e4b | /08_lesson_1608/dz.py | 3d19a40cf75e69828b34cb7ecdee5fd9241cb854 | [] | no_license | 100ballovby/AutomationWithPython_Course | 71fcb5b4e955593707dde2cffa3d4c330d0e7c2a | 8e6b2c3ac7cf4121b9efa6a2e75e9bea78eb5ee6 | refs/heads/master | 2023-07-15T14:46:07.049933 | 2021-08-20T09:56:28 | 2021-08-20T09:56:28 | 387,419,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import json
import requests
url = 'https://api.github.com/users/100ballovby/repos'
response = requests.get(url)
print(json.loads(response.text))
| [
"greatraksin@icloud.com"
] | greatraksin@icloud.com |
7554ec7b37fea01d201d5125ed9930eae394a038 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_displeased.py | 59a894a0c34d8deab2fef19c0633b836c4a388a6 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
from xai.brain.wordbase.verbs._displease import _DISPLEASE
#calss header
class _DISPLEASED(_DISPLEASE, ):
def __init__(self,):
_DISPLEASE.__init__(self)
self.name = "DISPLEASED"
self.specie = 'verbs'
self.basic = "displease"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
46f92e5eeeca8d7e0ce91906d313c65fd73a460e | 8408efa4511601764ccb5f8ed24eec16a7c6d8d2 | /build/lib/lightningaddon/tests.py | 1f2180cb93ceadf45385551f169590e4c4be1ed0 | [] | no_license | utility-code/lightningAddOns | 6d7b575a912b5a8ec90bfbc516eb3563829cd25f | 0437cb955bbca54d7e7aba4bc51656cc4b393d1e | refs/heads/master | 2023-05-31T06:00:46.812352 | 2021-07-01T17:33:27 | 2021-07-01T17:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import operator
import torch
"""
Tiny tests
"""
def test(a, b, cmp, cname=None):
"""
Test main
"""
if cname is None:
cname = cmp.__name__
assert cmp(a, b), f"{cname}: \n{a}\n{b}"
def test_eq(a, b): #%t
"""
Test if equal
"""
test(a, b, operator.eq, "==")
def near... | [
"msubhaditya@gmail.com"
] | msubhaditya@gmail.com |
82048bd1545304d77b8b689819ccc65e795057f2 | b51b49c1cd5cbe69be0cb2d4e598f3e3c331d993 | /genmod/utils/__init__.py | 718cec434db39e5a3f59e5e597687d30a863da2a | [
"MIT"
] | permissive | nasty27/genmod | 5e01ee6e9d96d0a67592821941b39fa7454e6ad5 | 1a636f4fc5d17c1a737c54bb78e9ef70d1cd3fb0 | refs/heads/master | 2020-04-03T07:24:06.650165 | 2015-01-26T12:25:30 | 2015-01-26T12:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
from genmod.utils.load_annotation import load_annotations
from genmod.utils.is_number import is_number
from genmod.utils.plugin_reader import collectKeys
from genmod.utils.sort_variants import sort_variants
from genmod.utils.print_variants ... | [
"monsunas@gmail.com"
] | monsunas@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.