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
e60423838e2c075cb78f1f99929bbd83107cb80c
053f952d07a5f5c79250dbc66a1631ad7a77989a
/pelicanconf-live.py
e499a965fd612a04a629f73ea9a117107fd8ae66
[]
no_license
mirca/TessGiWebsite
ac4cd198f2d4c76e3b0dd14a58923016748e980d
cb4b1d4a394bd5240d6f0325ecb54fa93c52ff70
refs/heads/master
2020-12-30T12:55:46.346230
2017-05-15T18:15:12
2017-05-15T18:15:12
91,372,621
0
0
null
2017-05-15T18:45:34
2017-05-15T18:45:34
null
UTF-8
Python
false
false
635
py
"""This config is used when you run `make live`. It inherits most of the settings from pelicanconf.py. """ from __future__ import unicode_literals # First load all the defaults from pelicanconf.py import os import sys sys.path.append(os.curdir) from pelicanconf import * CACHE_CONTENT = False ANALYTICS = ("""<script...
[ "geert@barentsen.be" ]
geert@barentsen.be
cd7f126207711cfb45827e7d2274c2a958f736d5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02786/s124967449.py
ed265a2787ac7fe3b193da6fcaeb4c9f529f0002
[]
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
141
py
h = int(input()) ans = 0 n_enemy = 1 while h > 1: h //= 2 ans += n_enemy n_enemy *= 2 if h == 1: ans += n_enemy print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
15e8cb8250159105a90b6529699bbd30075ac058
c5f9e604426fedab69eed60114e8fced022d941e
/django_project/urls.py
6011dd85d7133c05608f8e18aa8df3d33824da7a
[]
no_license
aman007shrestha/Django-Blog-App
d1f53f6d15307ea95ad34836fbdb846b9d7739e2
376933f80f88d4cc98ea990e1afcc9c5938fa853
refs/heads/main
2022-12-23T20:43:58.941496
2020-10-02T03:24:04
2020-10-02T03:24:04
300,489,373
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
"""django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "KAN007BCT@student.kec.edu.np" ]
KAN007BCT@student.kec.edu.np
d35ac59b3c67c373ba852841421eb3242598cf1c
10915e2f20f22069f59db3b5594e244033a54871
/test/e2e/test_102_require.py
427b2362db80eb95a360fda8783287d100dbb6e2
[ "FSFAP", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
elukey/mod_h2
47e2074adbd38f48859bf5fe1fc17bc27f6e2e44
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
refs/heads/master
2020-07-25T13:41:54.173018
2019-10-06T06:15:15
2019-10-06T15:43:08
208,310,398
0
0
NOASSERTION
2019-09-13T17:09:06
2019-09-13T17:09:06
null
UTF-8
Python
false
false
1,809
py
# # mod-h2 test suite # check variable require configurations # import copy import os import re import sys import time import pytest from datetime import datetime from TestEnv import TestEnv from TestHttpdConf import HttpdConf def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init...
[ "stefan.eissing@greenbytes.de" ]
stefan.eissing@greenbytes.de
ff1b0f511c929e7fa1c78f4408c64eaf3af53765
b2f277e5eabe7a404955f6bbce411747e3c8432a
/项目2 数据可视化/第15章 生成数据/动手试一试/15-9 将点数相乘/two_D8_dice_visual.py
fc54d7ec9824617b6037139c4468728ced348186
[]
no_license
Jeffery12138/Python-
579a6a1fae2858614645eb05c86970c37013c997
88cecaa8d2e1b71b840079fa598482ebf966ffe5
refs/heads/master
2023-01-06T12:46:15.818053
2020-11-02T16:00:34
2020-11-02T16:00:34
296,055,253
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
import pygal from die import Die # 创建两个骰子 die_1 = Die() die_2 = Die() # 掷骰子多次,并将结果存储在一个列表中 results = [die_1.roll()*die_2.roll() for roll_num in range(1000)] # 分析结果 values = [] for i in range(1, die_1.num_sides+1): for j in range(i, die_2.num_sides+1): value = i * j values.append(value) values = ...
[ "1025958194@qq.com" ]
1025958194@qq.com
d968a408d7bb2553aa5794e05d0df0d1a8c2a193
f124cb2443577778d8708993c984eafbd1ae3ec3
/saleor/graphql/order/mutations/order_capture.py
9b354a7867c05167f41e77cd7d86d5c40c9abf15
[ "BSD-3-Clause" ]
permissive
quangtynu/saleor
ac467193a7779fed93c80251828ac85d92d71d83
5b0e5206c5fd30d81438b6489d0441df51038a85
refs/heads/master
2023-03-07T19:41:20.361624
2022-10-20T13:19:25
2022-10-20T13:19:25
245,860,106
1
0
BSD-3-Clause
2023-03-06T05:46:25
2020-03-08T17:44:18
Python
UTF-8
Python
false
false
4,032
py
import graphene from django.core.exceptions import ValidationError from ....core.permissions import OrderPermissions from ....order.actions import order_captured from ....order.error_codes import OrderErrorCode from ....order.fetch import fetch_order_info from ....payment import PaymentError, TransactionKind, gateway ...
[ "noreply@github.com" ]
quangtynu.noreply@github.com
95e6bc83d101573e82a714eff2084a132a9d33d1
2c9db62ddaffd77c097b3da4990021270912ea40
/정렬/insertion_sort.py
b933e49690a1910bbf4a2353214355f7f5482859
[]
no_license
nahyun119/algorithm
9ae120fbe047819a74e06fc6879f55405bc9ea71
40e291305a4108266073d489e712787df1dbae4b
refs/heads/master
2023-08-27T23:18:44.133748
2021-10-03T11:32:12
2021-10-03T11:32:12
326,661,962
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
numbers = list(map(int, input().split())) for i in range(1, len(numbers)): for j in range(i, 0, -1): if numbers[j - 1] > numbers[j]: numbers[j - 1], numbers[j] = numbers[j], numbers[j - 1] else: # 앞에는 이미 정렬되어 있으므로 비교했을 때 더 크면 그 앞에 있는 것들 보다도 크다는 의미이므로 break break # ...
[ "nahyun858@gmail.com" ]
nahyun858@gmail.com
4f4f09078ef2f9cb45be52330cb74d2fcc1e259e
8ac5fa643e54f6aac8af600eddbeb4c074095b2b
/tspdb/src/pindex/pindex_utils.py
5eb3854c6386ebf76177a12d9c6db36c714f3c4b
[ "Apache-2.0" ]
permissive
AbdullahO/tspdb
00acca3b29a054f02ac07a0243c04ba575af0a19
6ba75833a128d4036caad488d144fb6b0ba682e6
refs/heads/master
2023-05-25T09:44:19.856796
2023-05-18T17:25:48
2023-05-18T17:25:48
210,507,080
179
60
Apache-2.0
2023-02-10T23:10:00
2019-09-24T03:51:25
Jupyter Notebook
UTF-8
Python
false
false
1,498
py
import numpy as np import pandas as pd from dateutil.parser import parse def index_ts_mapper(start, interval, timestamp): """ takes time series index (timestamp) and return the integer index in model """ if isinstance(start, (int, np.integer)): return int((timestamp-start)/(interval))...
[ "aalomar@mit.edu" ]
aalomar@mit.edu
7589774a6ba39f3432e98b31ba24c133cbb9ead7
27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f
/plugins/module_utils/network/ios/facts/facts.py
244c6bbb87ce60d42baf0a8e77cf43b08af69089
[]
no_license
coll-test/notstdlib.moveitallout
eb33a560070bbded5032385d0aea2f3cf60e690b
0987f099b783c6cf977db9233e1c3d9efcbcb3c7
refs/heads/master
2020-12-19T22:28:33.369557
2020-01-23T18:51:26
2020-01-23T18:51:26
235,865,139
0
0
null
null
null
null
UTF-8
Python
false
false
3,272
py
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The facts class for ios this file validates each subset of facts and selectively calls the appropriate facts gathering function """ from __future__ import absolute_impor...
[ "wk@sydorenko.org.ua" ]
wk@sydorenko.org.ua
324acd81e1adbdb6a9d82a92cb9c90930147a704
4d870ade88905b98085c9643cfbd48f5c3982a06
/tp4/test.py
af1af13b38eb5e995682e44c5db2abbc41b2a2c8
[]
no_license
lamdevhs/graph5
37a2913398e3ce5123641fb865c34625b0742c2f
05e588126bc1b81b8f21fd63e184522db5dfa73a
refs/heads/master
2020-03-29T09:19:37.086038
2018-12-23T18:24:57
2018-12-23T18:24:57
149,752,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
# Coloration des sommets d'un graphe non orienté from naive import * from glutton import * from glutton2 import * # welsh and powell Petersen=[[],[2,5,6],[1,3,7],[2,4,8],[3,5,9],[1,4,10],[1,8,9],[2,9,10],[3,6,10],[4,6,7],[5,7,8]] G=[[],[2,3,4],[1,3,4,5],[1,2,4,5,6],[1,2,3,6],[2,3,7],[3,4,7],[5,6]] # 1) Co...
[ "lam.dev.hs@gmail.com" ]
lam.dev.hs@gmail.com
da6a4e8ad8cae7cb86c6a6bbabb9404c6352f6b2
3fa7facbc07dea3d61ba41b7b0e7db1772d617f4
/wenkr_spider/pipelines.py
4ae95fe6f429f8a31632b0a47711eb8e29d7eb3b
[]
no_license
intohole/mortred
b3e8b4980a476bac973cfd2e5de7d73f734b8c9a
4c71082f4b17c843a5be3ceeb8e548912f556b63
refs/heads/master
2021-01-21T21:43:30.538693
2016-05-28T04:30:52
2016-05-28T04:30:52
25,634,801
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from xsegment.summary import SimpleSummary from doc import Doc from wenkr_spider.spiders.config import get_doc_config import re ...
[ "intoblack86@gmail.com" ]
intoblack86@gmail.com
68b63d892f9c943243ac2ce4c7d9ff09ce3a0ff7
f1738cd603e0b2e31143f4ebf7eba403402aecd6
/ucs/base/univention-installer/installer/package_list.py
352654c793e13b135ecd324f4d8dba5f9c601a7b
[]
no_license
m-narayan/smart
92f42bf90d7d2b24f61915fac8abab70dd8282bc
1a6765deafd8679079b64dcc35f91933d37cf2dd
refs/heads/master
2016-08-05T17:29:30.847382
2013-01-04T04:50:26
2013-01-04T04:50:26
7,079,786
8
6
null
2015-04-29T08:54:12
2012-12-09T14:56:27
Python
UTF-8
Python
false
false
7,592
py
#!/usr/bin/python2.6 # -*- coding: utf-8 -*- # # Univention Installer # definitions of package lists # # Copyright 2004-2012 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 ...
[ "kartik@debian.org" ]
kartik@debian.org
ae22bd350a744bc281e6a6c82827d5f37298bcc7
1ab1e3d13af7aa7845293ebc688cf09927ae3a49
/src/i64lang/x64.py
9902001fb9b50d5a8687d051d68afe9e4ee64fd9
[]
no_license
JacquesLucke/i64lang
e08684ad8a87e78ee6e632dadc6a4c19b6b0be5b
7ea69db1cfe2f63423397e874079e5af5ad17ce1
refs/heads/master
2020-09-27T02:18:33.479371
2019-12-08T00:27:37
2019-12-08T00:27:37
226,401,936
0
0
null
null
null
null
UTF-8
Python
false
false
6,055
py
from dataclasses import dataclass from . bits import Bits @dataclass class Register: # e.g. rax, r12, ... name: str # 0 for rax, rbx, ... # 1 for r8 - r15 group: int # 0 for rax, r8 # 1 for rbx, r9 # ... # 7 for rdi, r15 number: int bits: Bits = Bits("") def __post_i...
[ "mail@jlucke.com" ]
mail@jlucke.com
5d44ae6a3c1976937dc9f7cd81420e553e65ea82
6130f811f3acfcb9f60939d8752bb035cadaf928
/examples/adspygoogle/dfp/v201311/report_service/run_delivery_report.py
8f5dd54bb588eaf2dec41e02ffb4b8942c5ed71a
[ "Apache-2.0" ]
permissive
gsembi/googleads-python-legacy-lib
f2e3197413c23c1192b11e54bf78c087f04a2baa
9de235ffb65d014dd6ba22be50659c910eca5ae2
refs/heads/master
2021-01-23T23:38:28.076465
2014-10-14T20:38:20
2014-10-14T20:38:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,285
py
#!/usr/bin/python # # Copyright 2013 Google Inc. 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 b...
[ "emeralddragon88@gmail.com" ]
emeralddragon88@gmail.com
1950317e04c2343ca6da53b68d67b91f127f4411
21b0b4c27193898207751c91b8b2ed168a1b1638
/py/py_0274_divisibility_multipliers.py
c38b76ad0dc2c388e48ab5f4846b19c1f8b2a658
[ "MIT" ]
permissive
lcsm29/project-euler
67560a4e66968f1671a3d7ecf2dda6c956893dca
fab794ece5aa7a11fc7c2177f26250f40a5b1447
refs/heads/main
2023-07-04T11:45:24.374841
2021-08-07T08:20:41
2021-08-07T08:20:41
371,808,781
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
# Solution of; # Project Euler Problem 274: Divisibility Multipliers # https://projecteuler.net/problem=274 # # Data for that problem cannot be found # # by lcsm29 http://github.com/lcsm29/project-euler import timed def dummy(n): pass if __name__ == '__main__': n = 1000 i = 10000 prob_id = 274 ...
[ "lcsm29@outlook.com" ]
lcsm29@outlook.com
2adf7ffe859c3717cf1b06953dd7d5af0688f089
de59ece5d773d8607ba7afe747088ff07062494c
/py-core/statements/multiple-conditions.py
1d9537b8304a1e8c1ae5e1bcc89fabf79871d97f
[]
no_license
loggar/py
4094c6919b040dfc0bb5453dc752145b5f3b46ba
1116969fa6de00bbc30fe8dcf6445aa46190e506
refs/heads/master
2023-08-21T16:47:41.721298
2023-08-14T16:12:27
2023-08-14T16:12:27
114,955,782
0
0
null
2023-07-20T15:11:04
2017-12-21T03:01:54
Python
UTF-8
Python
false
false
169
py
x = 0.5 if 0 <= x and x <= 1: print(f'value is {x}') if (0 <= x <= 1): print(f'value is {x}') if (0 <= x < 1) | (7 <= x < 8) | (x == 10): print('passed')
[ "charly.loggar@gmail.com" ]
charly.loggar@gmail.com
b3b8e62e3f6bf837719016cb44af7b137fb30a1d
5254c3a7e94666264120f26c87734ad053c54541
/5. Complejidad y Organización de programas/5.3 Módulos/ejercicio_5.7/ejercicio_5.7.py
b817705f74c5bd45d38f5d7c1b38ceed3ba976da
[]
no_license
ccollado7/UNSAM---Python
425eb29a2df8777e9f892b08cc250bce9b2b0b8c
f2d0e7b3f64efa8d03f9aa4707c90e992683672d
refs/heads/master
2023-03-21T17:42:27.210599
2021-03-09T13:06:45
2021-03-09T13:06:45
286,613,172
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 4 17:03:14 2020 @author: User """ #%% #Importo el modulo rebotes import rebotes #%% #Importo el modelo hipoteca import hipoteca #%% #Importo el modulo informe import informe informe.balance('camion.csv','precios.csv') #%% #Importo el modulo fileparse import file...
[ "46108725+ccollado7@users.noreply.github.com" ]
46108725+ccollado7@users.noreply.github.com
27c40931001caa68689dbdc9917d327e995e762a
3fdc4b18afaa2b71f0aa2a6ee1918ac6818de91e
/mythcnc/celery.py
e2885a5fce47d192d99544f0d1215cc06da623f7
[]
no_license
eloghin/mythcnc
b5a2ea6f63d523aef5555d9f0f906256cc9ce8ae
9e9784fa09dfd57d3708c9c5520732347090f886
refs/heads/main
2023-02-19T22:12:54.910931
2021-01-23T05:59:35
2021-01-23T05:59:35
331,975,818
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mythcnc.settings') app = Celery('mythcnc') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks()
[ "contact@elenaloghin.ro" ]
contact@elenaloghin.ro
e681139712f516c8cd797ee7a265a5739821218d
74b97e20b06a58ada94278f82ce511403fcddf21
/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/vendored_sdks/mixedreality/operations/_operations.py
86f5a28aba42f69022591d68331ee80427d68eb4
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.az
b171eb495efdb815dc051dface3800c3e5e35b8e
64f403a5fe74be28e46a90b6b77f8d2bc9a12baf
refs/heads/master
2023-09-01T13:22:21.784354
2022-11-01T02:34:12
2022-11-01T02:34:12
226,059,721
24
17
MIT
2023-02-08T00:46:07
2019-12-05T09:04:00
Python
UTF-8
Python
false
false
4,660
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 ...
[ "noreply@github.com" ]
Azure.noreply@github.com
bea0f5c01e1fa60c5c6b399dcc6db267050fdc5d
6b5c2e3ebcdb4609fe637fe22013b18baff3ad2a
/nadlogar/students/urls.py
b8281bfafcb6d813a59462072eb5b8e906c00843
[ "MIT" ]
permissive
jO-Osko/nadlogar
3762270307c0882f836c94c597f2f51488bb8ee0
fe7ca10d8092f6647f221fd0e3cb3c3731b75bf0
refs/heads/master
2023-05-10T06:48:18.316598
2023-03-24T19:13:59
2023-03-24T19:13:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from django.urls import include, path from . import views app_name = "students" urlpatterns = [ path("create/", views.create_group, name="create_group"), path("<int:group_id>/", views.view_group, name="view_group"), path("<int:group_id>/edit/", views.edit_group, name="edit_group"), path("<int:group_id...
[ "matija@pretnar.info" ]
matija@pretnar.info
175335282a99557d7c7cac243a05f4b5807d3e30
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/Python/FiniteStateParser/pyparsing_block_parser.py
c47b2fbf6945293e5cda9ae4c160b04a600b4577
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
Python
false
false
3,863
py
#!/usr/bin/env python '''parser for block-structured data using the pyparsing module''' from pyparsing import (alphas, alphanums, restOfLine, Literal, Keyword, Word, CharsNotIn, Group, Combine, Optional, ZeroOrMore, OneOrMore, LineStart, LineEnd, Not...
[ "geertjan.bex@uhasselt.be" ]
geertjan.bex@uhasselt.be
2ee0b0e9b53854ad77fac2fc6c52ce7db415bf94
6a0b9581195400a93027aca881b1bc687401913d
/hackerrank-python/contests/101_hack_20_august/grid_maze.py
ac15593fb0b6b990bbe4c922a314da0d9df34a94
[]
no_license
108krohan/codor
1d7ff503106ad6b2c18bc202d4c88f296600f28e
2e485607080f919f273aa6c8c0d9cb3516cf4443
refs/heads/master
2021-04-28T21:13:34.604020
2018-02-18T11:55:26
2018-02-18T11:55:26
86,153,540
0
0
null
null
null
null
UTF-8
Python
false
false
3,726
py
"""grid maze at 101hack August at hackerrank.com """ def path_taken(x, y, dx, dy) : global grid, walls, P_row, P_col new_cord = [(x-1, y), (x+1, y), (x, y-1), (x, y+1)] dist = 999 for cord in new_cord : try : x, y = new_cord[0], new_cord[1] if grid[x][y] == ...
[ "108krohan@gmail.com" ]
108krohan@gmail.com
0e41f7259e7c213cc0395e630b48520e71c86e08
2817ecd7e48c4decba12ee76e451727c1a6acf14
/likeable/migrations/0014_auto_20141208_0445.py
5afb262123c586c5ed7f2437057677c8fd1d81eb
[]
no_license
schwa-lab/sharingnews
6fcef71c16a03fb3a4a56c11322ba5c8ceb59582
81c87176c7b37511f15a97189f03d90d5074d0fb
refs/heads/master
2021-01-16T21:46:23.108811
2018-02-12T06:33:30
2018-02-12T06:33:30
26,195,626
3
0
null
2018-02-12T06:33:16
2014-11-05T00:39:40
Python
UTF-8
Python
false
false
2,433
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('likeable', '0013_auto_20141118_1405'), ] operations = [ migrations.RenameField( model_name='article', ...
[ "joel.nothman@gmail.com" ]
joel.nothman@gmail.com
712a9df9b98b93b78571cae18afe239adf67fdec
82feaa452d3802cbd0ca3f9fe50fefc06cc135c8
/share_django/wsgi.py
16347c1884e82f1e05a812fdb5ca487a12aa71b6
[]
no_license
callump5/share_django
7725b55e2234917adbd4e41e01489509ce814480
3ab0f6041495834e64093bef47f806253da3f259
refs/heads/master
2020-04-07T06:17:08.506275
2019-07-17T18:39:18
2019-07-17T18:39:18
158,128,970
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for share_django project. It exposes the WSGI callable as a module-level variable named ``application``. For more info on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
[ "clpullinger@gmail.com" ]
clpullinger@gmail.com
6fe883ef08e69ffab4645d6281f4a5a9c0c7b05d
66276325d623c894c9e6344bb161f3c25974a838
/LeetCode/0321.Create-Maximum-Number/Create-Maximum-Number.py
6ed0c43750906e9fae48cb23374e35c03d467696
[]
no_license
htingwang/HandsOnAlgoDS
034b5199b394ca82fd4fb16614ddabb45f3325e2
5b14b6f42baf59b04cbcc8e115df4272029b64c8
refs/heads/master
2021-07-11T15:50:30.944794
2020-09-27T05:08:02
2020-09-27T05:08:02
192,391,446
12
2
null
2019-07-03T04:09:35
2019-06-17T17:36:01
Jupyter Notebook
UTF-8
Python
false
false
1,166
py
class Solution(object): def maxNumber(self, nums1, nums2, k): """ :type nums1: List[int] :type nums2: List[int] :type k: int :rtype: List[int] """ # Time: O((m + n)^3) def maxArray(nums, k): res = [] drop = len(nums) - k ...
[ "puggywang@gmail.com" ]
puggywang@gmail.com
0d466fff5c389faf329f455ca70ce87ce22839c4
6f8741acf8a45bd982bb6df2062aba9c07e487aa
/example/restful/getmarkettrade.py
75a0e2f88c808da9ae96b31207d0b2fbb0d0425c
[ "Apache-2.0" ]
permissive
icemilk00/huobi_Python
1e384ae63ed5ef11c8bda72451d0bbd08f812bd4
0cccd98ed926faa21e0bfc34033e29755788a36e
refs/heads/master
2022-10-16T12:29:28.714765
2020-06-12T06:43:39
2020-06-12T06:43:39
271,703,672
0
0
Apache-2.0
2020-06-12T03:55:14
2020-06-12T03:55:13
null
UTF-8
Python
false
false
297
py
from huobi import RequestClient from huobi.model import * from huobi.base.printobject import PrintMix request_client = RequestClient() trades = request_client.get_market_trade(symbol="btcusdt") if len(trades): for trade in trades: trade.print_object() print()
[ "devin0thinking@gmail.com" ]
devin0thinking@gmail.com
94650cb8666db7ae255827c36d8ac5e41823ab32
778ea34e105c4e5eccbdb15f2f543d714ae70adc
/py/django_site/user_profile/models.py
f266cde7addfe4d777d22a7c84ae8a7392a4d82f
[]
no_license
qai41/tomb
cf7153a7ba8950c94472e9503f25c04149654bb1
ab881fddeaa62ce18967b316a8ffadd0247dcea2
refs/heads/master
2021-01-19T14:17:39.967200
2017-03-31T13:49:37
2017-03-31T13:49:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
from django.conf import settings from django.db import models # Create your models here. class Profile(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL) provider = models.CharField(max_length=32, default = 'insite', null = False) nick = models.CharField(max_length=100) bio = models.Cha...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
ae0c880417b5410307011e58917f51330fc00c78
eba0e40667d6082b5eeefdbaf2862e3f02fd774c
/mr_utils/test_data/optimization_functions/functions.py
c0b6ea26cda1e2789b4c65ae6e0b07fc1b2ecf00
[]
no_license
zongjg/mr_utils
a0ec98ed2d03a6d52d81be8ef108993f92baeee1
08cb43dcf53fd6fddd3304e3514a608842310a34
refs/heads/master
2022-01-04T16:25:41.065177
2019-05-11T20:20:22
2019-05-11T20:20:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
'''Test functions for optimization. See: https://en.wikipedia.org/wiki/Test_functions_for_optimization ''' import numpy as np def quadratic(x): return(x**4 - 3*x**3 + 2) def grad_quadratic(f,x): return(4*x**3 - 9*x**2) def rosenbrock(x,a=1,b=100): '''Rosenbrock's function.''' xp = x[1:] ret...
[ "nicholas.bgp@gmail.com" ]
nicholas.bgp@gmail.com
a1fb84f9eeb195dc6786f383747431e3595f9e08
c398d73045423013a06bad38552d3b900d8aa24f
/code/with_file.py
d35cb1fa2e2665273e54ebe9e6713bf384ff5d54
[ "CC-BY-4.0" ]
permissive
dhellmann/presentation-python-context-managers
db0a593fcc996a7aa1e9ea1e00f04b7a6bb13049
317833c4e35c3637dfc6e1694b0286deaf5ffa8d
refs/heads/master
2020-05-31T13:34:13.835797
2017-06-25T22:04:38
2017-06-25T22:04:38
94,032,061
4
0
null
null
null
null
UTF-8
Python
false
false
165
py
#!/usr/bin/env python3 with open('/etc/hosts', 'r', encoding='utf-8') as f: print(f, '\n') for line in f: if 'apu' in line: print(line)
[ "doug@doughellmann.com" ]
doug@doughellmann.com
29ad0c482911348a45d53297351adfaaf875ba3a
f54070cd3048a3645cb25f301592a904d387a1c9
/python_prgrams/testpython/json1.py
100129694fb669e631ea40ced22fa7e66a1a2b84
[]
no_license
mak705/Python_interview
02bded60417f1e6e2d81e1f6cde6961d95da2a8e
aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d
refs/heads/master
2020-03-22T21:03:34.018919
2019-11-15T08:51:34
2019-11-15T08:51:34
140,653,056
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
import json data = '''{ "name" : "mak", "phone" : { "type" : "intl", "number": "9809285619" }, "email": { "hide" : "yes" } }''' info = json.loads(data) print 'Name:',info["name"] print 'Hide:',info["email"]["hide"]
[ "mak705@gmail.com" ]
mak705@gmail.com
11d8507dd254f9c4ffbbaaddcc9833d654d26235
036c69a0c27cfdc0b0d9d6169caf027635b66325
/leetcode58.py
45adc3b835fdfdd4f7213bb1c283872eef99f392
[]
no_license
Marco2018/leetcode
19b6b2c19452babf0198f8705e0dd1f31c321017
c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1
refs/heads/master
2020-03-23T17:34:09.637831
2020-01-18T11:00:36
2020-01-18T11:00:36
141,865,308
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
class Solution: def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ b=list(s) b.reverse() count=0 isfirst=0 for i in range(len(s)): if b[i]!=" ": isfirst=1 count += 1 ...
[ "513045631@qq.com" ]
513045631@qq.com
d5e40457aaeef7bf0c9979f60f35039e5284b08e
97d5efaf0e15c537d4380ae3b61b88ee3d8e84ab
/MiSeguroVirtualBackend/webclient/urls.py
5b6a1c65b05f3d3dcdb8d4e971c01f196e0fbf82
[]
no_license
dmontoya1/mi-seguro-virtual
af49f0d4492264cea23b6d50a2a2b27c9816e843
6e14fb5e38b3a7192e532a46b842d6a2f80d5ea7
refs/heads/master
2023-05-06T07:43:16.335977
2019-04-03T17:57:32
2019-04-03T17:57:32
371,432,047
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
# from allauth.account.views import SignupView, LoginView, PasswordResetView from django.conf.urls import url from django.contrib.auth import views as auth_views from django.urls import path, include from . import views app_name = 'webclient' urlpatterns = [ path('', views.HomePageView.as_view(), name='home'), ...
[ "dmontoya@apptitud.com.co" ]
dmontoya@apptitud.com.co
0ccd0c46c1883070e3c10298e2e5fb204557f104
36957a9ce540846d08f151b6a2c2d582cff1df47
/VR/Python/Python36/Lib/encodings/aliases.py
292ba8b453d39a78b4543a7f920a42a1ab8cce91
[]
no_license
aqp1234/gitVR
60fc952307ef413e396d31e0d136faffe087ed2b
e70bd82c451943c2966b8ad1bee620a0ee1080d2
refs/heads/master
2022-12-29T15:30:12.540947
2020-10-07T15:26:32
2020-10-07T15:26:32
290,163,043
0
1
null
2020-08-25T09:15:40
2020-08-25T08:47:36
C#
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:9ed4517a5778b2efbd76704f841738c12441ff649eed83b2ea033b3843c9b3d5 size 16127
[ "aqp1234@naver.com" ]
aqp1234@naver.com
2bd0a5a60d97a2ef76d1d5310c1320535c20fc09
e0a0a768a9b8ae798aaab4aacf0cd25a6d78362d
/basics/programs/stringClean.py
ce81cff4d68acec9af5f106e17c9bb2ad1b87000
[]
no_license
anirudhaps/Python_Programs
8c01d93d768d318b596edd2162539091e652ae34
df2dbcf6d773e53e62f182f7d6244735d0507e59
refs/heads/master
2021-05-11T07:12:35.682646
2018-02-05T10:58:39
2018-02-05T10:58:55
118,012,099
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
''' Given a string, return recursively a "cleaned" string where adjacent chars that are the same have been reduced to a single char. So "yyzzza" yields "yza". stringClean("yyzzza") → "yza" stringClean("abbbcdd") → "abcd" stringClean("Hello") → "Helo" ''' def stringClean(s): l = len(s) if l==1: ...
[ "Anirudha.Singh@cavium.com" ]
Anirudha.Singh@cavium.com
d14daea2a394b11a8e41734f7f6b52459744dee8
1c5181d849085f3c56fccd583dce08a476d48575
/sa/models/objectcapabilities.py
c6b4ebf5d1564c27a168030b31c5f134d1988280
[ "BSD-3-Clause" ]
permissive
fantmas2/noc
fec42b276473f8f1e5b7bd06abd4a7eb31440e7b
d43c14f02266b5a4e1fca2db3296cef612d63374
refs/heads/microservices
2021-08-29T17:03:34.512406
2017-12-11T06:48:00
2017-12-11T06:48:00
113,280,875
0
0
null
2017-12-11T06:48:01
2017-12-06T06:59:51
Python
UTF-8
Python
false
false
5,019
py
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Object Capabilities # ---------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # ----------------------------------------------------------...
[ "dv@nocproject.org" ]
dv@nocproject.org
4f41315b0e0255c05d1de4271c5b29088967d14d
2d1da33f82decfa7b65cd587382d3822defe191d
/pycode/excercise.py
6db97db1dadc26beb9eb1777f3e2593ee07a2c35
[]
no_license
AlexDingSZ/myse
385b3d6555656ad2f31e45721c33f7f1e1be9240
0a95e84d585fdaece71731756ce23ee82697a570
refs/heads/master
2020-03-21T02:48:19.139539
2018-06-23T00:32:06
2018-06-23T00:32:06
138,020,371
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
f = open("config.txt","r+") f.truncate(0) f.write("username=xiaoming\n") f.write("password=123456\n") f.write("mobile=15818646666\n") f.close() f = open("config.txt","r+") configdict = {} content_list=f.readlines() for each_line in content_list: spilt_list = each_line.split("=") if spilt_list[0] == "password": ...
[ "test@test.com" ]
test@test.com
285b105bc48db3e14f7a14f05a6c13eec074038b
269200fb43f55d50c08ae82d5219960861912dee
/buffer_builtup_areas.py
f949128f630caf98085f2f590cd2da2a1c76b8d2
[ "MIT" ]
permissive
simberaj/rum-old
b92425a3c314402d74a0856d1d321a73cb59c01e
65d82cbb0532e6751124c4853fd5a1cb1d10b48b
refs/heads/master
2021-06-10T09:39:21.824863
2016-04-25T08:16:01
2016-04-25T08:16:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
import os, common, arcpy TMP_DICED_NAME = 'tmp_diced' TMP_BUFFERED_NAME = 'tmp_buffered' TMP_MERGED_NAME = 'tmp_merged' TMP_FILLED_NAME = 'tmp_filled' TMP_DISSOLVED_NAME = 'tmp_dissolved' MAX_VERTEX_COUNT = 10000 SIMPLIFY_FACTOR = 4.0 with common.runtool(4) as parameters: common.progress('loading parameters and set...
[ "simbera.jan@gmail.com" ]
simbera.jan@gmail.com
155f801c5c132fc7f93f304ca8a9a948fa9e03dd
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03457/s372358234.py
6d8cec95717c94afbf67dbf0421b6163d43f6125
[]
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
350
py
N = int(input()) L = [] for i in range(N): t = list(map(int, input().split())) L.append(t) L.insert(0, [0,0,0]) for i in range(1, N+1): time = abs(L[i-1][0] - L[i][0]) distance = abs(L[i-1][1] - L[i][1]) + abs(L[i-1][2] - L[i][2]) if (time < distance) or (time%2 != distance%2): print('No')...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
171ff5f5a7a2bf007b8f72b9d201ef305faa4f0f
6a4d30fc4850a04f7370f30dbe1b6ffa9f616392
/intake/migrations/0067_purgedcounty_purgednextstep_purgedstatusnotification_purgedstatustype_purgedsubmissiontaglink_purged.py
46ff9a1a3170ee77894c89c5e077608a8ad39470
[ "MIT" ]
permissive
codeforamerica/intake
bb88d63ae914ce6eebeb957b26451dbb9cfaeb88
8755e64c13e2b6f9bef9bbee47011253f20e7e0d
refs/heads/master
2021-11-26T09:51:10.084263
2021-11-15T19:37:23
2021-11-15T19:37:23
57,333,621
51
24
MIT
2021-09-29T00:07:26
2016-04-28T21:03:55
Python
UTF-8
Python
false
false
4,636
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-08-23 17:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('intake', '0066_purgedapplicationnote'), ] operations = [ migrations.CreateM...
[ "bgolder@codeforamerica.org" ]
bgolder@codeforamerica.org
b6c2ad20134b850b1ceb971f2ed0ebb4ead19724
74c8f10bfc82e762d83db424e5d4f4b3681ffba0
/venv/Lib/site-packages/winrt/windows/system/threading/__init__.py
a4ea1bcc6bb9a7f1e13ca1157b8fbb07db942f55
[]
no_license
meghnaraswan/HEARTLabHapticSleeveProject
1e7bd0710c26dad6588f73f6b1f0741c8e31334d
6c2c9a227aaacf34b2205bcb1a856cc70ceccd55
refs/heads/main
2023-07-04T01:51:01.462007
2021-08-17T13:34:43
2021-08-17T13:34:43
390,823,593
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1 import typing, winrt import enum _ns_module = winrt._import_ns_module("Windows.System.Threading") try: import winrt.windows.foundation except: pass class WorkItemOptions(enum.IntFlag): NONE = 0 TIME_SLICED = 0x1 ...
[ "raswan@chapman.edu" ]
raswan@chapman.edu
0c5d48781163107b717ccd0182e87c9647c2c5cd
548f9594d6634b4f814d8ee3fa9ea6fb8c612bda
/tests/api/test_dfs_example.py
d3ad2cee407a130424a797e0951b15d2c53f3c76
[]
no_license
wp-fei/algorithm-base
994a10a94c11a2ccc0e076fc76d5d12612832349
a54d8a192e364b02514cf1119761d0cb41790d9b
refs/heads/master
2023-08-19T06:36:59.142576
2021-10-14T03:48:31
2021-10-14T03:48:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import pytest @pytest.mark.dfs def test(client): input = { "algorithm": "dfs_example", "cacheable": False, # 即使配置了redis缓存也不从缓存中读取,debug用 } resp = client.post_data('/api/algorithm', input) assert resp['code'] == 0 print(resp['data'])
[ "pengxu.hpx@alibaba-inc.com" ]
pengxu.hpx@alibaba-inc.com
250f6f720437252b1e19e00484646868567584c7
e23a4f57ce5474d468258e5e63b9e23fb6011188
/140_gui/pyqt_pyside/_exercises/exercises/Advanced_Python_Scripting/003_Principes_OOP/phone.py
cc333c983221aaf8ef43103b2f008bfca1fe9da5
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
303
py
c_ phone(object ___ - model _ '' color _ 'red' ___ call print 'Call' c_ phone2(phone ___ - s__(phone2, self). - ___ sendMail p.. ___ call __ T..: p.. ____ s__(phone2, self).call p _ phone2
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
4bc497f0f011e582020ffa6a2eff02543d153844
f35d6e00c61907fff66301eb436c25bdf04fcba1
/GANs/wgan-gp/train.py
020d2c5e7697acccec2dc3423dce85c861a1932f
[ "Apache-2.0" ]
permissive
takuseno/nnabla-examples
4907a495ce21969710cb9923a8fb5167db84dad0
070d25078ad3d5458744dbfd390cdd926e20e573
refs/heads/master
2020-09-20T17:31:41.151678
2019-11-21T08:33:35
2019-11-21T08:33:35
224,548,024
1
0
Apache-2.0
2019-11-28T01:42:24
2019-11-28T01:42:23
null
UTF-8
Python
false
false
5,475
py
# Copyright (c) 2019 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "Kazuki.Yoshiyama@sony.com" ]
Kazuki.Yoshiyama@sony.com
3bda504f4574e5893a7956496be56ee7c50675b8
7f87ea9fe9d2ad9b179fa397671b3ccaa153e878
/reports/filters.py
b306793f0bb4ea385348adf2c9fddfbe0ce2608d
[ "MIT" ]
permissive
openpodd/podd-api
9a694763d3e872cad1ca890536eeee7bc39e793e
19af68723cef092615f9b237d0439de9425fdaf6
refs/heads/master
2023-07-26T13:52:31.321523
2023-07-06T03:32:37
2023-07-06T03:32:37
72,618,952
3
5
MIT
2023-02-08T22:31:03
2016-11-02T08:23:55
Python
UTF-8
Python
false
false
1,901
py
from django.contrib import admin from reports.forms import DateTimeRangeForm from reports.models import AdministrationArea class AdministrationAreaFilter(admin.SimpleListFilter): title = 'Administration Area' parameter_name = 'administration_area' template = 'admin/custom_administration_area_filter.html...
[ "lazym0m3nt@gmail.com" ]
lazym0m3nt@gmail.com
82651f74315895e230f82187e8597fdde2fc64b7
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/shared-data/python/tests/robot/test_typechecks.py
15495e344a3c32b05ab1224ccd868c750ddfcb26
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
572
py
import sys import pytest import typeguard from opentrons_shared_data.robot import load from opentrons_shared_data.robot.dev_types import RobotDefinition, RobotType pytestmark = pytest.mark.xfail( condition=sys.version_info >= (3, 10), reason="https://github.com/agronholm/typeguard/issues/242", ) @pytest.m...
[ "noreply@github.com" ]
Opentrons.noreply@github.com
4686c3a64268306977caafe22b2c3b442a69e345
a428f3465eb1f8b038acf96b4f6bdc1d4bb9786b
/Maya_Tools/Developer/Project/Sony/python/Sony_Checking/selectLaminaFaces.py
073ce66c4f8892ba56977692a2dec75b87cfa8a3
[]
no_license
code-google-com/mayatools
1672137562beae17803cd0ea267e0247528ba1a1
f2177440b9e5316fdc2fe4d41bf64b504cb8bab7
refs/heads/master
2020-12-24T14:57:25.711451
2014-11-06T11:46:52
2014-11-06T11:46:52
32,266,328
2
0
null
null
null
null
UTF-8
Python
false
false
2,210
py
description = 'Select lamina face.' name = 'selectLaminaFaces' import maya.cmds as cmds import maya.mel as mel def executeAll(): transformNodes = cmds.ls(type = 'transform') # neu khong chon object nao het tool se kiem tra tat ca object print '-------------------------------------CHECK LAMINA FACES ON...
[ "trungswat@8bed79ed-7f0b-6351-1bc4-4d70257ffec2" ]
trungswat@8bed79ed-7f0b-6351-1bc4-4d70257ffec2
a75ed4e0fdb29175fab2a5507600158beb4c9f48
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/ashvin/icml2020/quinoa/pen_gaussian2.py
4cb9d4687895726e952471a757f7f0e6830f0b24
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
4,336
py
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.demos.source.mdp_path_loader import MDPPathLoader from rlkit.launchers.experiments.ashvin.quinoa_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers....
[ "alexanderkhazatsky@gmail.com" ]
alexanderkhazatsky@gmail.com
3d6a1afbf1bd6c1e6f93bbecb475e5b723b2e0b1
13edd8f1bc3b86fd881f85fbeafe94811392d7fc
/seventh_module/kjops/accounts/migrations/0004_auto_20190531_1352.py
3a0720612f38863ae69b2216e60532c2b8e8b234
[]
no_license
ryan-yang-2049/oldboy_python_study
f4c90c9d8aac499e1d810a797ab368217f664bb1
6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f
refs/heads/master
2022-07-22T23:49:28.520668
2019-06-11T13:26:25
2019-06-11T13:26:25
129,877,980
0
1
null
2022-07-18T17:12:54
2018-04-17T09:12:48
HTML
UTF-8
Python
false
false
582
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-31 05:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20190531_1351'), ] operations = [ migrations.RemoveF...
[ "11066986@qq.com" ]
11066986@qq.com
fdce43a30dbf4b7782d5091d235b5c6dbeb10391
0243290562633726d192b82647ec7e56a4f1e018
/collective/trustedimports/lxml.py
3a8aa26b0ea9150a40566051e861e08781b4907d
[]
no_license
collective/collective.trustedimports
9ca96990566ec23fd13d030a0e09042c2ce084b0
ab631e4dfeb37e8d025710e139ee1dfad1c14b08
refs/heads/master
2023-08-29T05:48:57.548207
2021-10-07T11:44:16
2021-10-07T11:44:16
38,321,524
4
0
null
2022-12-27T15:34:08
2015-06-30T16:53:53
Python
UTF-8
Python
false
false
521
py
from AccessControl import ModuleSecurityInfo import lxml def lxml_xpath(element, xpath, namespaces={}): """Helper method to use lxml xpath TODO: need to remove it when we know how to make the real api work problem is that cpython can't have security declarations? """ if namespaces: resul...
[ "software@pretaweb.com" ]
software@pretaweb.com
4f5ee78d9c8c869066593b49ac5d3f215e4414b8
987ead1eb0877b9bdea16f3ee50bf19d5fe204bd
/Python/返回闭包不要使用任何循环变量.py
d5d0e8a15123ea5900c8e13691fb58b24997b6de
[]
no_license
ZHX1996/project
da62151e32254848a02292a2f9bdb1db17850d67
5a57be55cf173dde7e5a135a9cf1cfbc9a63a158
refs/heads/master
2021-07-15T11:36:02.412231
2020-05-15T08:51:34
2020-05-15T08:51:34
94,512,901
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
def count(): fs = [] for i in range(1, 4): def f(j): def g(): return j * j return g r = f(i) fs.append(r) return fs f1, f2, f3 = count() print f1(), f2(), f3()
[ "1365370292@qq.com" ]
1365370292@qq.com
eede72468a4b9b79e9b8c94ea03a644e09d16c5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02574/s633830370.py
d84bc4d830e68373e09f6dcdd6996386c776aef8
[]
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
442
py
import math N = int(input()) A = list(map(int,input().split())) MAX_INT = 10**6 f1 = [0] * (MAX_INT+1) for a in A: f1[a] += 1 flg = True for i in range(2, MAX_INT+1): cnt = 0 for j in range(i, MAX_INT+1, i): cnt += f1[j] if cnt > 1: flg = False break if flg: print("pairwise coprime") exit() ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9f6a4da99aab55902fc35e257aa29c801b9b4516
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02725/s325324436.py
06692c189728e6bbe78eaa17e52dc0c129bfb583
[]
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
235
py
k , n= map(int, input().split()) a_list = list(map(int, input().split())) diff_list = [] for i in range(n-1): diff_list.append(a_list[i+1]- a_list[i]) diff_list.append(k-a_list[n-1] + a_list[0]) print(sum(diff_list)-max(diff_list))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5b78c546dd6832aba7fe5400e29cafe985af9ad4
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_incident_relation.py
e4e246b43d7a25c0bdcd56c02d3571dcfe14de40
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,367
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
c485978661e7c679eedc307c294f2f6ce53c5bc1
ab79f8297105a7d412303a8b33eaa25038f38c0b
/vit_mrp_hpp/__init__.py
3add4feceec222977461c9c77af64daedca8360c
[]
no_license
adahra/addons
41a23cbea1e35079f7a9864ade3c32851ee2fb09
c5a5678379649ccdf57a9d55b09b30436428b430
refs/heads/master
2022-06-17T21:22:22.306787
2020-05-15T10:51:14
2020-05-15T10:51:14
264,167,002
1
0
null
2020-05-15T10:39:26
2020-05-15T10:39:26
null
UTF-8
Python
false
false
184
py
import master_overheads import mrp # import cutting_order # import makloon_order # import master_type # import product # import report # import conf_cutting # import stock_move
[ "prog1@381544ba-743e-41a5-bf0d-221725b9d5af" ]
prog1@381544ba-743e-41a5-bf0d-221725b9d5af
9a1317a89a2eb0c8a2e2a76bb53f55d370f43457
1c7b5b866b505b7b8c47dce504c5bd27a34d5992
/Leetcode/BinarySearch/69_Sqrt(x).py
64813d0bf503b1347e64f80a499a7d92942f40b7
[]
no_license
ii0/algorithms-6
2dbcb3df504810ea52b41e5129b334f62136d70a
3eddc77d2f3dafffd177f2a9ee28e9850da2f020
refs/heads/master
2022-04-25T23:17:53.332297
2019-09-19T14:52:04
2019-09-19T14:52:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
""" author: buppter datetime: 2019/8/8 12:45 题目描述: 实现 int sqrt(int x) 函数 Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an integer, the decimal digits are truncated and only the integer part of the result is returned. ...
[ "shixintian@aliyun.com" ]
shixintian@aliyun.com
638102c23abc1f96083d54ae9d3f30c9b6b078b8
697f995ab13299ed1bb4439ffe8a646c42c0c3ae
/dataset/Eu/extract_from_epub.py
832d25231cc6992a213202d422b231ea41696847
[]
no_license
poetizer/AugustoDosAnjos
10f052d9e626fe071638574477718b69cfa746db
e368f9dc49a9af4662a3871768bcd5bb9c603c77
refs/heads/master
2020-05-24T16:25:49.733627
2019-05-19T16:35:13
2019-05-19T16:35:13
187,357,589
4
0
null
2019-05-19T16:35:14
2019-05-18T12:52:30
Python
UTF-8
Python
false
false
606
py
import ebooklib from ebooklib import epub from bs4 import BeautifulSoup book = epub.read_epub('Eu.epub') count = 0 raw = [] poemas = {} for item in book.get_items(): if item.get_type() == ebooklib.ITEM_DOCUMENT: if count > 3: soup = BeautifulSoup(item.get_content(), 'html.parser') ...
[ "felipevm97@gmail.com" ]
felipevm97@gmail.com
ddda27af4155a4ca7e123e2861a820bc555e9994
d24e5c08c9649eb41c7d88095677bb4e8e8e0ef6
/examples/nim_orig.py
e8426de7c5337fb18bb1f959665683cded1a2924
[]
no_license
bblais/Game
ecc87f17a55b42e834004008c0164a9d834652f0
45d033de90143b434f1b86763f1aaea623c28526
refs/heads/master
2023-07-06T08:33:30.769244
2023-06-21T10:37:33
2023-06-21T10:37:33
36,812,662
1
1
null
null
null
null
UTF-8
Python
false
false
875
py
from Game import * def initial_state(): return 18 def valid_moves(state,player): if state==1: return [1] elif state==2: return [1,2] else: return [1,2,3] def show_state(state): print("There are ",state," sticks left.") def update_state(state,player,move): ...
[ "bblais@gmail.com" ]
bblais@gmail.com
072488df5abbe2c91ddb415663d4114e2d958ee4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03786/s027884936.py
ad55bbbc2d037ff1ec41266d94850da1b12bd6ca
[]
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
283
py
n = int(input()) L = list(map(int,input().split())) L.sort() from itertools import accumulate li = list(accumulate(L)) cnt = 0 flag = False for i in range(n-1): if li[i]*2 >= L[i+1]: flag =True cnt +=1 else: flag =False cnt = 0 print(cnt+1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6fdac757e05b620f0c4c575c24ef7755b18c28d9
6391446c3b8234507bdad554d2441fd5674161d9
/blog/migrations/0002_auto_20200811_1402.py
6d2b5bc104e460d3ddeaead276b1b2ce64624dae
[]
no_license
mathemartins/superhealthng
6928b3befb25d058c9019afde2c8d53ec6cb6c2c
e8dea5126efad72082bfd1c2ee747708d4435c09
refs/heads/master
2022-12-02T14:42:44.697411
2020-08-11T16:02:55
2020-08-11T16:02:55
285,827,604
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# Generated by Django 2.2 on 2020-08-11 16:02 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterField( model_name='blogpost', name='image', ...
[ "mathegeniuse@gmail.com" ]
mathegeniuse@gmail.com
dc943cae74c4a659a4f81c06c03a26e9d41ce21b
20bd3072fc85aa811853c0d3cf443069e1f57580
/assignment/TCPserver.py
91cdbe715086ec60fd6a1a7e0e79999dda6bd127
[ "MIT" ]
permissive
spencerzhang91/comp5311
8215a1d505ecc12143e56133ee1f712a7592bd0e
307b7498bd81c06a5adb354a6a4176c54b4c494e
refs/heads/master
2021-08-22T20:08:25.028088
2017-12-01T05:41:42
2017-12-01T05:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
from socket import * from datetime import datetime serverPort = 12000 # The changed SOCKET TYPE, first diffenrence compared to UDP socket welcomeSocket = socket(AF_INET, SOCK_STREAM) welcomeSocket.bind(('', serverPort)) welcomeSocket.listen(1) # This line doesn't exist in UDP serverSocket print ("The server is r...
[ "spencerpomme@live.com" ]
spencerpomme@live.com
5f31376a453da342f48fc23590781100c9e32d99
406e50bafdb6b1cd043fa8393c655ca4a496cf8e
/bob/db/pola_thermal/models.py
571f1a983b92639b5fde59fe92d11a84743e4cd9
[ "BSD-3-Clause" ]
permissive
bioidiap/bob.db.pola_thermal
e9d71871c77cbf699b3ee1022ef8ab2016361481
ae6088518ba83961d2e2b5485c8dd4379bf1889c
refs/heads/master
2023-04-17T11:44:29.143049
2020-11-10T10:35:03
2020-11-10T10:35:03
283,998,081
0
0
null
null
null
null
UTF-8
Python
false
false
7,225
py
#!/usr/bin/env python # vim: set fileencoding=utf-8 : # @author: Tiago de Freitas Pereira<tiago.pereira@idiap.ch> # @date: Mon Oct 19 17:41:51 CEST 2015 # # Copyright (C) 2011-2013 Idiap Research Institute, Martigny, Switzerland # # This program is free software: you can redistribute it and/or modify # it under the ...
[ "tiagofrepereira@gmail.com" ]
tiagofrepereira@gmail.com
1bc79f745d697dcdd8e957083db6e219a01e0482
d569398d9ab33f5f5504a8c04916ebefb62897c0
/vinod/Scripts/pip3.6-script.py
f12e247b76af4327aa8d6a52e761073a6a48b4e3
[]
no_license
vinodkumar96/rest_api_4_products
d78bd6426e0b635e420e52cdc36cc08252923824
e920e31a58d043483c50ac52661dc3435093a3f1
refs/heads/master
2020-07-05T00:44:25.576324
2019-08-15T04:29:26
2019-08-15T04:29:26
202,473,347
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
#!"C:\PyCharm 2019\PycharmProjects\rest_api_4_products\vinod\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)...
[ "vinodkumaryv96@gmail.com" ]
vinodkumaryv96@gmail.com
b9c0faa7c45d194917066523beb4e17f0d43668a
b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf
/001146StepikPyBegin/Stepik001146PyBeginсh11p04st06TASK05_20210204_lists_methods.py
6c5136b391534ba6d8d512bfa8b793832d00bd7a
[ "Apache-2.0" ]
permissive
SafonovMikhail/python_000577
5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4
f2dccac82a37df430c4eb7425b5d084d83520409
refs/heads/master
2022-12-08T10:53:57.202746
2022-12-07T09:09:51
2022-12-07T09:09:51
204,713,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,945
py
''' Stepik001146PyBeginсh11p04st06TASK05_20210204_lists_methods.py Google search - 1 На вход программе подается натуральное число nn, затем nn строк, затем еще одна строка — поисковый запрос. Напишите программу, которая выводит все введенные строки, в которых встречается поисковый запрос. Формат входных данных На вхо...
[ "ms33@inbox.ru" ]
ms33@inbox.ru
dde38f1d0ba812d1160a47a9f87c2d03b6c4784a
d4abaedd47e5a3ce3e8aa7893cb63faaa4064551
/codeforce/practice/mishaforest.py
d32b596fd23fb55d5f5a7fe5144b491ad07faf58
[]
no_license
shiv125/Competetive_Programming
fc1a39be10c0588e0222efab8809b966430fe20f
9c949c6d6b5f83a35d6f5f6a169c493f677f4003
refs/heads/master
2020-03-15T19:47:12.944241
2018-05-06T08:18:11
2018-05-06T08:18:11
132,317,356
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
n=input() que=[] deg=[0]*n s=[0]*n for v in range(n): dv,sv=map(int,raw_input().split()) deg[v]=dv s[v]=sv if dv==1: que.append(v) edgelist=set() while len(que)>0: v=que.pop() temp=[v,s[v]] temp.sort() temp=tuple(temp) if temp[0]!=temp[1]: edgelist.add(temp) deg[s[v]]-=1 if deg[s[v]]<1: que.remove(s[v]...
[ "shivdutt@shivdutt-Lenovo-G50-80" ]
shivdutt@shivdutt-Lenovo-G50-80
a87cba20e1e25c481cc4b5ff1beda582796fc4e2
160c090017f34bd05734d304f248779c189e9741
/web_flask/8-cities_by_states.py
dce142366112324ac70f3eb85cf964b8d600e966
[]
no_license
stuartses/AirBnB_clone_v2
5f307b42f586cdd7af2741f3b758eb963ead05ab
7a8e563cbedf865a1069a46478cbe0db3904939a
refs/heads/master
2021-05-18T17:03:29.318661
2020-04-24T19:33:13
2020-04-24T19:33:13
251,329,462
0
1
null
2020-04-02T23:40:40
2020-03-30T14:25:16
Python
UTF-8
Python
false
false
722
py
#!/usr/bin/python3 """ Cities by states Start Execution of Flask web application on 0.0.0.0, port 5000 """ from models import storage from models import State from flask import Flask from flask import render_template app = Flask('web_flask') @app.route('/cities_by_states', strict_slashes=False) def cities_by_states...
[ "stuart.ses@hotmail.com" ]
stuart.ses@hotmail.com
2f1dc3fe61685317c7410cae3fdbabcd9e11ddf5
bca58381b374af7e0a9aef4292c2a6c4982fab1b
/python/2016/HadronizerFragment_cff.py
d09d784fa6571bb1fa9d058d4dda3fe837eb9378
[]
no_license
anderht3/SVJProduction
38c59a4a1efad6dc5d58cbe425dad89f17ddb690
93ab72bb1eb1849d6887beaf9e4d42b973c511b5
refs/heads/master
2023-06-21T19:26:00.975816
2021-02-12T22:19:30
2021-02-13T07:19:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import * externalLHEProducer = cms.EDProducer("ExternalLHEProducer", ...
[ "kpedro88@gmail.com" ]
kpedro88@gmail.com
a2a41eaed6506bf9c5d2adcc5d51bf7341f8e91a
950e195794f2ea03eb9cf16c4ae79d3bf81a0dc8
/pyatv/support/net.py
56c3d16c39c8359a7601d6f0104a792f8536a14c
[ "MIT" ]
permissive
evanreichard/pyatv
ddc303ef1f2be6d66649a257aacd4158a6e89fe2
d41bd749bbf8f8a9365e7fd36c1164543e334565
refs/heads/master
2022-12-01T20:04:27.414789
2020-08-15T05:59:35
2020-08-15T05:59:35
287,406,511
0
0
MIT
2020-08-14T00:25:19
2020-08-14T00:25:19
null
UTF-8
Python
false
false
7,652
py
"""Various network utility helpers.""" import socket import struct import logging import platform from ipaddress import IPv4Interface, IPv4Address from typing import Optional, List import netifaces from aiohttp import ClientSession from pyatv import exceptions from pyatv.support import log_binary _LOGGER = logging....
[ "pierre.staahl@gmail.com" ]
pierre.staahl@gmail.com
f264abad6890e50218f366e47ed00cbf09a390f7
09a7f3a9277b1635e5bc78af2644138aa20cf331
/tests/test_router_prefix_with_template.py
163b213ff845c8be2fd59638adcf2080a9f64d18
[ "MIT" ]
permissive
samuelcolvin/fastapi
9352e6359e7fc000e1c0c68e424768488f0c1377
8ac8d70d52bb0dd9eb55ba4e22d3e383943da05c
refs/heads/master
2023-08-31T07:54:06.149147
2023-04-25T19:12:33
2023-04-25T19:12:33
212,307,119
5
1
MIT
2023-02-23T11:25:58
2019-10-02T10:04:50
Python
UTF-8
Python
false
false
484
py
from fastapi import APIRouter, FastAPI from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.get("/users/{id}") def read_user(segment: str, id: str): return {"segment": segment, "id": id} app.include_router(router, prefix="/{segment}") client = TestClient(app) def test_get...
[ "noreply@github.com" ]
samuelcolvin.noreply@github.com
ca28a094d7b30a4c891af2c343d23d56d5b612cf
4c67693e0a256ff9e2fc37153f0b0ac0a39a7ec3
/pywick/models/segmentation/testnets/mixnet/layers.py
3df3e2c40208084ae505eced6e9f52b6060acee5
[ "Apache-2.0", "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
liuzhidemaomao/pywick
666276fdb7a5ee8168fab3f7c234c0af03f0225c
c42ee9728b8f85decc5b46b090524623d12b0580
refs/heads/master
2023-04-30T09:40:51.329833
2021-05-17T15:46:51
2021-05-17T15:46:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
import torch import torch.nn as nn class Swish(nn.Module): def forward(self, x): return x * torch.sigmoid(x) class Flatten(nn.Module): def forward(self, x): return x.view(x.shape[0], -1) class SEModule(nn.Module): def __init__(self, ch, squeeze_ch): super().__init__() s...
[ "Alexei.Samoylov@digikey.com" ]
Alexei.Samoylov@digikey.com
128f38c84260d83f02067076435879309c57ac0c
429f6ebf6ffc23165b39dbef02245ff62a6e44cb
/client_sdk_python/middleware/normalize_request_parameters.py
df1763e18940ded176190c768fd171b7046d9699
[ "MIT" ]
permissive
jiuen1115/client-sdk-python
4cf28b36ff95a270cff0053d2d2c324686a607d9
3f47871050081b2fdfc2ad2de7da858647baa751
refs/heads/master
2023-01-30T18:38:05.950872
2020-06-20T06:13:07
2020-06-20T06:13:07
306,518,417
0
0
MIT
2020-10-23T03:19:55
2020-10-23T03:19:54
null
UTF-8
Python
false
false
651
py
from eth_utils import ( is_string, ) from client_sdk_python.utils.formatters import ( apply_formatter_at_index, apply_formatter_if, apply_formatters_to_dict, ) from .formatting import ( construct_formatting_middleware, ) FILTER_PARAM_NORMALIZERS = apply_formatters_to_dict({ 'address': apply_f...
[ "hietel366435@163.com" ]
hietel366435@163.com
d52b184aba22f89924846504dd7166ca71d146be
a8c4b5d32941c84b289ed142a486ffd5191f872d
/cogs/Levels/levels.py
627b14aee9f1257a40086b3f884c19d0239a2c3f
[]
no_license
vekst/HatBot
5d54d8895be2827fee0a7a3c200ea802ca6257cc
1f507ceeb239dbb00244d1f42a693e73751c4e57
refs/heads/master
2022-02-27T15:06:06.590367
2019-09-17T00:05:09
2019-09-17T00:05:09
208,917,457
0
0
null
2019-09-16T23:38:09
2019-09-16T23:38:09
null
UTF-8
Python
false
false
2,053
py
import asyncio import logging import pickle import discord from discord.ext import commands import numpy as np from ..utils.cog import BasicCog from .userprofile import UserProfile class Levels(BasicCog): """Cog to quantify member activity in a guild.""" def __init__(self, bot): # init self.bot and...
[ "snaptraks@gmail.com" ]
snaptraks@gmail.com
637b45db768c8efd1d2401df78863516c67d1abb
d6441a0d412e503fee5c72ef28e59440b57aefc2
/webscrap/naver_stock.py
711efb66803faa0487ac85180893a67133d772aa
[]
no_license
hjuju/django-han
6b9bb33f867afe58453965469fc000311cd25579
fbe1ba96ea023a9b57ad8af5e9fbe33c2f3917b7
refs/heads/master
2023-05-07T14:24:22.586130
2021-06-02T09:00:49
2021-06-02T09:00:49
370,548,789
0
0
null
null
null
null
UTF-8
Python
false
false
1,504
py
from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd class Naver_Stock(object): url = 'https://finance.naver.com/item/sise_day.nhn?code=005930&page=1' driver_path = 'C:/Program Files/Google/Chrome/chromedriver' code = '' page = '' date_ls = [] info_ls = [] dt =...
[ "tkackeowjs@naver.com" ]
tkackeowjs@naver.com
b4310a42c7adbaca572f62ade0deb0d4f2f82f56
add74ecbd87c711f1e10898f87ffd31bb39cc5d6
/xcp2k/classes/_print10.py
13897d9c273217cf8a238589165f90aa8d09c33d
[]
no_license
superstar54/xcp2k
82071e29613ccf58fc14e684154bb9392d00458b
e8afae2ccb4b777ddd3731fe99f451b56d416a83
refs/heads/master
2021-11-11T21:17:30.292500
2021-11-06T06:31:20
2021-11-06T06:31:20
62,589,715
8
2
null
null
null
null
UTF-8
Python
false
false
582
py
from xcp2k.inputsection import InputSection from xcp2k.classes._msd_kind1 import _msd_kind1 from xcp2k.classes._msd_molecule1 import _msd_molecule1 from xcp2k.classes._displaced_atom1 import _displaced_atom1 class _print10(InputSection): def __init__(self): InputSection.__init__(self) self.MSD_KIN...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e651de0832419cfb6f49d6bb2240ac0e38161714
377420d718094a37da2e170718cecd80435d425a
/google/ads/googleads/v4/errors/types/ad_group_ad_error.py
1abce05106555daf87913576bf9ddaa90a5600f4
[ "Apache-2.0" ]
permissive
sammillendo/google-ads-python
ed34e737748e91a0fc5716d21f8dec0a4ae088c1
a39748521847e85138fca593f3be2681352ad024
refs/heads/master
2023-04-13T18:44:09.839378
2021-04-22T14:33:09
2021-04-22T14:33:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,488
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 o...
[ "noreply@github.com" ]
sammillendo.noreply@github.com
694daeafe3e0bc504d443a2e45f1b4088d355128
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_207/ch86_2020_04_29_12_40_30_360363.py
acb55583525db9aad1680781efee3af78403cb3e
[]
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
419
py
with open ('arquivo.csv', 'r') as arquivo_csv: leitura = arquivo_csv.read() #lê o arquivo e o transforma em uma String leitura = leitura.replace (',', '\t') #substitui as vírgulas por \t e, assim, transforma CSV em TSV #obs.: eu poderia fazer em 2 etapas # 1- string.split(','): pega a string, separa os dados pela...
[ "you@example.com" ]
you@example.com
7e5be1912a4715b484cb5468f6aeb535fbe0730b
c0c8aeb5aaf08925d8c9e1d660b02c89cbc7ad71
/Algorithms/Easy/496. Next Greater Element I/answer.py
dbaeb4d8f23a34cfd065ef18494dbe96073d9da0
[ "Apache-2.0" ]
permissive
kenwoov/PlayLeetCode
b2fdc43d799c37683a9efdc31c4df159cf553bf5
4012a2f0a099a502df1e5df2e39faa75fe6463e8
refs/heads/master
2022-12-17T05:54:22.775972
2020-09-26T14:08:43
2020-09-26T14:08:43
214,839,611
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
from typing import List class Solution: def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]: N1 = len(nums1) N2 = len(nums2) res = [-1] * N1 for i in range(N1): n1 = nums1[i] idx = nums2.index(n1) while idx < N2: ...
[ "kenwoov@outlook.com" ]
kenwoov@outlook.com
ce7f8b2d21ad2e26e352a099e321cbf8ad42cf9a
002939b2d840d3f6eaa4e12353576217369215bf
/setup.py
5d9a087accaf764125ea84fd5bec510093ca1f48
[ "MIT" ]
permissive
earmingol/cobra_utils
8811ac80053007ebdce6be6ee0a8e3699ca19c44
c04d2cd0aa13da247843ad51bd1fe2d638d7af50
refs/heads/master
2020-06-01T08:44:57.216232
2020-03-13T07:08:03
2020-03-13T07:11:14
190,720,239
1
1
MIT
2019-08-15T23:28:56
2019-06-07T09:40:24
Jupyter Notebook
UTF-8
Python
false
false
2,962
py
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2019--, COBRA utils development team. # # Distributed under the terms of the MIT License. # # The full license is in the file LICENSE, distributed with this software. # ---------------------------------...
[ "earmingol14@gmail.com" ]
earmingol14@gmail.com
6ac21754785812f6dc6efa0b737c30ee7d7aa35e
dafe5f34649d543ae09b55f381ecc97eb02d817f
/commandcon/actions/simple.py
9f3d1c528f708f490f4f25ff6ecfc1ec6968ca9d
[]
no_license
devdave/DevDave-s-miscellanious-bucket
64c46c88202cb989df23ea4da5799c34124189e3
8e66cb6d2f06b86d458519a793b305a5e89b2179
refs/heads/master
2016-09-06T08:48:24.436639
2011-07-27T17:04:28
2011-07-27T17:04:28
1,387,778
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from lib.statemachine import (StateMachine, console) @console def simple(*args, **kwargs): """ A simple example of how this works """ print "I am a silly little simple function!" print "K, I am done now!" simple.summary = "A simple action"
[ "devdave@ominian.net" ]
devdave@ominian.net
0efa8352e71f9335f259fbc0da5f48e4cdd69b95
8261e5d7497ed5625626c5bb727d58dce6b37f5c
/migrations/versions/3be65e491a23_.py
66696473e28bca727089efd74494dcbc578daa2a
[]
no_license
zhonglimei001/shop
d66ebf987d15ddaf6abf262fa8cfc10ceb4c53e3
76c7ea8c021ef5fe1f3dfa12fc120a79d1fc7e74
refs/heads/master
2020-12-04T01:07:50.034728
2018-03-08T07:12:53
2018-03-08T07:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
"""empty message Revision ID: 3be65e491a23 Revises: 095fa00dbf00 Create Date: 2018-02-24 15:55:58.191787 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3be65e491a23' down_revision = '095fa00dbf00' branch_labels = None depends_on = None def upgrade(): # ...
[ "admin@example.com" ]
admin@example.com
ed85d6ca8535762bec4478d2cac80783c2407697
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_RelativeDifference/trend_MovingAverage/cycle_30/ar_12/test_artificial_32_RelativeDifference_MovingAverage_30_12_100.py
7451f32634edebf6b2ff4f85d954041858f464e9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
279
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 100, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
9afd5428785899aa0aa5e0ab6fe34d3739feed1c
e42873a5cff6d901f08bccd0bfde9cc9e5bebd3e
/service.py
c5a16d9d766b076790497096451454b531e3fdcf
[]
no_license
luanfonceca/waffle2shields
bbf5c06ed07e54f66c8c74e0f940d4f9a724027b
3db8cff046ff4428bfff354e88ff287e04255218
refs/heads/master
2020-05-19T14:16:38.270913
2014-06-28T17:42:46
2014-06-28T17:42:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
from urllib2 import urlopen from re import findall class Service(object): shields_url = ('http://img.shields.io/badge/' '{0.subject}-{0.status}-{0.color}.svg?style={0.style}') def __init__(self, **kw): self.data = kw self.html = urlopen(self.service_url.format(**self.data))...
[ "luanfonceca@gmail.com" ]
luanfonceca@gmail.com
70da6abf13967b4a5745e85788ea21a853959876
2fc35577f563aacae180525412a1af25cb1a829e
/tests/test_multiepisode_filenames.py
6de2b00445469d29528754a2b596dc42d431f8c4
[ "Unlicense" ]
permissive
lahwaacz/tvnamer
cce2bc9ee107d332de61d55aa97a881b56bf6a5c
3d67701e39f4368cad96004c25d96e1b10638806
refs/heads/master
2021-01-17T23:06:12.542238
2013-06-07T16:53:01
2013-09-14T15:18:22
7,838,655
0
0
null
null
null
null
UTF-8
Python
false
false
2,336
py
#!/usr/bin/env python """Tests multi-episode filename generation """ from functional_runner import run_tvnamer, verify_out_data from nose.plugins.attrib import attr @attr("functional") def test_multiep_different_names(): """Default config - two different names are joined with 'multiep_join_name_with', 'multiep_...
[ "dbr.onix@gmail.com" ]
dbr.onix@gmail.com
b2e1202e467fa480d30cade9e8fd2dca7457f695
abc72a2f2072ab7a5a338e41d81c354324943b09
/tarefa10/testar_codificar.py
a370933b5a00368978484215bd21f9a2ffc89af5
[]
no_license
gigennari/mc102
a3d39fd9a942c97ef477a9b59d7955f4269b202a
fce680d5188a8dfb0bc1832d6f430cbcaf68ef55
refs/heads/master
2023-04-05T01:40:58.839889
2020-07-27T20:33:56
2020-07-27T20:33:56
354,130,720
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
from modulo import codificar def testar_codificar(): # crie um exemplo de imagem pequena para testar largura = 8 altura = 6 imagem = [ ['0','0', '0', '0', '0', '0', '0', '0'], ['1','1', '1', '1', '0', '0', '0', '0'], ['1','1','1','1','1','1','1','1'], ['1','1','1','1','1...
[ "g198010@dac.unicamp.br" ]
g198010@dac.unicamp.br
0970a80805cc795885600f2ad1e2e75e928774c8
710089772c9864cfd207b26d54a1b91fc8d52713
/albums/views.py
a1eaf296a63e5f409508ee1da74a40300efb2023
[]
no_license
linusidom/booksproject
94a4b7db7db9cc1a8fea0d7f71bd732f322a5d50
736785888b3b12d53fd954deb539ca8620bc1c1b
refs/heads/master
2022-12-10T05:23:57.661939
2020-05-11T04:02:31
2020-05-11T04:02:31
145,701,406
0
0
null
2022-12-08T09:42:41
2018-08-22T11:44:23
Python
UTF-8
Python
false
false
422
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render # Create your views here. from django.views import generic from albums.models import Album class IndexTemplateView(generic.TemplateView): template_name='albums/index.html' class AlbumListView(generic.ListView): mo...
[ "linusidom@gmail.com" ]
linusidom@gmail.com
5132f741dcf2e079876856d4c99a1ac20a817139
99fa23c8c80c8932fc0d414b08f6b5463ab799b2
/machina/apps/forum_permission/abstract_models.py
c0d7e93c1a1ed22bb83034f048dfdc6a05224556
[ "BSD-3-Clause" ]
permissive
danielmcquillen/django-machina
2ee066074eab9fac3ce9ee8ea8a0c1601d5351ea
08aa3a58a7889b0d5a5bcd6c24965c524762c7a6
refs/heads/master
2023-03-16T11:11:17.027524
2019-03-03T04:05:09
2019-03-03T04:05:09
147,756,090
0
0
BSD-3-Clause
2023-03-03T15:29:01
2018-09-07T01:52:31
Python
UTF-8
Python
false
false
5,175
py
""" Forum permission abstract models ================================ This module defines abstract models provided by the ``forum_permission`` application. """ from django.conf import settings from django.contrib.auth.models import Group from django.core.exceptions import ValidationError from django.db i...
[ "morgan.aubert@zoho.com" ]
morgan.aubert@zoho.com
35bad95da8df09b0d8447400d32edfb61c455161
d63222abe326a3c8debd59bb8d24cb7eab3de09e
/leetcode/google/451/l451.py
5e8113980fcfc929514cf113704650648541e24a
[]
no_license
tariqrahiman/pyComPro
91f47e93eb0a077d489659fcf0a75d5c1a65fc17
86ec13f47506a2495ab6b6bbb58d4e8b2a21538b
refs/heads/master
2022-02-10T04:15:40.194828
2019-06-16T10:22:38
2019-06-16T10:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
class Node(object): """this is the node of suffix/prefix trie""" def __init__(self, letter, height, parent, index): self.letter = letter self.children = dict() self.parent = parent self.height = height self.index = index def _print(self): print self.letter, s...
[ "alexsolbiati@hotmail.it" ]
alexsolbiati@hotmail.it
9334f827a86342faafa3d9c290775b93e35a294d
b9df0ebcd6d188e9561537ed5f914d58c02c20ac
/Automate The Boring Stuff/Dictionaries.py
1bed2f0589aac307840e935c77fe65e35f805aee
[]
no_license
ScarletMcLearn/PySnips
690fd0028fe1031bff563fad4c45edc6d5eece41
25cae07103b93eac54bb0c183f6d6540f11970f1
refs/heads/master
2021-01-13T09:03:39.226245
2016-10-06T15:14:53
2016-10-06T15:14:53
70,165,839
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
states ={ 'Oregon' : 'OR', 'Florida' : 'FL', 'California' : 'CA', 'New York' : 'NY', 'Michigan' : 'MI' } cities = { 'CA' : 'San Francisco', 'MI' : 'Detroit', 'FL' : 'Jacksonville' } cities['NY'] = 'New York' cities['OR'] = 'Portland' print '-' * 10 print "NY State has: ", cities['NY'] print "OR State has:...
[ "noreply@github.com" ]
ScarletMcLearn.noreply@github.com
81605a938174ea71e64fc10e08ade73c0dfa2433
2316ce8a21d44a5d09284968ef42530633dc10d2
/sample_code/ep001/rev08/hello_test.py
dda01f88827f2ee2d344d988970cfeae37318c27
[]
no_license
AlexanderWinkelmeier/explains
160de2c41fc5fc0156b482b41f89644dc585c4f3
d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc
refs/heads/master
2023-07-30T04:55:31.234482
2021-09-15T02:59:42
2021-09-15T02:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
import hello import pytest def test_main(capsys): hello.main(['Anthony']) out, err = capsys.readouterr() assert out == 'Hello Sexy Person Anthony\n' assert err == '' def test_main_error_with_empty_string(capsys): with pytest.raises(SystemExit) as excinfo: hello.main(['']) retv, = ...
[ "int3l@users.noreply.github.com" ]
int3l@users.noreply.github.com
38a25b5f7fab5f0326b60d4e03a3dd92207d4395
a3d2620bbf25002c7b182600c2e40f8f06555e91
/its/bevolist/views.py
df8ca48e3f1cc3bc98e87904fdfbc4e010d2ddd4
[]
no_license
alejo8591/backend-lab
782736a82933f705f825a1194369bfe13e86c0ec
4a02a9552083a7c877e91b0f8b81e37a8650cf54
refs/heads/master
2016-09-03T03:53:43.878240
2015-11-26T06:35:38
2015-11-26T06:35:38
3,911,349
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
from django.shortcuts import render_to_response, get_object_or_404 from django.template import Context, RequestContext from bevolist.models import * def index(request): items = Item.objects.all() context = Context({'title' : 'Bevolist Site', 'items' : items}) return render_to_response('bevolist/index.html', context...
[ "alejo8591@gmail.com" ]
alejo8591@gmail.com
3fe8941d8762e075941abf3841b10d1dd1933e65
8b942cbd6a0da0a61f68c468956ba318c7f1603d
/stack/0496_next_greater_element_1.py
993d65c2a689554c28dbff5b46861af9dd22232c
[ "MIT" ]
permissive
MartinMa28/Algorithms_review
080bd608b0e0c6f39c45f28402e5181791af4766
3f2297038c00f5a560941360ca702e6868530f34
refs/heads/master
2022-04-13T03:56:56.932788
2020-04-06T03:41:33
2020-04-06T03:41:33
203,349,402
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
class Solution: def nextGreaterElement(self, nums1: list, nums2: list) -> list: if not nums1 or not nums2: return [] next_greater = {} i = 1 # monotonous stack following an ascending order from top to bottom mono_stack = [nums2[0]] for nu...
[ "1135485226@qq.com" ]
1135485226@qq.com
bf6b699e12e0e4d31b48a876c40d482dcb326017
f889bc01147869459c0a516382e7b95221295a7b
/swagger_client/models/body_11.py
6b7183e4576ed032ba153d8d9e00722d831e5a7f
[]
no_license
wildatheart/magento2-api-client
249a86f5c0289743f8df5b0324ccabd76f326512
e6a707f85b37c6c3e4ef3ff78507a7deb8f71427
refs/heads/master
2021-07-14T16:01:17.644472
2017-10-18T13:33:08
2017-10-18T13:33:08
107,412,121
1
1
null
null
null
null
UTF-8
Python
false
false
4,368
py
# coding: utf-8 """ Magento Community No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import...
[ "sander@wildatheart.eu" ]
sander@wildatheart.eu
48f07fbc0f450213b6a2760f5e73bd44abf22559
2c872fedcdc12c89742d10c2f1c821eed0470726
/pbase/xiangmu/xueshengluru/student_menu.py
65bb3a8922bdd0cd3c1d07d15ee3cbf46f367404
[]
no_license
zuigehulu/AID1811
581c3c7a37df9fa928bc632e4891fc9bafe69201
10cab0869875290646a9e5d815ff159d0116990e
refs/heads/master
2020-04-19T16:33:04.174841
2019-01-30T07:58:24
2019-01-30T07:58:24
168,307,918
1
0
null
null
null
null
UTF-8
Python
false
false
623
py
# student_menu #添加界面 def jiemian(): print("1.添加学生信息") print("2.删除学生信息") print("3.查找学生信息") print("4.显示全部信息") print("5.从文件中读取数据(s1.txt)") print("7.退出(q)") #显示里的菜单 def xianshi_xueshengxinxi_jiemian(L): qingping() print("1.按成绩从大到小显示") print("2.按成绩从小到大显示") pri...
[ "442315617@qq.com" ]
442315617@qq.com
21afc546f5d49c873297b4cf9a3d02c48bd9c77b
204c5937cdea475f5c3dafde6d770a74ae9b8919
/leetcode/166.py
f3b3f7fd8e9d95e0d67cbfba851885134a39a6aa
[]
no_license
mlz000/Algorithms
ad2c35e4441bcbdad61203489888b83627024b7e
495eb701d4ec6b317816786ad5b38681fbea1001
refs/heads/master
2023-01-04T03:50:02.673937
2023-01-02T22:46:20
2023-01-02T22:46:20
101,135,823
7
1
null
null
null
null
UTF-8
Python
false
false
508
py
class Solution(object): def fractionToDecimal(self, a, b): sign = '' if a * b >= 0 else '-' a, b = abs(a), abs(b) x, y = divmod(a, b) ans = sign + str(x) ans += '' if a == 0 or y == 0 else '.' now, mp = '', {} while y != 0: if y in mp: ...
[ "njumlz@gmail.com" ]
njumlz@gmail.com
43342496d40c3b902c926f5b0220fb5a6cfe1e3a
6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9
/Algorithm/Swea/D3_2814.py
0d4f9da34360f8c33991572a731f629c84fc5057
[]
no_license
hongyong3/TIL
36d031c0da9e3e6db3eebb977bd3e12df00a849f
7f1492128e957a78fc95b255f4f7f2978161e471
refs/heads/master
2023-08-19T09:16:03.231757
2023-08-18T09:38:47
2023-08-18T09:38:47
162,100,258
1
0
null
2023-02-11T00:52:32
2018-12-17T08:42:42
Jupyter Notebook
UTF-8
Python
false
false
2,068
py
import sys sys.stdin = open("D3_2814_input.txt", "r") # def solve(v, len, visit): # global count # visit[v] = 1 # for i in range(N): # if i == v: continue # if visit[i]: continue # if not visited[v][i]: continue # solve(i, len + 1, visit) # visit[i] = 0 # if len...
[ "chy66822495@gmail.com" ]
chy66822495@gmail.com
34e3aa19e4324fb5390d78d0e350853314a7ab39
42a1d0e12074d0831e27730d3041cb9218a82d3d
/src/Caremore_server/socket_tools.py
c3875c49b7871af0008237ae1a2700c09787fdc2
[ "Apache-2.0" ]
permissive
wolfbolin/Caremore
28a40a7cb247bce6b9f5a672de0f3004a612a13a
a38c24a9c0321ec442cff94110699d52466753dc
refs/heads/master
2021-03-16T08:32:28.014649
2018-03-19T12:10:03
2018-03-19T12:10:03
102,356,479
1
0
null
null
null
null
UTF-8
Python
false
false
1,979
py
import json import socket import struct import commons def recv_msg(sock): try: json_len = recv_all(sock, 4) json_len = struct.unpack(commons.byte_order, json_len)[0] data_len = recv_all(sock, 4) data_len = struct.unpack(commons.byte_order, data_len)[0] json_msg = recv_all(...
[ "wolfbolin@foxmail.com" ]
wolfbolin@foxmail.com
0d1d7d74cfbe1e7f4d9698f80856415351f5cbcd
23305d42181a8640198b7057871e399cb179ad90
/generate.py
da34ff856e67400ab1d6267fada583da7908d80b
[]
no_license
cpllab/tinylstm
9fef1b159c710cfda073d4631937ded914b4945f
319ad77404c932509eed7203189d47d4498467d9
refs/heads/master
2022-08-05T13:28:15.934127
2020-05-25T16:15:47
2020-05-25T16:15:47
225,700,082
0
0
null
null
null
null
UTF-8
Python
false
false
3,717
py
############################################################################### # Language Modeling on Penn Tree Bank # # This file generates new sentences sampled from the language model # ############################################################################### import argparse import numpy as np import torch f...
[ "jon@gauthiers.net" ]
jon@gauthiers.net
7cd9e35e605fcd4c6ad9fe458b4c0f268e9e25ad
42643ad30817f4bd3415f00854d3e284de76a459
/097 angel_2/angel_app.py
0df46af227cb114a378f310117ce74ec96c86a39
[]
no_license
wqqsukida/Python_road
3506ccd8897ef22e40d205009eef7080df79858d
ae83fd988cf1fd7be374707c35a11b3713d4e6b7
refs/heads/master
2020-08-25T04:28:44.228436
2019-10-21T14:54:25
2019-10-21T14:54:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
from flask import Flask, request from serv.content import content from serv.devices import devices from serv.friends import friend from serv.uploader import uploader from serv.users import users app = Flask(__name__) app.debug = True app.register_blueprint(users) app.register_blueprint(content) app.register_blueprint...
[ "958976577@qq.com" ]
958976577@qq.com
3e02997236a6497f6593d68bef727023ba55a44b
45d5842d1258b50def9ad89db6bccf6406e248db
/examples/hos_internal/Tune_res/test/test_augmentation.py
2bf45effda43fa2e55d6478dec75d54fff428298
[ "Apache-2.0" ]
permissive
LanLi2017/Holoclean_im
2371a861f6f1f3e0d0e331b40c36e9829790e8e4
07a8dee921ffa4527066a7c4baa7753a53853089
refs/heads/main
2023-01-29T14:03:33.703179
2020-12-14T02:52:27
2020-12-14T02:52:27
307,507,663
0
0
null
null
null
null
UTF-8
Python
false
false
5,247
py
import glob import math import os from pprint import pprint import pandas as pd import numpy as np grd = '../Holoclean_test_input/hospital.csv' # compared with the augmented csv file df_grd = pd.read_csv(grd) # x_y = [[x, df_grd.columns[y]] for x, y in zip(*np.where(df_grd.values))] # pprint(x_y) # total_cells = grd...
[ "lilan.scut@gmail.com" ]
lilan.scut@gmail.com
d875b7c818bde50dfa5f97d8ecfdb1183a855624
dd143f56fbceecf039d139e2bc07f27f4837be82
/schedule/views.py
af2f1e2a09edc675fb3afc6c9dacc44a23bac828
[]
no_license
maxweaker/OVSMS-backend
1468924b109bb8717f6337664c0601d2af18ea7c
7372e40e62c6eaf0c9fd309a47b798c1795e6007
refs/heads/master
2023-06-05T11:46:48.472605
2021-06-18T14:48:49
2021-06-18T14:48:49
378,168,229
0
0
null
null
null
null
UTF-8
Python
false
false
4,607
py
from django.shortcuts import render import simplejson from django.http import JsonResponse from traffic_control.models import Line,Frequency,Car from man_management.models import Driver import django.utils.timezone import datetime from django.db.models import Q # Create your views here. #{userType,newSchedule:{num,lin...
[ "455436082@qq.com" ]
455436082@qq.com
3f1f4de8b5d2e9aff62ee263159114380ebe52d5
d1caa692fc12a8a87ceeb9107f9a9e934e4ff2ba
/server/socket_server.py
02776b08ce7424a38c78a1b57de5df2f6bc7ce23
[ "Apache-2.0" ]
permissive
YuhaoCheng/IoT-Project
3a039422b2a73e5764cc5f943d56cd22341702d6
26b4473c2366b00ba7606c6782de95fea250296b
refs/heads/master
2022-12-27T19:51:50.695638
2019-10-02T02:30:28
2019-10-02T02:30:28
115,683,695
7
1
null
null
null
null
UTF-8
Python
false
false
3,894
py
import socket import json import threading import pymysql import sys sys.path.append(".") import node_time def handle_receive(conn): data = conn.recv(1024) result = str(data, encoding='utf8') print(result,type(result)) # the type of result is String print('-------------------------') json_str = js...
[ "446358161@qq.com" ]
446358161@qq.com