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
228806c9ad674409dc3735f62992d555abff4754
641a475883494effb38933a0c561361873f901fa
/Django入门/bookmanager01/book/migrations/0001_initial.py
5f3af57a2a105769d054ffdf3206fb7eb00f9791
[]
no_license
zmh19941223/python5.0_frame
b4e2aee197a0f7bc9c1903bd359b8a45e3d63c87
1d738d3dbdc9b69833097c3e2b63b002b44755f3
refs/heads/main
2023-04-28T05:43:58.592046
2021-05-19T15:10:12
2021-05-19T15:10:12
368,906,619
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-06-02 02:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
[ "1780858508@qq.com" ]
1780858508@qq.com
e3ea8d488f23edf571b2e8fe668617fd708be81b
084f57b6221cdbeebde2c1f6caa002ff8c666fa6
/video_grid
db32eb0cc47dff6aaafbcd5ab987fffe62a2aa9b
[]
no_license
ekimekim/scripts
db88b8340c655a580e3a4db2705c97de9c1da109
9165dca7b4d56f8795f8c1bfc3eec47f952bd5b1
refs/heads/master
2023-07-06T18:56:06.993690
2023-06-23T16:07:43
2023-06-23T16:07:43
15,834,395
3
0
null
null
null
null
UTF-8
Python
false
false
2,491
#!/bin/env python2 import math import os import subprocess from uuid import uuid4 import argh @argh.arg('videos', nargs='+') def main(output_file, videos, cols=4, size='1920x1080', spool_dir=None): full_size = [int(part) for part in size.split('x')] rows = int(math.ceil(len(videos) / float(cols))) assert rows * ...
[ "mikelang3000@gmail.com" ]
mikelang3000@gmail.com
a68b9835e6fe1e42770db22e07de7c769263e6dd
44cb69a5ea67e60289e33b3228b79d3c8fd36661
/core/migrations/0072_comp_dispatcher_solde_date.py
fe2d26f65dee7bf762697c023b8a58c1ddcc35f1
[]
no_license
zedkaria-bel/ah_project
bc6d79acf3f419f9fdc45189d6b653ae84709e42
9dae7435ca6670006525eeda881fcea64c0557d1
refs/heads/master
2023-06-24T21:17:27.286727
2021-07-28T16:15:48
2021-07-28T16:15:48
381,800,444
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
# Generated by Django 3.2 on 2021-06-08 11:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0071_tarif_occas_status'), ] operations = [ migrations.AddField( model_name='comp_dispatcher', name='solde_dat...
[ "zaki.198@outlook.fr" ]
zaki.198@outlook.fr
0b5ff8bb94bd86a8b8069e179af1a074b6eca8ad
d68ca034018d66f73024223d4b2266b3c3c901d7
/prev/myworks/general/chainxy/spiders/wholesalesports.py
d3f39440bcd112c46ac969b19bbb102cd65498b7
[]
no_license
GoodyIT/scrapy
caff30d26660f778008ad50532e364ab36aba4c2
5ae80cf83dc62c4e1bd2bfa11049ca39a3ca3488
refs/heads/master
2021-01-20T10:10:18.365194
2017-07-22T13:09:07
2017-07-22T13:09:07
90,330,210
4
0
null
null
null
null
UTF-8
Python
false
false
2,034
py
import scrapy import json import re import csv import requests from scrapy.spiders import Spider from scrapy.http import FormRequest from scrapy.http import Request from scrapy.selector import HtmlXPathSelector from chainxy.items import ChainItem import pdb from lxml import html class Wholesalesports(scrapy.Spider): ...
[ "johnsondavid489@yahoo.com" ]
johnsondavid489@yahoo.com
153ad8d53dc4d2778267c483177bdafa294b9bda
4c0cfe74b972b6f758d479920118185f07b3ae66
/lab/lab07/tests/q1_1.py
869a37f0d9e686e336a40cba115ba67bfefeee97
[ "BSD-3-Clause" ]
permissive
ds-modules/Colab-data-8
20a72aee6b7d051d2aff50a49f02c89891201971
cccaff13633f8a5ec697cd4aeca9087f2feec2e4
refs/heads/main
2023-05-29T04:05:47.976935
2021-06-02T23:15:06
2021-06-02T23:15:06
333,593,562
1
3
null
null
null
null
UTF-8
Python
false
false
494
py
test = { 'name': 'q1_1', 'points': 1, 'suites': [ { 'cases': [ {'code': '>>> len(ab_test_order) == 6\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> correct_order = make_array(5, 1, 3, 2, 4, 6);\n>>> all(correct_order == ab_test_order)\nTrue', 'hidden': False,...
[ "cheungclj108@berkeley.edu" ]
cheungclj108@berkeley.edu
97ab24ad85a2f0875cacfed8f1547f08b771f8fe
cc655ded7bdfc458932aeaa0d5d1a9cd86cbbe0a
/python/refBlock.py
1218fc6f2349d3e3e90a0fa4b2718c521130334f
[]
no_license
kawashimat/thunder
535783a3ffac6ea4ec4114fb7bc31a1d09322e63
ccb18c9e66186a8ef4f934b9e44071023249afce
refs/heads/master
2021-01-18T07:06:21.919761
2013-08-29T19:46:09
2013-08-29T19:46:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,582
py
import sys import os from numpy import * from scipy.io import * from pyspark import SparkContext import logging if len(sys.argv) < 4: print >> sys.stderr, \ "(sta) usage: refBlock <master> <inputDir> <outputDir>" exit(-1) def loadFile(index,iterator): nCols = 2034 nRows = 1134 nTime = 3430 plane = int(flo...
[ "the.freeman.lab@gmail.com" ]
the.freeman.lab@gmail.com
4cf7b90a1c84b55b5681dcee134075ddff6c5eda
3e24611b7315b5ad588b2128570f1341b9c968e8
/pacbiolib/thirdparty/pythonpkgs/scipy/scipy_0.9.0+pbi86/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/utils.py
c6d2cfcb1e7749d7a2ae8ad95708112c368b53c3
[ "BSD-2-Clause" ]
permissive
bioCKO/lpp_Script
dc327be88c7d12243e25557f7da68d963917aa90
0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2
refs/heads/master
2022-02-27T12:35:05.979231
2019-08-27T05:56:33
2019-08-27T05:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,580
py
__docformat__ = "restructuredtext en" __all__ = [] from warnings import warn from numpy import asanyarray, asarray, asmatrix, array, matrix, zeros from scipy.sparse.linalg.interface import aslinearoperator, LinearOperator _coerce_rules = {('f','f'):'f', ('f','d'):'d', ('f','F'):'F', ('f','D'):'D',...
[ "409511038@qq.com" ]
409511038@qq.com
04869bd7a028853959d01fc2841c4e424b889db7
55a273347cb103fe2b2704cb9653956956d0dd34
/code/tmp_rtrip/idlelib/scrolledlist.py
c4e07c6bcc178c832b584ba7de36871a0aae8d1b
[ "MIT" ]
permissive
emilyemorehouse/ast-and-me
4af1bc74fc967ea69ac1aed92664f6428acabe6a
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
refs/heads/master
2022-11-18T03:50:36.505882
2018-05-12T17:53:44
2018-05-12T17:53:44
115,035,148
25
1
MIT
2022-11-04T11:36:43
2017-12-21T18:27:19
Python
UTF-8
Python
false
false
4,161
py
from tkinter import * from tkinter.ttk import Scrollbar from idlelib import macosx class ScrolledList: default = '(None)' def __init__(self, master, **options): self.master = master self.frame = frame = Frame(master) self.frame.pack(fill='both', expand=1) self.vbar = vbar = Sc...
[ "emily@cuttlesoft.com" ]
emily@cuttlesoft.com
247f10a606391c5c1bed4f062b2a106cb1ebd0b8
40d404e424489bb48c3673dee6664de64dbab39c
/myWebsite/.venv/lib/python3.8/site-packages/OFS/tests/test_DTMLMethod.py
f2088a3a53b0c718a70cd8099ef9130a94170276
[]
no_license
alyasamba/me
07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1
978053c867181bad8eb316a0920ba290a7b1ceae
refs/heads/main
2023-01-28T09:57:46.616285
2020-12-02T02:31:25
2020-12-02T02:31:25
315,935,399
1
0
null
null
null
null
UTF-8
Python
false
false
7,418
py
import io import unittest import Testing.testbrowser import Testing.ZopeTestCase import zExceptions import Zope2.App.zcml from Testing.makerequest import makerequest def _lock_item(item): from AccessControl.SpecialUsers import nobody from OFS.LockItem import LockItem item.wl_setLock('token', LockItem(nob...
[ "sopesherifabdoulah@gmail.com" ]
sopesherifabdoulah@gmail.com
0cba3d31faf0cf259f156a5ce5fd89ca15456b33
4f14d5eee56e7d0f6adbe54a57cba11396d375ab
/src/uykfe/support/db.py
ac780aa09d22e200eed20e0af712df0f03daa212
[ "BSD-2-Clause" ]
permissive
Robbt/uykfe
2248d9651aa1517fa38e5eb2f98e23ba90be2469
c4b3d2a49ce14b2b6847a4b59bd55201c62ea8c3
refs/heads/master
2021-01-10T16:13:49.883482
2012-08-10T03:20:46
2012-08-10T03:20:46
48,856,631
0
0
null
null
null
null
UTF-8
Python
false
false
4,523
py
from logging import getLogger from os import getcwd, remove, environ from os.path import join, exists from urllib.parse import urlunparse from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.schema import Column, ForeignKey from sqlalchemy.types import Integer, ...
[ "andrew@acooke.org" ]
andrew@acooke.org
77501fd0d4e1907cf00d760595cff6d47842c43c
09e63e204cf3f70b0f878fe237f231af0786611e
/NLP/Character_RNN/train.py
469e05f1070db4f22c944fa4fd5ebe315cea27dd
[]
no_license
shubham14/Machine_learning_research
8f00788366abf2d330afe8914e48d4279fcd8aea
b134e4e6b1e6c110fad8cb38b033c92c34d3c8ce
refs/heads/master
2022-11-08T13:24:58.722027
2019-11-10T09:21:28
2019-11-10T09:21:28
132,386,307
3
2
null
2022-10-17T15:36:25
2018-05-07T00:16:38
Python
UTF-8
Python
false
false
2,650
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 21 20:30:13 2018 @author: Shubham """ import torch import torch.nn as nn import numpy as np import random import os import time import math import glob from data_prepper import * from model import * n_hidden = 128 learning_rate = 0.005 n_iters = 100000 print_every = 500...
[ "shubham.ddash@gmail.com" ]
shubham.ddash@gmail.com
61ba7a6b8e3e5a978ba5d9f10131930bd3275a58
d5c1f629accc88fcf1432be7e95e69a2f21dba40
/server/models/bitcoin_price_prediction_VARMAX.py
cd30aa377641e4bf95a727d17c5f902baf75729e
[ "MIT" ]
permissive
johnjdailey/JS-Realtime-Dashboard
ab537d4468b7b6cfe5a77200e9dcefcc8d5acbf2
aa62cab32096fbd4bdb8be657dd99d3d162e7097
refs/heads/main
2023-07-04T11:22:54.315196
2021-08-05T06:48:48
2021-08-05T06:48:48
392,900,527
1
0
MIT
2021-08-05T04:23:24
2021-08-05T04:23:23
null
UTF-8
Python
false
false
2,628
py
import pandas as pd from datetime import datetime, timedelta from statsmodels.tsa.statespace.varmax import VARMAX import time import SQL_STATEMENTS def date_formating(current_time): if current_time.second < 30: newdatetime = current_time.replace(second=30, microsecond=0) elif current_time.minute + 1 <...
[ "40984264+MZ195@users.noreply.github.com" ]
40984264+MZ195@users.noreply.github.com
e1635ac54ee22810d1ea3eea50ac39153bb5b9b0
c857d225b50c5040e132d8c3a24005a689ee9ce4
/problem177.py
eb821784fdb10bec86da518203ce517f1f47d6c5
[]
no_license
pythonsnake/project-euler
0e60a6bd2abeb5bf863110c2a551d5590c03201e
456e4ef5407d2cf021172bc9ecfc2206289ba8c9
refs/heads/master
2021-01-25T10:44:27.876962
2011-10-21T00:46:02
2011-10-21T00:46:02
2,335,706
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
""" Let abcd be a convex quadrilateral, with diagonals ac and bd. at each vertex the diagonal makes an angle with each of the two sides, creating eight corner angles. for example, at vertex a, the two angles are cad, cab. we call such a quadrilateral for which all eight corner angles have integer values when measur...
[ "pythonsnake98@gmail.com" ]
pythonsnake98@gmail.com
d6a59cd4c654b80d3a511b810e6d7533771a7047
bb6ebff7a7f6140903d37905c350954ff6599091
/build/android/pylib/symbols/elf_symbolizer_unittest.py
978e621faebfb7b258457ea9ca12f2312eeb827f
[ "BSD-3-Clause" ]
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
Python
false
false
5,691
py
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import functools import logging import os import sys import unittest sys.path.insert(0, os.path.dirname(__file__)) import elf_symboliz...
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
74d13ba2c2403d58d2346c4813584735a3b1a28b
6c543074f1d764af9701e5b55db9ab0220c1df93
/03_循环/hm_10_嵌套打印小星星.py
8067dce17c7dd308a9283dc636192aefa1ed5849
[]
no_license
allenlgy/Django-project
127e984e13f71d20e01df68ad42d00b977ac0105
9c4b9e6c67481a5f3cef58ea47e9fd62058036d8
refs/heads/master
2020-06-23T01:03:03.170674
2019-09-04T06:11:40
2019-09-04T06:11:40
198,453,709
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
# 输出五行星号 # 1.完成 5 行简单输出 # 2.分析每行内部的星号如何处理 row = 1 while row <= 5: # 每一行打印的星星就是当前的行数 # 增加一个小循环 # 1.定义一个计数器变量 col = 1 # 2.开始循环 while col <= row: # print('%d' % col) print('*',end='') col += 1 # print('第 %d 行' % row) # 下面的 print 是为了增加换行,不然不会换 print('') r...
[ "1006547624@qq.com" ]
1006547624@qq.com
71ef7cac2046585814b08b5b0084975b79afd9cb
3ddb0d53f36640310b46244e365003eab7f342b3
/main.py
4498a4f87289c0d59059c73a5bb47de2c7cc0fd7
[]
no_license
xieyipeng/disk-backup
9f880c7877bcf751b29c682ee5295565c81a77a3
f6f7c141019f281d8dcfa2f1d9cc9a97b79e0a1d
refs/heads/master
2022-09-22T14:53:14.062660
2020-06-02T02:51:26
2020-06-02T02:51:26
264,567,360
0
0
null
null
null
null
UTF-8
Python
false
false
6,481
py
# -*- coding: UTF-8 -*- import os import shutil from psutil import disk_partitions from win32serviceutil import ServiceFramework, HandleCommandLine import win32service import win32event import time import inspect from logging.handlers import TimedRotatingFileHandler import logging flag = 'disk-backup.ini' cache_files...
[ "3239202719@qq.com" ]
3239202719@qq.com
0a52dfd03ce2b86ca581253c7a761ad222a28bb0
f8da830331428a8e1bbeadf23345f79f1750bd98
/msgraph-cli-extensions/v1_0/devicescorpmgt_v1_0/azext_devicescorpmgt_v1_0/vendored_sdks/devicescorpmgt/aio/operations_async/__init__.py
bf4c1521f71c7da320be6b4025cc2e2692f2146b
[ "MIT" ]
permissive
ezkemboi/msgraph-cli
e023e1b7589461a738e42cbad691d9a0216b0779
2ceeb27acabf7cfa219c8a20238d8c7411b9e782
refs/heads/main
2023-02-12T13:45:03.402672
2021-01-07T11:33:54
2021-01-07T11:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,461
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
00651d9c6574453b665819b0214c832fc5c6f4df
544fe02a27cc4d987724b1bf45c2ba2994676521
/get_variables_using_python.py
d0f7e1a6a1d22b8cd27be5059ce3b3c067d0a7bf
[ "Unlicense" ]
permissive
latika18/learning
1e7a6dbdea399b845970317dc62089911a13df1c
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
refs/heads/master
2021-06-16T19:20:28.146547
2019-09-03T06:43:28
2019-09-03T06:43:28
115,537,386
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
#! usr/bin/python #Add a get variable in url like : www.lashp3.com/filename?name=rob #following code will print the get variable on screen print('content-type:text/html') print("") import cgi form = cgi.FieldStorage() print(form.getvalue("name"))
[ "noreply@github.com" ]
latika18.noreply@github.com
6ef37d675a2a129f9efc0d14ace5782f5e2f320a
d60acaac9e460c5693efe61449667b3c399c53c8
/stat/python/mr/pipeline.py
addc0143fa0622f0e6e9b945e4f69051d988439b
[]
no_license
HussainAther/mathematics
53ea7fb2470c88d674faa924405786ba3b860705
6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5
refs/heads/master
2021-07-22T00:07:53.940786
2020-05-07T03:11:17
2020-05-07T03:11:17
157,749,226
2
0
null
null
null
null
UTF-8
Python
false
false
2,061
py
import numpy as np """ Multivariate regression pipeline """ def normalize(features): """ features - (200, 3) features.T - (3, 200) We transpose the input matrix, swapping cols and rows to make vector math easier """ for feature in features.T: fmean = np.mean(feature) ...
[ "shussainather@gmail.com" ]
shussainather@gmail.com
a10859d4ea562c123f196bf8395b5a4d79cdf122
8ca045c0b94729222e8f3ffe184c0d4f564418c4
/FeatureCollection/get_properties.py
61d6c9e6e7462f73b66ae4a3c1832a914627b2f2
[ "MIT" ]
permissive
levi-manley/earthengine-py-notebooks
bc77632ca22ca85c0092c18f1eb8321abfbe874a
f5a888ddb6834f164e7399b20c683fb9cf604465
refs/heads/master
2021-01-02T12:17:27.974005
2020-02-09T02:59:20
2020-02-09T02:59:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,510
py
''' <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/FeatureCollection/get_properties.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="...
[ "giswqs@gmail.com" ]
giswqs@gmail.com
12bdbec06a358c7dc067b4b43d112a3c140567df
d744daf2629757d06e834bae7ee8104dec55020e
/home/migrations/0001_initial.py
370265315e338c457f9a95c1f2f89531538d6f6b
[]
no_license
AidysM/aldynkush2
5f54dfad35e201ae9510e0344d6ad537cc90e483
bf19b640757d66db278b8ad4f95182581cad617c
refs/heads/main
2023-04-18T06:45:57.245390
2021-05-02T13:37:47
2021-05-02T13:37:47
357,061,439
0
0
null
null
null
null
UTF-8
Python
false
false
3,005
py
# Generated by Django 3.2 on 2021-04-13 19:44 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max...
[ "mongush10011979@gmail.com" ]
mongush10011979@gmail.com
da3a8f70f64d77ccfa3140fb25f205670750d01d
4cce5d53ee16af6f4a8255924e40f395c08ff97d
/src/concurrency/core.py
3b1951c0525181cb2a12e57a7ca52d111dae0fe4
[ "MIT" ]
permissive
technicaltitch/django-concurrency
8a9a03f27d3a6f049355451533486fe2451717f8
9a289dc007b1cdf609b7dfb77a6d2868abc8097f
refs/heads/develop
2020-05-23T04:27:16.755002
2019-03-29T11:17:04
2019-03-29T11:17:04
186,631,794
0
0
MIT
2019-05-14T13:56:05
2019-05-14T13:47:27
Python
UTF-8
Python
false
false
1,945
py
# coding=utf-8 from __future__ import absolute_import, unicode_literals import logging from concurrency.config import conf # Set default logging handler to avoid "No handler found" warnings. try: # Python 2.7+ from logging import NullHandler except ImportError: class NullHandler(logging.Handler): de...
[ "s.apostolico@gmail.com" ]
s.apostolico@gmail.com
f8f67e5d79ba03d44dab11ef3f3405a78181bf19
70d87ef111da3c69b50265bbdc1308dc98b11c06
/examples/table_manager_transaction_pool.py
c07b8e203c3d27bed94b76b008296da47d64d848
[ "MIT" ]
permissive
allisson/asyncpg-utils
c821a56ef750e6090460f535247456fa66d22200
616d5f47d7e01108cb9272b16e4d2b511bfdae08
refs/heads/master
2021-10-11T08:40:29.117597
2019-01-24T00:01:35
2019-01-24T00:01:35
115,954,570
17
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
import asyncio from contextlib import suppress from datetime import date from asyncpg_utils.databases import PoolDatabase from asyncpg_utils.managers import TableManager from utils import create_table, drop_table loop = asyncio.get_event_loop() database = PoolDatabase('postgresql://postgres:postgres@localhost/asyncp...
[ "allisson@gmail.com" ]
allisson@gmail.com
23b137c5d04919479ea615dcd9a4141ae78b875d
c6d84655a8424c8ade139fd79ae1bbb1514f8c88
/06multi_task/Thread01.py
de47c7f77c49c22398c17c8608932c28b3b5f015
[]
no_license
eryeer/pythonStudy
64240934ce463e7e9714fc7f0d7a6608cefab837
5c6a69ef10c0df38f89aee7e5d5cc9802a2b424b
refs/heads/master
2020-04-08T15:16:19.579466
2019-04-15T06:13:41
2019-04-15T06:13:41
159,472,137
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
import time import threading gl_num = 100 def sing(): global gl_num gl_num += 1 print(gl_num) for i in range(5): print("---sing 菊花茶") time.sleep(1) time_time = time.time() print(time_time) def dance(num): for i in range(5): print("----dance %d args:%d" % ...
[ "eryeer@163.com" ]
eryeer@163.com
036ecb1f02148386d05acf2b407ece2c0241a8b8
9129a791f45cd3b25d8a5da57ee6936bfe4e73a2
/learn-django/model_form/files/models.py
0997c182da6b07d7db593e113cb9f859b22ac81c
[]
no_license
Sunsetjue/Django2.0
94be49ed9d65dab6398ab8f0ddd02bb1871afb6b
102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8
refs/heads/master
2020-04-22T03:25:24.014196
2019-02-15T16:18:23
2019-02-15T16:18:23
170,086,151
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
from django.db import models # Create your models here. class Book(models.Model): title = models.CharField(max_length=15) content = models.TextField() on_load = models.FileField(upload_to="%Y/%m/%d") ''' 我们也可以指定MEDIA_ROOT,就不需要在FielField中指定upload_to, 他会自动的将文件上传到MEDIA_ROOT的目录下 如果我们同时指定M...
[ "10073631822qq.com" ]
10073631822qq.com
10eec180260b47959d38c8a0e111b9da67816145
4ff8676136167cdd81d7a983272102fff86360e8
/python/724. 寻找数组的中心索引.py
37a2cf3ae5e930accce397c88443cda89a44edbb
[]
no_license
geniuscynic/leetcode
0ec256af2377d19fee22ce736462a7e95e3f4e67
379a8f27f8213951ee8be41bd56598036995d267
refs/heads/master
2023-07-19T07:22:20.001770
2021-09-07T14:50:40
2021-09-07T14:50:40
297,277,833
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
import sys class Solution: def pivotIndex(self, nums): total = sum(nums) lens = len(nums) res = 0 for i in range(lens): if res * 2 == total - nums[i]: return i res += nums[i] return -1 if __name...
[ "350810375@qq.com" ]
350810375@qq.com
802d13f5638731b38cbbf12bd951c950b0c75d07
ecebe1b77f12d50c47457642590885332f57cdfa
/functions_exercise/exercise5.py
4d2377671bb014b02ec7c3f518a3aa0fa167aef0
[]
no_license
ziqingW/python-exercise-flex-Mar06
19ca1d939fc1b708b50b0a505951804a2aa30d77
412c9f189151b1256e911ad47f95d028f4c92fa5
refs/heads/master
2021-09-08T06:54:58.889592
2018-03-08T03:58:15
2018-03-08T03:58:15
124,137,733
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plot import math def f(x): return math.sin(x) xs = list(range(-5, 6)) ys = [] for x in xs: ys.append(f(x)) plot.plot(xs, ys) plot.savefig('exercise5.png') plot.close()
[ "redtaq@hotmail.com" ]
redtaq@hotmail.com
9df471b511f531fcaddf6849b50109c3723c1df4
517fcd77850828b5235c5dce27860e832159b030
/research/griffiths/aoc/soln20.py
c4caf8aa241517c41f1027f69918ced6d96e6a2e
[]
no_license
HussainAther/RosalindBioinformaticsContest2018
55cef63714e7aff2356aafe37a28c1898bdcfd9f
2ffe7335f6227c34b8f894a0bfd84f4f67e4e387
refs/heads/main
2023-06-27T10:54:15.587527
2023-06-08T21:35:53
2023-06-08T21:35:53
125,802,174
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
Save New Duplicate & Edit Just Text Twitter import sys file = open('input.txt') algo_string = next(file).strip() if algo_string[0] == ".": algo = [ {i for i, p in enumerate(algo_string) if p == "#"}, ] elif algo_string[-1] == ".": algo = [ {i for i, p in enumerate(algo_string) if p == "."},...
[ "shussainather@gmail.com" ]
shussainather@gmail.com
0c243ca3b0071ae7285523a41536c4d73132e977
0add7953d3e3ce2df9e8265102be39b758579753
/built-in/TensorFlow/Official/cv/image_segmentation/DeeplabV3_for_TensorFlow/00-access/cal_miou.py
a337be48d91589e0f3d436478d2a51cd27add22b
[ "Apache-2.0" ]
permissive
Huawei-Ascend/modelzoo
ae161c0b4e581f8b62c77251e9204d958c4cf6c4
df51ed9c1d6dbde1deef63f2a037a369f8554406
refs/heads/master
2023-04-08T08:17:40.058206
2020-12-07T08:04:57
2020-12-07T08:04:57
319,219,518
1
1
Apache-2.0
2023-03-24T22:22:00
2020-12-07T06:01:32
Python
UTF-8
Python
false
false
767
py
import argparse parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--result_log', default="", help="""result log file.""") args = parser.parse() with open(args.result_log, 'r') as f: lines = f.readlines() eval_res...
[ "1571856591@qq.com" ]
1571856591@qq.com
0e2806406d9ef37e7ebed28a1159a5d5b7cfab68
d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7
/0827_stack_실습/괄호검사.py
0848bfd9131408a61275274f190e962b2eeb4132
[]
no_license
Anseik/algorithm
27cb5c8ec9692cf705a8cea1d60e079a7d78ef72
925404006b84178682206fbbb3b989dcf4c3dee9
refs/heads/master
2023-02-26T00:02:01.696624
2021-02-03T14:10:28
2021-02-03T14:10:28
301,753,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
import sys sys.stdin = open('괄호검사.txt') # tip : 딕셔너리로 짝을 미리 맞춰놓는다. def bracket(target): stack = list() for i in range(len(target)): if target[i] == "(" or target[i] == "{": # 여는 괄호이면 스택에 추가 stack.append(target[i]) # 닫는 괄호이면 스택에서 top을 pop해서 닫는 괄호와 짝이 맞는지 비교 elif target[i] =...
[ "kma9271@naver.com" ]
kma9271@naver.com
c2f109bb107b1cd31c032f5e21c7ad16667d3748
4bf3aaf77c309a489100b98a8c03532632df152c
/Python/codeforce/1.py
2628df7e1e30e4c764b06345b31e7f7b81b4ae5f
[]
no_license
murane/PS
7fbfc54d962231949efc67f1a35c4b0119de0780
e938c6c503aeac08bf65e1e66709172b0e5da6ef
refs/heads/master
2023-05-06T22:51:54.105811
2021-05-30T03:34:53
2021-05-30T03:34:53
293,699,199
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
import sys r=sys.stdin.readline for _ in range(int(r())): n=int(r()) flg=False for i in range(n//3+1): if flg: break for j in range((n-3*i)//5+1): if flg: break for k in range((n-3*i-5*j)//7+1): if flg: b...
[ "murane@naver.com" ]
murane@naver.com
d904d6b9f0294f1c570617b145adf7084138dfb0
ffff723a6c8527b45299a7e6aec3044c9b00e923
/PS/BOJ/1744/1744.py
b5871921a5bc8a0f29b46fdafaf4d1ca9cddfb15
[]
no_license
JSYoo5B/TIL
8e3395a106656e090eeb0260fa0b0dba985d3beb
3f9ce4c65451512cfa2279625e44a844d476b68f
refs/heads/master
2022-03-14T09:15:59.828223
2022-02-26T01:30:41
2022-02-26T01:30:41
231,383,838
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
#!/usr/bin/env python3 import sys input = sys.stdin.readline if __name__ == '__main__': nums_cnt = int(input()) negatives = [] zeros_cnt, ones_cnt = 0, 0 positives = [] for _ in range(nums_cnt): num = int(input()) if num < 0: negatives.append(num) elif num ...
[ "jsyoo5b@gmail.com" ]
jsyoo5b@gmail.com
da3d8c52309d729ebac13a937a3327a42eab7831
dbf7910f178ff895516c5df286c3cf13e1dd48ca
/env/bin/chardetect
522669580dfccbbf5974bd8dd74a11e2d6db0690
[]
no_license
nimadorostkar/crop_stocks
df5b5ef42e746c4fe66416d33534685eb2d33053
b382f3d912ad4276882eb7bb47a6147f335e4faa
refs/heads/master
2023-05-15T00:48:46.889463
2021-06-10T08:26:58
2021-06-10T08:26:58
353,626,010
1
0
null
2021-04-25T07:08:59
2021-04-01T08:16:16
HTML
UTF-8
Python
false
false
251
#!/Users/nima/github/crop_stocks/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nimadorostkar97@gmail.com" ]
nimadorostkar97@gmail.com
11ccf3680403a12180ff6239ba744d1037021ca7
fe1faba0d52cb9d7fe3220c88784003b51e31bfb
/data_process_and_train/avi_train.py
be1b7b6a76bb2e2c4737ebe37cdbff791ffc6b79
[]
no_license
ShuoZ9379/t42_hand
740384731d348b8084165fca0755fc4a5652156f
4d702b67c92b5aa693fc236c55840fd0a456cedf
refs/heads/master
2021-09-18T12:47:37.302123
2021-08-24T16:48:31
2021-08-24T16:48:31
252,624,176
0
0
null
null
null
null
UTF-8
Python
false
false
5,668
py
import scipy.io import numpy as np import pdb import torch import torch.utils.data from common.data_normalization import * from common.TrajNet import * from common.utils_clean_traj import * import matplotlib.pyplot as plt import glob,pickle,os,copy,sys,random from sys import argv from process_params import * #argv lr ...
[ "zhangshuo19930709@gmail.com" ]
zhangshuo19930709@gmail.com
1241a48406914d366902c49121d477094035378c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/bp7HkgSqyTRggmu4R_24.py
5a1ebb2b05e4425bfc8dddeb78607838287197e1
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
""" The normal `title()` function in Python _capitalises the first letter of every word_ in a given sentence, leaving all the other letters as _lowercase_. The goal of this challenge is to create a `reverse_title()` function, which achieves the complete opposite! Make the first letter of every word **lowercase** , ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fd95f85ecce6100fbdfc5136f5c860f64c9bae4f
6dd400fec6f302bd0dcf309e2deec5de906d205c
/anal_pro4/base/extf3.py
fe6e6d4885f31b4445db02d50643872a338cefb4
[]
no_license
Leo-hw/psou
aa938b7cfaa373a0980649125270c48d816202b0
70379156a623257d412bcccbac72986a61226bd4
refs/heads/master
2023-02-21T19:00:02.902510
2021-01-25T07:03:26
2021-01-25T07:03:26
332,616,685
1
0
null
null
null
null
UTF-8
Python
false
false
2,563
py
# constant(), Variable(), function import tensorflow as tf import numpy as np a = 10 print(type(a)) b = tf.constant(10) # Graph 객체에 포함된 멤버. print(b, type(b)) c = tf.Variable(10) print(c, type(c)) ''' g1 = tf.Graph() with g1.as_default(): #bb = tf.constant(10) bb = tf.Variable(10) ...
[ "Bonghwan@DESKTOP-60LSTNL" ]
Bonghwan@DESKTOP-60LSTNL
b61970f81e2b23254ff02d730fbc09e88dda0ab4
06f7ffdae684ac3cc258c45c3daabce98243f64f
/vsts/vsts/dashboard/v4_1/models/widget_metadata.py
0d9076eb0c503252a23cc220aa478ed69c87c20f
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
kenkuo/azure-devops-python-api
7dbfb35f1c9637c9db10207824dd535c4d6861e8
9ac38a97a06ee9e0ee56530de170154f6ed39c98
refs/heads/master
2020-04-03T17:47:29.526104
2018-10-25T17:46:09
2018-10-25T17:46:09
155,459,045
0
0
MIT
2018-10-30T21:32:43
2018-10-30T21:32:42
null
UTF-8
Python
false
false
7,345
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tedchamb@microsoft.com" ]
tedchamb@microsoft.com
a79037455c8cc29b2682f587c524b83f01b27f1d
58e0a4aff157f22b02d9d6823ed3aced81dfdc9f
/tputil.py
661fe735cb47b2317f12fbb5feb41220d938e82b
[]
no_license
Tug/ml-notes
eaafcdd2843e22ae4d1193c470fcc0fc605d0d2d
16f4c54eaa45ca8d60c29da122a8175c1193f945
refs/heads/master
2022-12-22T23:21:34.617929
2020-08-31T20:10:11
2020-08-31T20:10:11
287,953,248
0
0
null
2020-08-16T13:53:39
2020-08-16T13:53:38
null
UTF-8
Python
false
false
2,992
py
import re import time from google.cloud import storage # sudo pip3 install google-cloud-storage import tensorflow as tf class State: pass if 'state' not in globals(): state = State() state.client = None def gs_filesize(filename): """tf.string.length unfortunately fails for files larger than 2GB due to ...
[ "shawnpresser@gmail.com" ]
shawnpresser@gmail.com
bf342126e76f670538f9c3fd4bd4041317e9a654
2255f78038a574f9500934a271ec4156ce75a471
/setup.py
99bd6eee0cca3e4d91e75a3c42fbd1eefd40f177
[ "BSD-3-Clause" ]
permissive
theonedemon/torrt
83fe3c01d43fda3ff4f787c871fef80221300e97
28bd7288ef573539e0dc3b505c94b8664f246d1c
refs/heads/master
2021-05-07T23:13:23.087093
2021-01-25T19:49:16
2021-01-30T18:43:27
107,411,005
0
0
null
2017-10-18T13:20:33
2017-10-18T13:20:33
null
UTF-8
Python
false
false
2,033
py
import io import os import re import sys from setuptools import setup, find_packages PATH_BASE = os.path.dirname(__file__) def read_file(fpath): """Reads a file within package directories.""" with io.open(os.path.join(PATH_BASE, fpath)) as f: return f.read() def get_version(): """Returns versi...
[ "idlesign@yandex.ru" ]
idlesign@yandex.ru
ca181df76e8d5744b92dded4973d8a74a6e9fee0
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/number_or_high_child/eye/own_group.py
780ba52cf7d08219c0180205fe4011500967c6a5
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
#! /usr/bin/env python def time_and_number(str_arg): hand(str_arg) print('place_or_large_work') def hand(str_arg): print(str_arg) if __name__ == '__main__': time_and_number('little_world_or_person')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
d0a96e3f4e7f91a21328661d16b6fec837b694e7
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_diff/trend_linear/cycle_30/ar_/test_artificial_128_diff_linear_30__0.py
fc1d0414444f7856801c45fb4037ce776566be4e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 30, transform = "diff", sigma = 0.0, exog_count = 0, ar_order = 0); art.process_dataset(dataset);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
491573b16d1c3b229be0ee19c3330b2bcb5f1a9f
160584ad75ed15f9d39205b6a76b3e5beb03a5cb
/billing/migrations/0003_billingprofile_customer_id.py
41ee0ab0805fc3b15995b39e613aba44bfaf405b
[ "MIT" ]
permissive
imran1234567/plutus
1c66c0c29e9e615c03160fb98f14d44507b642dc
c964f18beb139de2645e052eb4c75a6bc0677029
refs/heads/master
2022-12-10T04:33:36.906408
2019-04-18T06:26:01
2019-04-18T06:26:01
169,561,380
0
0
MIT
2022-12-08T00:46:54
2019-02-07T11:29:44
CSS
UTF-8
Python
false
false
486
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-10-11 19:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('billing', '0002_auto_20170928_2052'), ] operations = [ migrations.AddField(...
[ "imran@kgec.edu.in" ]
imran@kgec.edu.in
e1fa9da9c1a9a266d6ba600da3adc92657c4146f
6feaf484be6ab130f82dc2cab66684499d7be1bb
/history/bezier_tree_1554839936.003803.py
ca84b03e219e2768b0af9d21bcc04ac21ac8412e
[]
no_license
JacobBunker/2DArt
d3b3d4d6b4f92bc64aab95139a0d0285c9cb2be0
b8f6bdd081016a9922dc5a0a58226b9262c2ad98
refs/heads/master
2020-05-05T05:44:39.844350
2019-12-01T06:41:41
2019-12-01T06:41:41
179,763,837
0
0
null
null
null
null
UTF-8
Python
false
false
2,480
py
import numpy as np from PIL import Image import datetime; import subprocess picSizeX = 1000 picSizeY = 1400 #make array temp = np.empty([picSizeX,picSizeY,3]) start = np.asarray([picSizeX/2, picSizeY/2]) #start = np.asarray([0,0]) def getNext(p,d,z): xSkew = np.sin(np.radians(z*10)) ySkew = np.cos(np.radi...
[ "jacob.n.bunker@gmail.com" ]
jacob.n.bunker@gmail.com
e49aa39c7b7f0c8c8444bd7920724155ef14bb77
0acb520aea8b759bcf84c2adcda308c238b4b536
/src/lib/simplekv/idgen.py
146a59bb82a59de93209480f7c771352e1641e52
[ "BSD-3-Clause" ]
permissive
Chitrank-Dixit/InMyMind
8a1ee6f9e7a9689a948054e0aa2dd6476ec3ceac
d0bf1ab92bae1865d747ed1282160b17b4ea188c
refs/heads/master
2021-01-10T22:12:34.848133
2014-01-05T04:58:54
2014-01-05T04:58:54
15,645,687
1
0
null
null
null
null
UTF-8
Python
false
false
3,523
py
#!/usr/bin/env python # coding=utf8 """ In cases where you want to generate IDs automatically, decorators are available. These should be the outermost decorators, as they change the signature of some of the put methods slightly. >>> from simplekv.memory import DictStore >>> from simplekv.idgen import HashDecorator >>...
[ "chitrankdixit@gmail.com" ]
chitrankdixit@gmail.com
97682cf991ac9faa1f070512f489b52984c3496f
6f956c8e552e8cd18c03f16fcc3bedff06bb7c05
/inspections/templatetags/active_page.py
0d436eb0dc36df1b3d54b5bb2b88301eec6403f6
[]
no_license
AntycSolutions/NoLemon
29147f50189b35133ff59f32f51e6b4ad25c2fb6
943d4e557c19a5668099f5ef25a43b4ef35ed0fb
refs/heads/master
2021-01-21T12:40:46.443832
2018-07-27T05:03:52
2018-07-27T05:03:52
20,976,649
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
# http://stackoverflow.com/questions/19268727 # /django-how-to-get-the-name-of-the-template-being-rendered from django import template register = template.Library() @register.simple_tag def active_page(request, view_name): from django.core.urlresolvers import resolve, Resolver404 if not request: ret...
[ "and_555@hotmail.com" ]
and_555@hotmail.com
39668c955d2f5c1792b16e7b9a227cc4b5fb130a
3777658387aa9e78d7c04202d7fd47d59b9e1271
/MachineLearning/DeepLearning/keras_1.py
33fbb4dc8412eaa92287f77a27f9ef9e4587b9cc
[]
no_license
jocoder22/PythonDataScience
709363ada65b6db61ee73c27d8be60587a74f072
c5a9af42e41a52a7484db0732ac93b5945ade8bb
refs/heads/master
2022-11-08T17:21:08.548942
2022-10-27T03:21:53
2022-10-27T03:21:53
148,178,242
4
0
null
null
null
null
UTF-8
Python
false
false
2,472
py
# Import necessary modules import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import datasets from sklearn.model_selection import train_test_split import keras from keras.layers import Dense from keras.models import Sequential from keras.utils import to_categorical from keras.callbacks ...
[ "okigbookey@gmail.com" ]
okigbookey@gmail.com
abcc9a605c623609fcbbc56325ce13c7eb6ac52c
9f387c703dbf4d970d0259424c7b299108c369f5
/dd_sdk_1_0/dd_sdk_1_0/models/encryption_info.py
892555de7535c79af5be9561058bd35926137223
[]
no_license
gcezaralmeida/datadomain_sdk_python
c989e6846bae9435c523ab09e230fc12d020f7f1
e102ec85cea5d888c8329626892347571832e079
refs/heads/main
2023-08-23T22:42:47.083754
2021-10-25T21:52:49
2021-10-25T21:52:49
370,805,524
0
0
null
null
null
null
UTF-8
Python
false
false
4,684
py
# coding: utf-8 """ DataDomain Rest API Documentation No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # no...
[ "root@s6006st157.petrobras.biz" ]
root@s6006st157.petrobras.biz
6ac78708e07f66891e768bf7b824c5ab68822b36
ad5d81fd8a952a5719f750714308bd438aa8ddd4
/binary_indexed_tree.py
8708f3c1ee467d2ecf05c8408df73ac2095736fa
[]
no_license
HuipengXu/data-structure-algorithm
d721255e620ab0e25733fa1e91a05393f1857eab
aec39f127c496262118f50f44ccfa460a77b681c
refs/heads/master
2022-02-01T07:33:44.998301
2019-06-24T09:39:28
2019-06-24T09:39:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
# @Time : 2019/4/17 9:19 # @Author : Xu Huipeng # @Blog : https://brycexxx.github.io/ from typing import Optional class BinaryIndexedTree: def __init__(self, length: int, nums: Optional[list] = None): self.data = [0] * (length + 1) if nums is not None: self._init_data(nums, length) de...
[ "2531094755@qq.com" ]
2531094755@qq.com
e398289698a07aee6348dc9669c4e82745b7e881
f68e092e3645a7c0db0374a8bd87fb1c02489a88
/client/communicate_server.py
cae1913bb800c789d433cfe8bbf5d02a3f0e8026
[ "Apache-2.0" ]
permissive
diogo149/ProtoML-clojure
81340b58fe24b42638b0c970d09b3ef8943aa344
c8cb5a49817501c782a334d6ff4a0980a8834a71
refs/heads/master
2021-01-10T22:21:37.685624
2013-10-31T17:00:25
2013-10-31T17:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
import requests from os import path SERVER_URL = "http://localhost:3000" def post(route, data): r = requests.post(path.join(SERVER_URL, route), data=data) try: return r.json() except ValueError, e: return {"error": r.text}
[ "diogo149@gmail.com" ]
diogo149@gmail.com
c11bbdf8fc8c846516fa9889212c9aa78d8d8779
d84962bbd38be6fa80879fa63143d05d29adbc48
/ibet_apps/users/migrations/0194_auto_20191205_1651.py
841dc050e5d0d43dd940a5613e1c5f2c0cd2db70
[]
no_license
senclaymoreusa/ibet-django-backup
1adae8b7459868a8bde34e3ddccf65e11a96463b
31ef33b573b991f9425e4b1edc09dbbd044a69b0
refs/heads/master
2022-12-08T03:45:58.073335
2020-02-18T22:41:09
2020-02-18T22:41:09
245,534,745
0
1
null
2022-12-08T01:51:33
2020-03-06T23:25:37
Python
UTF-8
Python
false
false
450
py
# Generated by Django 2.1.7 on 2019-12-06 00:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0193_auto_20191205_1650'), ] operations = [ migrations.AlterField( model_name='userwallet', name='wallet_am...
[ "vicky@claymoreusa.com" ]
vicky@claymoreusa.com
3982dba03bd30adbaea8656e878738e09e2f884a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03101/s917069273.py
c43bc4e2c8242e7c3d27f0e5353b0736aad35d77
[]
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
161
py
H,W = map(int,input().split()) h,w = map(int,input().split()) dp = [["W" for i in range(H)] for i in range(W)] sums = H*W ans = sums - (h*W+w*H-(h*w)) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d935f0fa894b6a0722b7512d932e382e9d790f00
fa6dae15f639b736b52f4b6e7e75d4fc7db89415
/covidFYI/data/models.py
78108d8564a3db122869e90cd0efc947ca943a9e
[]
no_license
yogesh-hackx/covidFYI-backend
840b194c697dc3d0a39e024c2965a62a0456813b
48b953a79c320bca05af2f6b42f763b44b1ee48a
refs/heads/master
2021-05-23T17:36:54.335004
2020-04-03T20:02:06
2020-04-03T20:02:06
253,403,065
0
0
null
2020-04-06T05:25:18
2020-04-06T05:25:18
null
UTF-8
Python
false
false
1,609
py
from django.db import models from datetime import datetime # Create your models here. class InfoType(models.Model): name = models.CharField(max_length = 128, null=False) def __str__(self): return self.name class Location(models.Model): state = models.CharField(max_length = 64, null=False) ...
[ "tejasarlimatti@gmail.com" ]
tejasarlimatti@gmail.com
565b2e33062a5db44351418caec20cf6d3abca34
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-antiddos-public/aliyunsdkantiddos_public/endpoint.py
616d343af39249d97a03b823924f42994c3caf50
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
4,234
py
# # Licensed to the Apache Software Foundation (ASF) under one # # or more contributor license agreements. See the NOTICE file # # distributed with this work for additional information # # regarding copyright ownership. The ASF licenses this file # # to you under the Apache License, Version 2.0 (the # # "License"); y...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
b2fdabba2eb70bd2bdf795004b9516db2f386052
b826ee8d834714268fe760202c330646dcf12db4
/trash/test.py
3aa926d5f754f5be9b246e97f52c5caf4985b4b5
[]
no_license
ruwan800/vos-repo-sync
9bf7601e79a0356b44799613c6a172f0dc4b9b44
09292dcd2d5af73811a791e89a64b7dc510f9750
refs/heads/master
2021-01-16T21:10:47.357458
2016-08-13T12:07:05
2016-08-13T12:07:05
65,615,310
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from db_connect import DBConnect hello = DBConnect() SQL = "SELECT 0 FROM software WHERE soft_id = 1234;" results = hello.execute(SQL) print(results)
[ "ruwan800@gmail.com" ]
ruwan800@gmail.com
fbe0086d3cdf6bcf7bfd4909d987dd684c979bd7
660e35c822423685aea19d038daa8356722dc744
/sale_subscription/configuration.py
547d3d91769b1f27602a56ad6be2987bbe2c3983
[]
no_license
saifkazi/tryton_modules
a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb
94bd3a4e3fd86556725cdff33b314274dcb20afd
refs/heads/main
2023-05-05T12:20:02.059236
2021-05-19T10:46:37
2021-05-19T10:46:37
368,768,310
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.model import fields from trytond.pool import PoolMeta, Pool from trytond.pyson import Eval class Configuration(metaclass=PoolMeta): __name__ = 'sale.configur...
[ "saif.kazi76@gmail.com" ]
saif.kazi76@gmail.com
15774f25a4b5c9fc9766765ea22315e827cdf383
edc1134436a79ca883a0d25f3c8dfffc4235c514
/tests/infer/autoguide/conftest.py
17f112a1adcff10d70cedf6655fb5ddbf4fcab0c
[ "Apache-2.0" ]
permissive
pyro-ppl/pyro
2283d8ca528fc090c724a3a6e0f344e505ebbf77
0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81
refs/heads/dev
2023-08-18T00:35:28.014919
2023-08-06T21:01:36
2023-08-06T21:01:36
94,506,832
3,647
606
Apache-2.0
2023-09-14T13:52:14
2017-06-16T05:03:47
Python
UTF-8
Python
false
false
442
py
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import pytest def pytest_collection_modifyitems(items): for item in items: if item.nodeid.startswith("tests/infer/autoguide"): if "stage" not in item.keywords: item.add_marker(pytest.mark.s...
[ "noreply@github.com" ]
pyro-ppl.noreply@github.com
164afdef6cf6aefc87958666aed4e948cdc28558
a8750439f200e4efc11715df797489f30e9828c6
/HackerEarth/julius_cipher.py
c6eedff7ea60ac7441b4d6ca91b157678e1e22fe
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
from string import ascii_lowercase as lc alphs = dict(zip(lc, range(1,27))) for _ in range(input()): ins = raw_input().strip() if ins == ins[::-1]: print "Palindrome" else: vals = 1 for x in ins: vals *= alphs[x] print vals
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
0915a9882df846e0314ca440d3b5a6a98c10d826
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_225/ch14_2020_03_02_19_15_48_900598.py
032df3fb57575535d49b6130d374a9ebe2ca049a
[]
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
174
py
import math def calcula_distancia_do_projetil (v, t, y) : a = ((v**2)/(2*9.8) b = (1 + (1 + ((2*9.8*y)/(v**2)*((math.sin(t))**2)) c = (math.sin(2t) return (a*b*c)
[ "you@example.com" ]
you@example.com
847df94c7688f0bc5b70d96a3f0b5f81ec9aea6d
1a9852fe468f18e1ac3042c09286ccda000a4135
/Specialist Certificate in Data Analytics Essentials/DataCamp/12-Introduction_to_Deep_Learning_in_Python/e5_coding_how_weight_changes_affect_accuracy.py
8ec3a8017a1d642bec7127161ac3dd2b2390f93e
[]
no_license
sarmabhamidipati/UCD
452b2f1e166c1079ec06d78e473730e141f706b2
101ca3152207e2fe67cca118923896551d5fee1c
refs/heads/master
2023-08-14T15:41:24.312859
2021-09-22T17:33:01
2021-09-22T17:33:01
386,592,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,942
py
""" Coding how weight changes affect accuracy Instructions 100 XP Create a dictionary of weights called weights_1 where you have changed 1 weight from weights_0 (You only need to make 1 edit to weights_0 to generate the perfect prediction). Obtain predictions with the new weights using the predict_with_net...
[ "b_vvs@yahoo.com" ]
b_vvs@yahoo.com
02fbd4fbfbb38eb09067efb002d305eb8e0b64dd
89b45e528f3d495f1dd6f5bcdd1a38ff96870e25
/PythonCrashCourse/chapter_06/exercise6_01.py
b0f135171f3e21512f8d759f4e7aad054c5cb57d
[]
no_license
imatyukin/python
2ec6e712d4d988335fc815c7f8da049968cc1161
58e72e43c835fa96fb2e8e800fe1a370c7328a39
refs/heads/master
2023-07-21T13:00:31.433336
2022-08-24T13:34:32
2022-08-24T13:34:32
98,356,174
2
0
null
2023-07-16T02:31:48
2017-07-25T22:45:29
Python
UTF-8
Python
false
false
393
py
#!/usr/bin/env python3 person = { 'first_name': 'Igor', 'last_name': 'Matyukin', 'age': 37, 'city': 'Saint Petersburg' } print("Person's first name is " + person['first_name'].title() + ".") print("Person's last name is " + person['last_name'].title() + ".") print("Person's age is " + str(person[...
[ "i.matukin@gmail.com" ]
i.matukin@gmail.com
b49a9a2612e6a86c6c3e1d2e3b321b97908e6bc1
f98105074ba2b39cfd773140e1df5ff5eee0d640
/PS4 First Search Program.py
68748c5bebe89b5dcda5c3b8edf0c4df10a13dab
[]
no_license
niufenjujuexianhua/AI-for-Robotics
3750196169a4047f585254d0eaa07380ca4ccf2f
d95767a63445957ccd20cab02c11158d4e0c2b49
refs/heads/master
2021-01-11T17:22:32.289764
2017-02-24T21:01:33
2017-02-24T21:01:33
79,767,509
0
0
null
null
null
null
UTF-8
Python
false
false
1,913
py
# ---------- # User Instructions: # # Define a function, search() that returns a list # in the form of [optimal path length, row, col]. For # the grid shown below, your function should output # [11, 4, 5]. # # If there is no valid path from the start point # to the goal, your function should return the string # 'fail'...
[ "wutuo123@yeah.net" ]
wutuo123@yeah.net
4f4a090643477f08b93ca84ae4df0dc42e410cdc
6b7061a7e8bc80a1ef248fdf4b4c83432f88730b
/gchatautorespond/apps/licensing/admin.py
4ce94b00e670739a288059bb73a4af432aa1393a
[ "BSD-2-Clause" ]
permissive
simon-weber/gchatautorespond
d81eb6a1a4932cedc98560e5fcc48e847adc1fa4
7db2cc967cf92ce559ac0e2c0ab181c425882d43
refs/heads/master
2022-11-14T07:14:13.933107
2022-07-02T01:49:42
2022-07-02T01:49:42
44,493,439
57
9
null
null
null
null
UTF-8
Python
false
false
144
py
from django.contrib import admin from .models import License, CurrentLicense admin.site.register(License) admin.site.register(CurrentLicense)
[ "simon@simonmweber.com" ]
simon@simonmweber.com
77c2351948f5c516431068dfbb754afcda123333
b3637fcefffaa3ac0a50c230403248fe724c84d0
/convokit/hyperconvo/hypergraph.py
b221bd7b67bc788e95230ce4c2328533a69e2619
[ "MIT" ]
permissive
KaminskyJ/Cornell-Conversational-Analysis-Toolkit
a30a092412928b0370b581150ebb86934e8b87ba
bc893c545e04e7c10af9679639b35cd3d5a10d23
refs/heads/master
2021-01-09T10:37:39.248656
2020-02-24T00:11:48
2020-02-24T00:11:48
242,268,866
0
0
MIT
2020-02-22T02:48:43
2020-02-22T02:48:42
null
UTF-8
Python
false
false
7,567
py
import itertools from typing import Tuple, List, Dict, Optional, Collection from convokit import Utterance, User from collections import defaultdict class Hypergraph: """ Represents a hypergraph, consisting of nodes, directed edges, hypernodes (each of which is a set of nodes) and hyperedges (directed edge...
[ "calebchiam@gmail.com" ]
calebchiam@gmail.com
6377a2a1ca672011735b022bd6d764e647fc9ba9
6f8c27d8b481ab1e659f36f2fd961e29ce198b53
/jobs/payment-jobs/tests/jobs/test_ejv_partner_distribution_task.py
5b2bab64d8bf9dd12ad9d030ea3474941507153a
[ "Apache-2.0" ]
permissive
lmullane/sbc-pay
a21995d284998a6638b3dd4ed30b0c8b10911ef2
64c1f897d4aa387f56e1bd234b6d09938d8ffbf3
refs/heads/master
2023-04-20T03:25:31.766182
2021-04-29T21:28:51
2021-04-29T21:28:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,207
py
# Copyright © 2019 Province of British Columbia # # 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 agr...
[ "sumesh.pk@aot-technologies.com" ]
sumesh.pk@aot-technologies.com
99ea80d086b33f81a4836ade393019bebf6e377f
053e0abf7eb6a78b82beeb97eb08374098a014e0
/leetcode/203.py
7ce4445ac61510d534d5257af0807f1f403dd1f1
[]
no_license
onlytiancai/codesnip
3ffa9ce93811a20e3e23afff89198a32c2bb389c
cc293b5f632f3d745e00300bd329918d27db4c51
refs/heads/master
2023-08-16T21:28:39.027730
2023-08-12T05:33:34
2023-08-12T05:33:34
2,158,768
194
62
null
2023-03-05T05:56:48
2011-08-05T05:24:02
Jupyter Notebook
UTF-8
Python
false
false
717
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeElements(self, head: ListNode, val: int) -> ListNode: if head is None: return head ret = ListNode...
[ "you@example.com" ]
you@example.com
2e8d9c5f4deda20a359f33031c8643a26a848f0d
a81c07a5663d967c432a61d0b4a09de5187be87b
/third_party/blink/public/common/DEPS
56d0145d42de62f74607876ff6c3badd4e0f25d2
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
junxuezheng/chromium
c401dec07f19878501801c9e9205a703e8643031
381ce9d478b684e0df5d149f59350e3bc634dad3
refs/heads/master
2023-02-28T17:07:31.342118
2019-09-03T01:42:42
2019-09-03T01:42:42
205,967,014
2
0
BSD-3-Clause
2019-09-03T01:48:23
2019-09-03T01:48:23
null
UTF-8
Python
false
false
732
include_rules = [ # In general this directory should not depend on any of components/, # content/ or other third_party/blink directories. "-components", "-content", "-third_party/blink", # It is allowed to depend on common chromium stuff (and itself). "+base", "+build", "+net", ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
8c60586c53420ac705bb80b35e0af3f059632571
5486779c8ff01bfdbd3a6b3264ff896e0594eb87
/pyweek/beyond-the-horizon-wav/src/state.py
6c26dac569bfdf3d838fec96929e687df74dc1d3
[ "CC-BY-4.0" ]
permissive
NickSKim/csci321
b10c1df202628945110c20a9160b246e41f39041
0dcffcb921ff50ddae02d5acfff387d4fbfaa1c3
refs/heads/master
2021-08-23T18:17:59.732956
2017-12-06T00:16:25
2017-12-06T00:16:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,334
py
import pygame, json, os.path from src import settings, ptext try: import cPickle as pickle except ImportError: import pickle worlddata = json.load(open(os.path.join("data", "worlddata.json"))) R = worlddata["R"] Rcore = worlddata["Rcore"] you = None mother = None shipyard = {} target = None ships = [] objs = [] haz...
[ "geoffrey.matthews@wwu.edu" ]
geoffrey.matthews@wwu.edu
d9de427f34d9cf996d5e276f38da2d37b0211666
e8480c8fbe190ba5a4f42b9752cad1304d3c90ae
/src/binwalk/plugins/jffs2valid.py
ca86d7b8e02d5c785aa3f6bde6c9bc51b4f78e3f
[ "MIT" ]
permissive
pombreda/binwalk
027e1e99ceb1ded53ba58241299a66b7d96f96bb
f8f82eebe21c6b0a836d93c6668ec6788f2370fc
refs/heads/master
2021-01-24T05:15:12.785933
2015-03-19T23:40:27
2015-03-19T23:40:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,443
py
import binwalk.core.plugin import binwalk.core.compat from binwalk.core.common import BlockFile class JFFS2ValidPlugin(binwalk.core.plugin.Plugin): ''' Helps validate JFFS2 signature results. The JFFS2 signature rules catch obvious cases, but inadvertently mark some valid JFFS2 nodes as invalid due to...
[ "heffnercj@gmail.com" ]
heffnercj@gmail.com
dc0ec6e4abe4d823721fc36dc0be2fd1e0fe6031
4d4fcde3efaa334f7aa56beabd2aa26fbcc43650
/server/src/uds/core/util/unique_name_generator.py
325dc9b421a9c7456e809d91f3bf598363188b1d
[]
no_license
xezpeleta/openuds
a8b11cb34eb0ef7bb2da80f67586a81b2de229ef
840a7a02bd7c9894e8863a8a50874cdfdbf30fcd
refs/heads/master
2023-08-21T17:55:48.914631
2021-10-06T10:39:06
2021-10-06T10:39:06
414,489,331
1
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
# -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright no...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
cf093fdb0afb237ba122719c5fab877c956b1dd2
a9c5c6f6aed746cdfaa594db54d7a2d46e33f430
/LICENSE.md/classification/extract/inter_v2.py
1ffd4c85d175d7b9a64362b7270cbba2f89a543e
[]
no_license
nyc1893/Python-Learning
a7b81d169c4678c199a61aa4c7d226ce927aa8d8
13bc6b8cc28c25df2730d9672d419cd57cab55d4
refs/heads/master
2023-07-20T23:08:38.164660
2023-07-06T14:35:29
2023-07-06T14:35:29
101,700,286
0
1
null
null
null
null
UTF-8
Python
false
false
5,916
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 20 22:47:16 2020 @author: Barron This code converts the string fields to float, interpolates the missing entries, No gradients information """ ## importing libariries import pandas as pd import numpy as np import pyarrow.parquet as pq import matplotlib.pyplot as plt impo...
[ "noreply@github.com" ]
nyc1893.noreply@github.com
4b44780a859e2e0184b13353264d407d14dd17c0
75f9e99d941e821a8d5d7d4df436ae5b5b7bef6e
/tools/upgrade/commands/fixme_all.py
6a9e769484df2f064884422e88acc14f5ce911b1
[ "MIT" ]
permissive
fjsnogueira/pyre-check
9beb294670c823d1bb41de88fed0307c356cee0a
fc6d4c298930071a5ef99dd5639ca341197a9a19
refs/heads/master
2022-12-20T02:52:14.187097
2020-10-14T15:53:53
2020-10-14T15:55:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import logging from ..configuration import Configuration from ..repository import Repository from .command import CommandArgu...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
8bf6af0fa9115989b691aae05bf66e2e6a34ca16
ebac424304a4456193843472d3e91b5de79da514
/users/urls.py
77c58bef96bcf7d6a124725400ab032912a8c3ec
[]
no_license
haha479/bookstore
1a0e7f73ed973ff06fd0c94cb92329baca39b527
3e85e2a62d4e9dde68c5f226c2e7558c6a06a03e
refs/heads/master
2021-09-08T09:05:15.153693
2018-03-09T01:21:44
2018-03-09T01:21:44
115,857,026
1
0
null
null
null
null
UTF-8
Python
false
false
509
py
from django.conf.urls import url from users import views urlpatterns = [ url(r'^register/$', views.register, name='register'), url(r'^register_handle/$',views.register_handle,name='register_handle'), url(r'^login/$',views.login,name='login'), url(r'^login_check/$',views.login_check,name='login_check'), ...
[ "283275935@qq.com" ]
283275935@qq.com
bce899dc34e10d0d50fc60a3371ca163e5038da2
bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697
/Flowers/Project/main/views/authentication.py
ed54eaa3c475d0ebd6e2eeb80ec559cf0fde28a8
[]
no_license
Nusmailov/BFDjango
b14c70c42da9cfcb68eec6930519da1d0b1f53b6
cab7f0da9b03e9094c21efffc7ab07e99e629b61
refs/heads/master
2020-03-28T21:11:50.706778
2019-01-21T07:19:19
2019-01-21T07:19:19
149,136,999
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
from rest_framework.response import Response from rest_framework.decorators import api_view from main.serializers import UserModelSerializer from django.contrib.auth.models import User from rest_framework import status @api_view(['POST']) def registerr(request): serializer = UserModelSerializer(data=request.data)...
[ "nusmailov@gmail.com" ]
nusmailov@gmail.com
8de1a276d211c8095e70a47b259632e324754786
1980034628a1419875093b1259eb9afca390ea91
/venv/lib/python3.7/site-packages/crispy_forms/utils.py
d6229310b910aa66c4119826c43e30da0d555f3d
[]
no_license
ranafge/Djanog-Project
2c8aac92cef9eef1140a391790af240fcd703f63
624e19205c52cea51bdd756096d19ddddf97837f
refs/heads/master
2022-12-15T14:03:08.883264
2019-08-18T08:15:49
2019-08-18T08:15:49
187,343,616
1
1
null
2022-12-11T21:35:51
2019-05-18T10:19:25
Python
UTF-8
Python
false
false
7,844
py
from __future__ import unicode_literals import logging import sys from django.conf import settings from django.forms.utils import flatatt as _flatatt from django.template import Context from django.template.loader import get_template from django.utils.functional import SimpleLazyObject from django.utils.lru_cache imp...
[ "ranafge@gmail.com" ]
ranafge@gmail.com
52f821c3470cd9fc9b047a2adfa43145322aceba
e47c3b28f297ac8ad52ec1be9dd230d7c65d8881
/bin/django-admin
524e92c9f37f0e2ccba1dc0aadd5554bfc975ef9
[]
no_license
Marzia11/my-first-blog
9dacc80e1ffea820dc4310b4ba1dec05d9f5bc5e
abc45804aedb7507eff4880e2b719cdd6d0862c9
refs/heads/master
2021-07-21T08:29:29.464339
2017-10-31T10:52:18
2017-10-31T10:52:18
108,842,896
0
0
null
null
null
null
UTF-8
Python
false
false
308
#!/home/collaboratore17/.virtualenvs/djangogirls/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "you@example.com" ]
you@example.com
3c1d29f1a02f05d9280b95ec5a9121c56284174b
b0eef0efd10556a4b054574fdd2d43124cb0856b
/npbench/benchmarks/deep_learning/lenet/lenet_pythran.py
51a750219203727e8ea040350728522e689c4fe1
[ "BSD-3-Clause" ]
permissive
learning-chip/npbench
140d38be2095b54393de6e0008264b54b7cf686b
f2f545afe3603d5c8f1771f26d660f25ce4a3cda
refs/heads/main
2023-05-10T09:54:52.719759
2021-05-31T12:09:48
2021-05-31T12:09:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,708
py
import numpy as np def relu(x): return np.maximum(x, 0) # Deep learning convolutional operator (stride = 1) # pythran export conv2d(float32[:,:,:,:], float32[:,:,:,:]) def conv2d(input, weights): K = weights.shape[0] # Assuming square kernel N = input.shape[0] H_out = input.shape[1] - K + 1 W_o...
[ "alexandros.ziogas@inf.ethz.ch" ]
alexandros.ziogas@inf.ethz.ch
c3433061e3e6bdcb575a0ac43f2c0ee332ceb68b
04198420ee8304a0290e185fdf46a6bcb2eea9c4
/Chapter 12/educa/courses/api/views.py
5f4840f546fc2b1756a454ff013af9fd50e530c6
[ "MIT" ]
permissive
PacktPublishing/Django-By-Example
846ca6ac95388fe3392d541eaf3b03303718c465
48bd1c8657ef5aae90a0bc80488b3a4787fdb13b
refs/heads/master
2022-11-10T09:39:17.116526
2022-10-31T05:45:09
2022-10-31T05:45:09
185,974,593
36
38
null
null
null
null
UTF-8
Python
false
false
1,934
py
from django.shortcuts import get_object_or_404 from rest_framework import generics from rest_framework import viewsets from rest_framework.authentication import BasicAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.views import APIView from rest_framework.response import Respons...
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
1c62f37b4e5214d901846db4723b7c496c10eea9
474c24602902ccc9607df9ae4aae976f0774212e
/blog/urls.py
3c2b728f379ac7215e767603b14cc1048b42cfce
[]
no_license
chico0602/my-first-blog
50157caebdf31952fdfe445c707d7bcfc75b71e0
a8eb58c7fce17b1070ceace2db75a8277091d1c5
refs/heads/master
2023-04-29T09:30:07.624286
2020-06-07T05:50:34
2020-06-07T05:50:34
231,011,023
1
0
null
2023-04-21T20:44:50
2019-12-31T02:24:08
Python
UTF-8
Python
false
false
778
py
from django.urls import path from . import views urlpatterns = [ path('', views.post_list, name='post_list'), path('post/<int:pk>/', views.post_detail, name='post_detail'), path('post/new/', views.post_new, name='post_new'), path('post/<int:pk>/edit/', views.post_edit, name='post_edit'), path('draf...
[ "you@example.com" ]
you@example.com
d8c9b719dd686f21696ae13f18f9d1bf82bfa89b
aa2d5dd9bca0e4409f92eaf337f8e78881c2a511
/nettests/core/tcpconnect.py
4d1e0fc1922cc5b45f1724b9fbce00eb715b0d2a
[ "BSD-2-Clause-Views" ]
permissive
jonmtoz/ooni-probe
a2d9e1e0c1f1be4467a83c7ef784e6608572962e
28241124e6094b224f4a3b4f6c0a8e8a69a7eeb6
refs/heads/master
2021-01-18T06:16:25.137683
2012-11-10T21:04:06
2012-11-10T21:04:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
# -*- encoding: utf-8 -*- from twisted.internet.protocol import Factory, Protocol from twisted.internet.endpoints import TCP4ClientEndpoint from twisted.internet.error import ConnectionRefusedError from twisted.internet.error import TCPTimedOutError from ooni import nettest from ooni.utils import log class TCPFacto...
[ "art@fuffa.org" ]
art@fuffa.org
7191ffb292232eda0d8f1162f20926da3210156b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/73/usersdata/160/34656/submittedfiles/triangulo.py
6967532a601a6612eab6d36b7f174736881b0152
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
# -*- coding: utf-8 -*- import math a=int(input('Digite a:')) b=int(input('Digite b:')) c=int(input('Digite c:')) if a<b+c: print('S') elif (a**2)==(b**2)+(c**2): print ('Re') elif (a**2)>(b**2)+(c**2): print('Ob') elif (a**2)<(b**2)+(c**2): print('Ac') elif a==b==...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c325da24bc3d5b780876e1f58cd02bec7a124ffe
6cdc18fdb5890de07b2afecf6b75e8c87ea27fd9
/app/admin.py
1870e184bbf5a2fd8ac77be09dde67437ba2d68a
[]
no_license
akihiro-hosoya/django-ec
f37ca06de65c5c22672d2fdbd8f88a737ea9788f
cd920228d69baa2e30baa445765efb9771d3ad90
refs/heads/master
2022-12-13T12:19:04.369597
2020-09-09T08:01:08
2020-09-09T08:01:08
293,326,525
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
from django.contrib import admin from .models import Item, OrderItem, Order, Payment # Register your models here. admin.site.register(Item) admin.site.register(OrderItem) admin.site.register(Order) admin.site.register(Payment)
[ "iicina.yftj.33@gmail.com" ]
iicina.yftj.33@gmail.com
181c052013ab0af0fa1c3b865c07e1fcf4f302f0
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/740.py
c04b32f31f82bbbc5c5b79ad123029bb8b4394a3
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
def solve(n,sofar,dig,prev): if dig<0: return sofar for i in range(9,prev-1,-1): if sofar+i*(10**dig)<=n: s = solve(n,sofar+i*(10**dig),dig-1,i) if s>0: return s return -1 numruns = int(input()) for run in range(numruns): n = int(input()) print('Case #'+str(run+1)+': '+str(solve(n,0,len...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
3712be4053091d17a993d1e0bcb9779f756b600a
ca26d83545b19134e0bdcc7f1b0f5b5f5f624a84
/products/forms.py
d2851fdaeb7b99c6f9621a7835277d7a7ad4e38c
[]
no_license
York0000/e-shop
e99f2c3c0af3ee2483294ccc09a48303f1c74b42
faa5bcd1c329310c1d7a1eadecb5304009d1b176
refs/heads/master
2023-08-07T13:34:48.905440
2021-09-21T13:34:19
2021-09-21T13:34:19
398,176,796
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
from django import forms from products.models import ColorModel class ColorModelForm(forms.ModelForm): class Meta: model = ColorModel fields = '__all__' widgets = { 'code': forms.TextInput(attrs={ 'type': 'color' }) }
[ "yorqin_bohodirov20@mail.ru" ]
yorqin_bohodirov20@mail.ru
e1db6e36f134ff3a740bb3cbc08b48c4602c9f1d
deba5baa1a1c4995c378267116a45c39e6405e39
/setup.py
e5b07c9e6496d38610eb5a807a74bf9297aadac1
[ "MIT" ]
permissive
LautaroEst/LuthierText
bf1f3d7103d4ec43d0711608b1061b53ba71efaa
f1395fbfda1039bd19fd829cbe853e39ae91805d
refs/heads/main
2023-01-28T10:50:34.464265
2020-12-07T22:29:09
2020-12-07T22:29:09
316,622,574
0
0
MIT
2020-12-07T22:29:10
2020-11-27T23:51:24
Python
UTF-8
Python
false
false
693
py
import setuptools with open("Readme.md", "r") as fh: long_description = fh.read() setuptools.setup( name="luthiertext", # Replace with your own username version="0.0.1", author="Lautaro Estienne", author_email="lautaro.est@gmail.com", description="Python package for text processing", long_...
[ "lautaro.est@gmail.com" ]
lautaro.est@gmail.com
56bc355f6c80315fac1a96eae9af3c394035578e
9ac5111628bec3e36caac20cd6dedbc314460375
/tests/utils.py
d7255e52832b6642228441b879d211d6707ab227
[]
no_license
kingstarcraft/lol_api
27d5f52b307d054eb98e14145823186825f2a412
33ea96f5eeac581737949b733d8af1c4436e94b9
refs/heads/master
2020-05-02T12:05:32.270614
2016-06-03T13:43:11
2016-06-03T13:43:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
import pytest import requests from lol_api.settings import settings test_api_key = 'test_key' region_default = 'eune' class BaseTestClass: control_url = '' test_json = {"3": "bb", "a": 4} # request_params = {} mock_request = None # Will be MockRequest object requested_url = '' @pytes...
[ "kuba.semik@gmail.com" ]
kuba.semik@gmail.com
ecb66c68be8ab2df5d3b08561133df20693130cf
42e85e88b8936942eb9e5ed068034c9579384586
/pipeline_logic/trinetx/python/datasets/transform/step07_final_health_checks/drug_exposure.py
663bc848d7d8e8e1acaf066f931711a6dbd7f47b
[]
no_license
dr-you-group/Data-Ingestion-and-Harmonization
55b634d8a7abe22cc7f06b3b0bce27467c6720ca
145aec62daa5df450c94180d5252dd3bc23f0eae
refs/heads/master
2023-08-25T15:25:59.934816
2021-10-07T15:27:07
2021-10-07T15:27:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
from transforms.api import transform_df, Input, Output, Check from transforms import expectations as E from trinetx.omop_schemas import complete_domain_schema_dict domain = "drug_exposure" # Get complete schema for this OMOP domain as an OrderedDict complete_schema = complete_domain_schema_dict[domain] # Cast to regul...
[ "stephanie.hong@jhu.edu" ]
stephanie.hong@jhu.edu
7c81766d8a575cc900b77b5e795edabba85f36a7
5896da906bdcb1315881712a0baa52a706bbeb06
/exerciciospython/EstruturaDeRepeticao/atividade35.py
d97626b12df0aa82163b496be2885fe1015de634
[]
no_license
frederico-prog/python
313b4c11347fb33f67d73dee89f3106f483a2333
6c3d3757944fcbf569e1114838f236a9329358bd
refs/heads/master
2022-12-13T23:26:55.112797
2020-08-21T22:03:26
2020-08-21T22:03:26
272,381,728
3
0
null
null
null
null
UTF-8
Python
false
false
626
py
''' 35 - Encontrar números primos é uma tarefa difícil. Faça um programa que gera uma lista dos números primos existentes entre 1 e um número inteiro informado pelo usuário. ''' num = int(input('Digite um número: ')) total = 0 for c in range(1, num + 1): if num % c == 0: print('\033[33m', end='') to...
[ "fredlgprime@gmail.com" ]
fredlgprime@gmail.com
8377186d620175d8e45d33cf798781694a38c2c1
33ddc0a7e904b53eacf2170856699ae91fe8aa47
/decim/stan_bids.py
30d6718571c0eceb1286c9d169921e0cc27c019f
[]
no_license
nwilming/decim
6670dd460ce15b65c433b25b6a983236b92474c0
e593f171d132afa3bcf4959457c320d0b35f3c77
refs/heads/master
2020-03-08T03:24:36.986437
2018-12-11T17:03:38
2018-12-11T17:03:38
106,668,018
0
0
null
2017-10-12T08:48:37
2017-10-12T08:48:37
null
UTF-8
Python
false
false
1,723
py
import decim import pandas as pd import pickle from decim import glaze_control as gl from itertools import zip_longest from multiprocessing import Pool import pystan # SET OPTIONS bids_mr = '/work/faty014/bids_mr_v1.1/' subjects = [1, 2] sessions = [1, 2, 3] def keys(): for subject in subjects: for sessi...
[ "kenohagena@gmail.com" ]
kenohagena@gmail.com
4f1bd0d667590fb307736a7bbf4bd0786704fc89
0d838f1d95edaed26879dc175d7e12c5b975c3af
/train.py
7110e93648fa9b77030c04d8d00c6ee4d4c5512f
[]
no_license
DungLuongTuan/ocr
045f83b046e95fde2e5d21a63ef451179ee2e7c8
8076220435e27156852f8e94b78880f16f2e725f
refs/heads/master
2023-05-31T20:14:19.368371
2021-07-05T04:11:40
2021-07-05T04:11:40
289,602,749
0
1
null
null
null
null
UTF-8
Python
false
false
248
py
from model import Model import tensorflow as tf import numpy as np import pdb import os def main(): ### create model model = Model() model.create_model() ### train new model model.train() if __name__ == '__main__': main()
[ "admin@Admins-MacBook-Pro.local" ]
admin@Admins-MacBook-Pro.local
092fda336446b631b93c03262f2f73b944a5f8db
6bb3dc3d43ee66307c1ed6f5940141be0e481936
/Python/setup.py
493c23ac12f9c9ba12934cc12bd4061396da5bdb
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
CCS-Lab/easyml
7f41db72122f5de23f75381bcc03e13d65536c1b
c334d1174ee5795734f900d2cfa2836b76834bc9
refs/heads/master
2023-06-12T07:09:22.847009
2023-06-02T05:27:51
2023-06-02T05:27:51
71,721,801
40
19
NOASSERTION
2022-06-21T21:11:33
2016-10-23T18:38:28
R
UTF-8
Python
false
false
484
py
from setuptools import setup setup( name='easymlpy', version='0.1.2', description='A Python toolkit for easily building and evaluating machine learning models.', url='https://github.com/CCS-Lab/easyml', author='OSU CCSL', author_email='paul.hendricks.2013@owu.edu', license='MIT', keywor...
[ "paul.hendricks.2013@owu.edu" ]
paul.hendricks.2013@owu.edu
8b6daaa09d7c1329c9b1d3a0fc1c383c653f4f48
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/tasks/buffer.py
fad95ce857be4ead6f4b6e0c17cc52a76ac39a72
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
2,061
py
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. 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 requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
c205925dd4456b2fbc554097e1e9d427ead20c43
189d79c0e0fcdce192a6034306416fd492202501
/LeetCode/Python/214 Shortest Palindrome.py
4d6171a929e0d5d81e27080535ef7a05533833c7
[]
no_license
digant0705/Algorithm
294fbc84eaa4b6e0ea864924b71c4773c2e1c0c6
01f04bcc5e8f55014973d4eef069245f3f663eb9
refs/heads/master
2021-07-25T16:44:34.366974
2021-06-05T23:37:17
2021-06-05T23:37:17
251,144,249
0
0
null
2020-03-29T22:05:29
2020-03-29T22:05:28
null
UTF-8
Python
false
false
1,863
py
# -*- coding: utf-8 -*- ''' Shortest Palindrome =================== Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation. For example: Given "aacecaaa", return "aaacecaaa". Given "a...
[ "shiyanhui66@gmail.com" ]
shiyanhui66@gmail.com
a9dbc3ee81439b624e8bbe1fdd8fddc296017d42
b4ebc53bbe3e9eb9979a870f8e19afccc77cd0dc
/kotti/views/util.py
0e002299d08ab3cb1e15aeac15ab91b2fc2f2943
[]
no_license
tomster/Kotti
ebadfc5062d5cb204b3a3dc3c7022c5d48764c1c
815feef31ca682651a00cb3e37e9d2eb69102680
refs/heads/master
2021-01-17T02:52:07.392185
2011-02-03T20:52:35
2011-02-03T20:52:35
1,326,248
1
0
null
null
null
null
UTF-8
Python
false
false
7,161
py
import string from pyramid.decorator import reify from pyramid.location import inside from pyramid.location import lineage from pyramid.renderers import get_renderer from pyramid.security import has_permission from pyramid.security import view_execution_permitted from pyramid.url import resource_url from kotti import...
[ "daniel.nouri@gmail.com" ]
daniel.nouri@gmail.com
a554b75bbae8ce7159a8c92c7bc9617a3f8ea6b2
e6e81d0cd02223ca27f2c3f544b3c116e7617270
/LeetCodePremium/166.fraction-to-recurring-decimal.py
4e31940e0726047ec726d2cd948a7cdc50cbbd9e
[]
no_license
ashjambhulkar/objectoriented
86166640b0546713095dd5d8804fc78d31782662
6f07b50590ceef231be38d6d7b8c73a40c1152e9
refs/heads/master
2022-05-03T23:28:38.674275
2022-04-26T21:37:31
2022-04-26T21:37:31
249,091,045
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
# # @lc app=leetcode id=166 lang=python3 # # [166] Fraction to Recurring Decimal # # @lc code=start class Solution: def fractionToDecimal(self, numerator: int, denominator: int) -> str: temp = numerator / denominator result = str(temp).split(".") print(result) # @lc code=en...
[ "ashjambhulkar@hotmail.com" ]
ashjambhulkar@hotmail.com
23ffe8520ed4a6c52b992f3a2a30670f92d55ac8
b1eef5dac934d205872627c450b392035f526990
/wagtail_redirect_importer/wagtail_hooks.py
36bf415841093cc9c13e41943cf7fa0b88a66325
[ "BSD-2-Clause", "MIT" ]
permissive
Frojd/wagtail-redirect-importer
55ed260d7df34daea320859bf5c336c9d94a4307
80c79f2bf7f6d66bd742af55419a03795a29aac5
refs/heads/master
2021-01-05T08:02:08.943279
2020-02-19T19:30:55
2020-02-19T19:30:55
240,944,396
16
1
null
null
null
null
UTF-8
Python
false
false
868
py
from django.urls import reverse from django.conf.urls import url, include from django.utils.translation import gettext_lazy as _ from wagtail.core import hooks from wagtail.admin.menu import MenuItem from wagtail.contrib.redirects.permissions import permission_policy from . import admin_urls @hooks.register("registe...
[ "martin@marteinn.se" ]
martin@marteinn.se
13acff566febfc830270cc4bdf6322ec75e1f540
3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf
/AOJ/ITP1/python/ITP1_3_C_Swapping_Two_Number.py
d588c02ab1c69137249031f73cc1f626561d4dfb
[]
no_license
kokorinosoba/contests
3ee14acf729eda872ebec9ec7fe3431f50ae23c2
6e0dcd7c8ee086650d89fc65616981361b9b20b9
refs/heads/master
2022-08-04T13:45:29.722075
2022-07-24T08:50:11
2022-07-24T08:50:11
149,092,111
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
for e in list(open(0))[:-1]:print(*sorted(map(int,e.split()))) """ import sys for s in sys.stdin: if"0 0\n"==s:break print(*sorted(map(int,s.split()))) """ """ while True: numbers = list(map(int, input().split())) if numbers[0] == numbers[1] == 0: break print(*sorted(numbers)) """ """ while True: ...
[ "34607448+kokorinosoba@users.noreply.github.com" ]
34607448+kokorinosoba@users.noreply.github.com
fe06ea4c3df64f6e25f6212d7a97c2e563643489
15f948eca3996be98fb7de95b3565fc2851e49e6
/rflex_dashboard/src/b21_dashboard.py
3f60133e060c7b9804089749bcfb55790d7ed2b1
[]
no_license
DLu/rwi_ros
541e4a63fab6365831b48f55e317523de7700b91
fc57828f7879a48628a38fbc37a0ad796219f5bb
refs/heads/master
2021-01-10T20:04:25.510990
2013-07-12T22:00:18
2013-07-12T22:00:18
11,375,335
2
0
null
2013-08-24T20:53:03
2013-07-12T18:30:01
C++
UTF-8
Python
false
false
2,139
py
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code...
[ "davidvlu@gmail.com" ]
davidvlu@gmail.com
041772ebf7aa50615ab05be18957702fdac5b5fe
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/era5_scripts/02_preprocessing/concat82/693-tideGauge.py
91401ff9f7c80852988b6487e7b02e2fa2d80619
[]
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
2,482
py
# -*- coding: utf-8 -*- """ Created on Tue May 13 10:02:00 2020 --------------------------------------------------------- This script concatenates yearly predictor files Browses the predictor folders for the chosen TG Concatenates the yearly csvs for the chosen predictor Saves the concatenated csv in a separate dire...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
5ae40bbb2d10b61750da504f1266b8eccc87a272
4d097d0e8c571874761463f698f5d34e38e549a0
/python/1104_example BFS.py
8604a355ac934eaa98cfc466f9b3a8253701a795
[]
no_license
sondongmin0419/study
533832151958fe8ae178d8aee183edf91ffa7e12
0c863e2c9111b35a15ccfaec3cc64828c584beb1
refs/heads/master
2023-03-24T11:54:04.139399
2021-03-15T13:40:21
2021-03-15T13:40:21
281,695,258
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
def BFS(n): print(n+1) for i in range(N): if li_v[n][i] == 1 and v[i] == 0: li_v[n][i] = 0 li_v[i][n] = 0 stack.append(i) v[i] = 1 if stack: BFS(stack.pop(0)) li = [1, 2, 1, 3, 2, 4, 2, 5, 4, 6, 5, 6, 6, 7, 3, 7] N = max(li) li_v = [[0] * N f...
[ "dongmin.dev0419@gmail.com" ]
dongmin.dev0419@gmail.com
07d5b2dbfe31d0220e328e169b9b3c434e4622df
1170f797b7788b9e8445b7dd65377763068a9aa3
/sympy/diff_gaussian3d.py
8e9ff0d689f09a8f4045459b0c9dfb9aceae83ae
[]
no_license
f-fathurrahman/ffr-python-stuffs
2585c554e15ec6828900739376250ed391cf6966
d249c4f2a01f58a96083bac2377309c05f652907
refs/heads/master
2023-08-23T22:54:34.147166
2023-07-20T23:24:50
2023-07-20T23:24:50
83,401,478
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
from __future__ import print_function from sympy import * init_printing(use_unicode=True) x, y, z, sigma = symbols("x y z sigma") #c1 = 2*sigma**2 #cc1 = sqrt(2*pi*sigma**2)**3 c1, cc1 = symbols("c1 cc1") r2 = x**2 + y**2 + z**2 f = exp(-r2/c1)/cc1 pprint(f) print("Diff x:") nabla_x = diff(f,x).subs( x**2 + y**...
[ "fadjar.fathurrahman@gmail.com" ]
fadjar.fathurrahman@gmail.com