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
72d848927f5fe5827db31d54be4d5390ca38aea0
99d8895888ab093b06a3ba03594f2a74cb97758f
/Scripts/Course2/WEEK3/example1.py
9c3949e41f3f01121e0cc6a7a474e5206b4518e8
[]
no_license
AlekseyAbakumov/PythonLearn
4c35efeb0996f4a3221f228b57e30d595bb62637
fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5
refs/heads/master
2023-03-23T20:12:42.603817
2021-03-16T18:22:48
2021-03-16T18:22:48
265,309,409
1
1
null
null
null
null
UTF-8
Python
false
false
3,910
py
# применяем паттерн ДЕКОРАТОР # описываем животных, которые живут в нашей игре # чтобы не описывать каждый вид, применим паттерн декоратор from abc import ABC, abstractmethod class Creature(ABC): # принимать пищу @abstractmethod def feed(self): pass # двигаться @abstractmethod def m...
[ "a-starostin@mail.ru" ]
a-starostin@mail.ru
57ef697e1db39c56937c44d038de16b825c9294e
a766f6ee10be86bd33d2cfc06c19d94247b6ad08
/tests/test_package_loading.py
4f3717bc120eabfbcef18b42db5e7b4b8f8e9db6
[ "Apache-2.0" ]
permissive
ejfitzgerald/agents-aea
3b07db6c1f9f5fc8fded4ce497a2283ae88f0b84
6411fcba8af2cdf55a3005939ae8129df92e8c3e
refs/heads/master
2022-12-07T05:53:55.379150
2020-08-14T15:22:19
2020-08-14T15:22:19
288,688,666
0
0
Apache-2.0
2020-08-19T09:24:07
2020-08-19T09:24:06
null
UTF-8
Python
false
false
1,726
py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
[ "marco.favorito@gmail.com" ]
marco.favorito@gmail.com
1aaf459c00444f2ed743afbb6c471239b6c9f359
b562bd43d767102e0eae81ae8e4c07ea05d81d5e
/apps/core/context_processors.py
cede0bd0e046e7c7caecb0af6909a5f7d3fea2d9
[]
no_license
bkawan/django-simple-blog-system
3464a96b81e6928daa60d5c8d90d2f8137718d30
d08947adaef4fb57d093e8616399218671dd9c79
refs/heads/master
2021-01-22T05:01:10.498140
2017-11-06T05:08:15
2017-11-06T05:08:15
102,276,913
1
0
null
null
null
null
UTF-8
Python
false
false
683
py
from django.conf import settings from config.settings import COMPANY_NAME, COMPANY_DESCRIPTION if settings.DEBUG: from config.settings.dev import ( HTTP_HOST_NAME_WITH_PROTOCOL, FACEBOOK_APP_ID, ) else: from config.settings import ( HTTP_HOST_NAME_WITH_PROTOCOL, FACEBOOK_AP...
[ "bikeshkawang@gmail.com" ]
bikeshkawang@gmail.com
a044acc20d60cdf2288f94791f53537e4e2629aa
86d499787fb35024db798b0c1dbfa7a6936854e9
/py_tools/example/psutil_demo/psutil_test.py
56dc92328b7900a86404fa9968bc01d8cdaaa6c5
[]
no_license
Tomtao626/python-note
afd1c82b74e2d3a488b65742547f75b49a11616e
e498e1e7398ff66a757e161a8b8c32c34c38e561
refs/heads/main
2023-04-28T08:47:54.525440
2023-04-21T17:27:25
2023-04-21T17:27:25
552,830,730
0
1
null
null
null
null
UTF-8
Python
false
false
609
py
import psutil cpu_login_nums = psutil.cpu_count() print(cpu_login_nums) cpu_login_nums = psutil.cpu_count(logical=False) print(cpu_login_nums) # cpu性能 print(psutil.cpu_times().idle) print(psutil.cpu_times()[2]) # 内存信息 print(psutil.virtual_memory()) print(psutil.virtual_memory().percent) # 虚拟内存信息 print(psutil.swap_mem...
[ "gogs@fake.local" ]
gogs@fake.local
50bc2d44a87fc0f289e2115e2d5248690692123f
f7147dcfcc1504dea9b4143094ea7cd3b6c2e417
/dashboard_api/models.py
c9744248c4813fcc748fdf2b1c8a0e286dfacf2d
[ "MIT" ]
permissive
hjlarry/flask-vue-cms
b6e534bd7eb50a0b781a636f03118377c4df0c4b
3c7bc5d2c0fe743fe6df9d7c35328925e28374fa
refs/heads/master
2023-03-22T19:58:01.055255
2023-03-13T06:41:14
2023-03-13T06:41:14
124,205,311
63
20
MIT
2022-12-17T07:49:52
2018-03-07T08:38:08
Vue
UTF-8
Python
false
false
3,379
py
import datetime from sqlalchemy import ForeignKey, String, func, Table, Column, Integer, Boolean from sqlalchemy.orm import Mapped, mapped_column, relationship from werkzeug.security import generate_password_hash, check_password_hash from ext import db class Base(db.Model): __abstract__ = True id: Mapped[in...
[ "hjlarry@163.com" ]
hjlarry@163.com
5cf7af548b9f88b3465760fcac926980b50d1c12
1610e03bc2b9b8419e11824079de3c8636f3a039
/0x0B-python-input_output/8-load_from_json_file.py
02dba92f46d50124bb3f9e0b918fe51b9a3461e0
[]
no_license
Andresmelek/holbertonschool-higher_level_programming
12afc1d94b1cd8dcdcfbeb1f9dc819999506afb8
a1969506f346b808450e33f91d37790732ee7c57
refs/heads/master
2020-09-28T23:40:49.866556
2020-05-14T17:52:53
2020-05-14T17:52:53
226,893,592
0
1
null
null
null
null
UTF-8
Python
false
false
220
py
#!/usr/bin/python3 import json """ function that creates an Object from a “JSON file”: """ def load_from_json_file(filename): with open(filename, 'r', encoding='UTF8') as file: return (json.load(file))
[ "candres.isaza@gmail.com" ]
candres.isaza@gmail.com
d5189d57d627cabcb3f3dc9163ef4757a68b093f
c7e028d71b5dd72eb18b72c6733e7e98a969ade6
/src/algoritmia/semirings/viterbi.py
807d0ab416c59c42bf39ce3e221a457f4e1f7e26
[ "MIT" ]
permissive
antoniosarosi/algoritmia
da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f
22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b
refs/heads/master
2023-01-24T06:09:37.616107
2020-11-19T16:34:09
2020-11-19T16:34:09
314,302,653
8
1
null
null
null
null
UTF-8
Python
false
false
361
py
from algoritmia.semirings.interfaces import IIdempotentSemiRing class _ViterbiSemiRing(IIdempotentSemiRing):#[class zero = property(lambda self: 0.0) one = property(lambda self: 1.0) def plus(self, left, right): return max(left, right) def times(self, left, right): return left * right Vite...
[ "amarzal@localhost" ]
amarzal@localhost
46e89189a9d68aaad7c1a3794a0a8eac5bfc5842
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03160/s482722634.py
98275351303d48da2225abec3822d70ce0e9bbc5
[]
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
263
py
n=int(input()) H=list(map(int,input().split())) INF=float('inf') dp=[0]*(n+1) dp[0]=INF dp[1]=0 for i in range(2,n+1): if i-3<0: dp[i]=dp[i-1]+abs(H[i-1]-H[i-2]) else: dp[i]=min(dp[i-1]+abs(H[i-1]-H[i-2]),dp[i-2]+abs(H[i-1]-H[i-3])) print(dp[n])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
57c28b899a05935f45f99b3018eb7ad1a8ca502c
eece8cbe3641df4ba7e8934d3fc0ba8a481dd5c9
/LesFuncties/Oefeningen.py
6d8f9be5ae83aa74d8332dd571f7be41ab30064b
[]
no_license
svspeybr/lessons
d66b676719f54da9092484dbe0f747774f6bd474
8d1721ced44f42c7a2aad7e7c6c7be73f6dd1a74
refs/heads/master
2023-07-09T14:48:06.844516
2021-08-24T14:53:15
2021-08-24T14:53:15
399,497,687
0
0
null
null
null
null
UTF-8
Python
false
false
1,985
py
# module voor het getal pi te verkrijgen (en functies als sin(), cos()...) import math def cilinderVol(r, h): return math.pi * (r ** 2) * h def cilinderOpp(r, h): mantelOpp = 2 * math.pi * r * h grondvlakOpp = math.pi * (r ** 2) return mantelOpp + 2 * grondvlakOpp # abs def telWoorden(string): s...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
f7b0d7bb1a961bd7014de1671af5c6a0a4af64f3
63768dc92cde5515a96d774a32facb461a3bf6e9
/jacket/tests/compute/functional/api_sample_tests/test_images.py
1a7cf9be370a7ee722c67f76bb87c594742c8495
[ "Apache-2.0" ]
permissive
ljZM33nd/jacket
6fe9156f6f5789e5c24425afa7ce9237c302673d
d7ad3147fcb43131098c2a5210847634ff5fb325
refs/heads/master
2023-04-16T11:02:01.153751
2016-11-15T02:48:12
2016-11-15T02:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
[ "nkapotoxin@gmail.com" ]
nkapotoxin@gmail.com
90996e68c77d9bb89ddf48c9ae6e5286f8827279
8f4dac64e98c292f2a7a1ed8aade65f350d86f64
/builder/frameworks/arduino/stm32duino.py
33347dc5e63603527a3de9f54f6a1db66a4c2023
[ "Apache-2.0" ]
permissive
victorpv/platform-ststm32
8c0ce44c315b0dafaac027965e49861cf183c918
787ca07adaddb9243241d8af2b19ad54c99e5e8b
refs/heads/develop
2022-01-11T23:36:47.928197
2017-12-17T19:38:50
2017-12-17T19:38:50
114,563,222
0
0
Apache-2.0
2019-05-23T02:27:18
2017-12-17T19:37:08
Python
UTF-8
Python
false
false
4,151
py
# Copyright 2014-present PlatformIO <contact@platformio.org> # # 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...
[ "me@ikravets.com" ]
me@ikravets.com
624c1c42e4224cbdd88caac898a041736a134cd7
382df78024f588acea08039a0b0a9e24f297b6a3
/python/sklearn/official/classification/plot_classification.py
9756f09bc95b0a6fa179da9c360da2a89ac354bf
[]
no_license
id774/sandbox
c365e013654790bfa3cda137b0a64d009866d19b
aef67399893988628e0a18d53e71e2038992b158
refs/heads/master
2023-08-03T05:04:20.111543
2023-07-31T14:01:55
2023-07-31T14:01:55
863,038
4
1
null
2020-03-05T06:18:03
2010-08-26T01:05:11
TeX
UTF-8
Python
false
false
1,827
py
""" ================================ Nearest Neighbors Classification ================================ Sample usage of Nearest Neighbors classification. It will plot the decision boundaries for each class. """ print(__doc__) import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColorm...
[ "idnanashi@gmail.com" ]
idnanashi@gmail.com
9e6856d90f514444d8bf6223f75175a155729223
bf02905eba909dd6ae878482895acf8363018dd3
/observers/simpleDrawAndObserver.py
2b217e8f034e7d384f16933d526a4da1537e13a4
[ "MIT" ]
permissive
typemytype/RoboFontExamples
0bf5e74a3a5664bbdbbc6064702ce4d4b98af8d5
cc5668de3d27ce996cff5eadb32d0b905c2aff65
refs/heads/master
2023-09-04T03:36:33.047077
2021-07-08T09:51:39
2021-07-08T09:51:39
3,391,070
13
3
null
2015-01-02T13:45:02
2012-02-08T20:36:27
Python
UTF-8
Python
false
false
327
py
from mojo.drawingTools import * from mojo.events import addObserver class DrawTest: def __init__(self): ## add an observer for the draw event addObserver(self, "drawSomething", "draw") def drawSomething(self, info): ## draw something the glyph view rect(100, 100, 100, 100) Dra...
[ "frederik@typemytype.com" ]
frederik@typemytype.com
3784ba0ec67e669069776950827e99ce9d6c87bb
28d5174b51d43ade5e57dc6498473e8029356b1a
/src/openfermion/transforms/_bravyi_kitaev_test.py
7659ccf8f8447ae2bdf3b78d1a890656cbbad49e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
Strilanc/OpenFermion
2b350ae7ea464460e1f422a59c8d7033dc5774ef
3a0a57b8b545acd2a2ff6b61e88f7c8a8a4437c8
refs/heads/master
2021-01-25T13:59:21.177659
2018-03-02T15:47:22
2018-03-02T15:47:22
123,639,421
1
0
null
2018-03-02T22:55:29
2018-03-02T22:55:28
null
UTF-8
Python
false
false
7,735
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
[ "ryanbabbush@gmail.com" ]
ryanbabbush@gmail.com
8c84367c09298b37b965a4c7acedaadceb72ecda
294b330355b5eae17b44d6ee51c6f6ef287cf2a8
/dask_gdf/groupby.py
ad384ca714af9179df4a6680ca34b44c872f8215
[ "Apache-2.0" ]
permissive
jrhemstad/dask_gdf
91d687c20cb02f53667fb8feecbcb1be58f2a4dc
c49933d72ce39ca720662b5d5124072e63087a62
refs/heads/master
2020-03-28T12:45:24.882134
2018-07-30T21:25:57
2018-07-30T21:25:57
148,331,266
0
0
Apache-2.0
2018-09-11T14:34:18
2018-09-11T14:34:18
null
UTF-8
Python
false
false
5,887
py
import numpy as np from dask.delayed import delayed import pygdf from .core import from_delayed class Groupby(object): """The object returned by ``df.groupby()``. """ def __init__(self, df, by): self._df = df self._by = tuple([by]) if isinstance(by, str) else tuple(by) self._grou...
[ "michael.lam.sk@gmail.com" ]
michael.lam.sk@gmail.com
cfed5fbcc7bba789f18151d832f8dfd09948ea9a
e89309b66ac7950508aba78247d0776435b7e0f2
/py/services/deeplinks/deeplinks/routers/probe.py
9f20482645539aeac5ebb8f72a81ff7fcc2cb974
[]
no_license
adalekin/otusdemo
2bdcab1191d4985b0da0c5d15f0a2d96149cbc65
60b4dbb664c3fe7c2068b9c8691ce99b7c0d1780
refs/heads/master
2023-08-05T08:38:17.359421
2021-09-15T16:53:51
2021-09-15T16:53:51
406,182,186
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from fastapi import APIRouter router = APIRouter() @router.get("/liveness/", tags=["probe"]) async def liveness(): return {}
[ "adalekin@gmail.com" ]
adalekin@gmail.com
87615aafa707610b7095f597f9ce3d4f3c8f4a5b
cfc386fdc545f834722f24af85df0d87c77ad9f8
/set_computationparameters.py
4f081694648dd87478760725d2cd3319a48a306f
[ "MIT" ]
permissive
tgquintela/FirmsLocations
5f694c531e0d195d0b0177c0c1d13c1c734ca1d0
476680cbc3eb1308811633d24810049e215101a0
refs/heads/master
2021-06-10T01:50:50.977200
2016-12-11T11:44:36
2016-12-11T11:44:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,475
py
""" set computation parameters -------------------------- Computation parameters which depends now in the path of files. """ import numpy as np from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import r2_score from sklearn.cross_validation import KFold from pySpatialTools.Retrieve import KRet...
[ "tgq.spm@gmail.com" ]
tgq.spm@gmail.com
87d2a54a73979bf3e891f1765c10fa896c8de1f5
7ae0ffa2168cf6ac22aca623f6d92ff84bf82a9e
/python/p096.py
2b533b835ed1ab5af7320c47c5ec41f5ac770732
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
nttan/Project-Euler-solutions
a4e53783ae5da36cb45ea33bd2f33aed277db627
5e7d16559bd9ad072448a35f8edac576081056f6
refs/heads/master
2021-01-18T13:40:53.315063
2016-01-06T04:49:16
2016-01-06T04:49:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,991
py
# # Solution to Project Euler problem 96 # by Project Nayuki # # http://www.nayuki.io/page/project-euler-solutions # https://github.com/nayuki/Project-Euler-solutions # def compute(): def extract(sudoku): # For example: extract([3, 9, 4, 1, ...]) = 394 return int("".join(map(str, sudoku[ : 3]))) ans = sum(e...
[ "nayuki@eigenstate.org" ]
nayuki@eigenstate.org
514bd7f688e7e54450edb783fa6a6e3743ecf33d
7358653d0c2be6c53456980d7ce2db46ec14e556
/shop/middleware.py
464304a07ce0371c443c9c40077a8398b884ded3
[ "MIT" ]
permissive
dokenzy/rakmai
81fec1b87e2274d94932691edff8b709ae82caa6
f5cd4ff9f946cc61170832c8e85c7ce246a58b8c
refs/heads/master
2021-07-18T16:22:30.810066
2020-06-06T08:24:44
2020-06-06T08:24:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
import logging from django.conf import settings from ipware.ip import get_ip from .models import NaverAdvertisementLog class AdvertisementLogMiddleware: logger = logging.getLogger(__name__) def __init__(self, get_response): self.get_response = get_response # One-time configuration and initi...
[ "pincoins@gmail.com" ]
pincoins@gmail.com
fb5e04d101ffbd423a66104ce54f8b223f5d2085
de4d88db6ea32d20020c169f734edd4b95c3092d
/aiotdlib/api/functions/search_chats_on_server.py
9e19a58bacce548541dbf9e8f824dd77b6ab0f45
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
thiagosm/aiotdlib
5cc790a5645f7e4cc61bbd0791433ed182d69062
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
refs/heads/main
2023-08-15T05:16:28.436803
2021-10-18T20:41:27
2021-10-18T20:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ "pylakey@protonmail.com" ]
pylakey@protonmail.com
7eca2526cb34dd34507f0c2704a5154c3edaffff
8a7a5fc0142d5be907cf873bc96a300eb3d9d646
/prescription/models.py
7eb1face6b48ba4ab40d85e5e34a2bdfdfd895ee
[]
no_license
dev1911/life_plus_plus
b73e8a1407d53968dd94e89b8a99e8f38c149faf
c6cd571c761dba925797eceff7cb3fcfa5d24cb3
refs/heads/master
2020-06-27T14:02:25.635431
2020-06-19T18:57:30
2020-06-19T18:57:30
199,971,702
1
7
null
2020-06-04T12:41:56
2019-08-01T03:44:07
Python
UTF-8
Python
false
false
982
py
from django.db import models from users.models import (User) class Prescriptions(models.Model): record = models.CharField(max_length=100)#check out about the unique field image = models.ImageField(upload_to='documents/',blank=False) username = models.ForeignKey(User,default=None,on_delete=models.PROTECT) text = mod...
[ "shlokashah0603@gmail.com" ]
shlokashah0603@gmail.com
a4b5ef0298eec20cb86808159be94c8de415255c
45da24ad0793ced3ce4a332486877ebdd9776388
/app/data/protocols/repositories/survey/load_survey_result_repo.py
1fb821b918a76cda8af32f3ab7273a4436f1a4ff
[]
no_license
luccasPh/clean-python-api
2fce7003646613ad543b9e8e4afd77bd4b49a25e
bc10bdc485bbec1c02c73783109c178d887514f1
refs/heads/master
2023-03-24T11:30:40.380210
2021-03-19T19:11:24
2021-03-19T19:11:24
343,474,537
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
from abc import ABC, abstractmethod from typing import Union from app.domain import SurveyResultModel class LoadSurveyResultRepo(ABC): @abstractmethod def load_by_survey_id(self, survey_id) -> Union[SurveyResultModel, None]: """Abstract method to load a survey result by survey id on database"""
[ "lucas4pinheiro@gmail.com" ]
lucas4pinheiro@gmail.com
0a0434c1235311f23cf9d56c1b326792cbb19373
739cf9467a7eefb5c2bf5d37ca3c70e1c9ff8d5c
/settings_development.py
3d4787d1d7a96ee8a1e1277ec3da2d52c9c4d54b
[]
no_license
rif/elMonumental
289228f972e7e91c282cc9f069a0ab07af43bcbb
c2ceb728a3abc6522561106f6428503d9242a896
refs/heads/master
2021-06-27T19:13:11.974275
2012-04-10T12:40:36
2012-04-10T12:40:36
204,654,522
1
0
null
2021-06-10T21:53:57
2019-08-27T08:17:54
Python
UTF-8
Python
false
false
2,920
py
# -*- coding: utf-8 -*- # Django settings for elMonumental project. import os def rel(*x): return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) DEBUG = True TEMPLATE_DEBUG = DEBUG MANAGERS = ADMINS = ( ('Radu Ioan Fericean', 'radu.fericean@oce.com'), ) DATABASES = { 'default': { 'E...
[ "radu@fericean.ro" ]
radu@fericean.ro
b534584be815f6a2c6404c26876f91ac4ccaba75
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/codingbat/codingbat-python-master/List-1/common_end.py
e3be1e59fed286a14620da006d0349d9675f7780
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
396
py
# Given 2 arrays of ints, a and b, # return True if they have the same first element or they have the same last element. # Both arrays will be length 1 or more. # common_end([1, 2, 3], [7, 3]) → True # common_end([1, 2, 3], [7, 3, 2]) → False # common_end([1, 2, 3], [1, 3]) → True def common_end(a, b): return ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
6310865ed4c8b4b72532d4e2adf40e5c50e06def
8923fe8a8a7ff6bdafacb2af6c4439bbe0ad0559
/constants.py
69adbc05924f4ab3e8b2f53fd3e429a93e6296b3
[ "MIT" ]
permissive
marcofavorito/information-extraction-from-annotated-wikipedia
5918f66aface5c8f97311c76084aeb95905de8d3
749f59c001d3850896431aaf0854c4c2ed209f1e
refs/heads/master
2020-03-23T22:10:24.566453
2018-07-24T13:12:41
2018-07-24T13:12:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
# Some constants NULL_BABELNET_ID = "NULL_BID" NULL_TYPE = "NULL_T" CUSTOM_TYPE = "CUSTOM_TYPE" # XML tags DISAMBIGUATED_ARTICLE_TAG = "disambiguatedArticle" TEXT_TAG = "text" ANNOTATIONS_TAG= "annotations" ANNOTATION_TAG= "annotation" BABELNET_ID_TAG = "babelNetID" MENTION_TAG = "mention" ANCHOR_START_TAG= "anchorSt...
[ "marco.favorito@gmail.com" ]
marco.favorito@gmail.com
8a1a7fe892220f1aa7df44f9ecdd8f03d1afa2cc
965fc2f0e22f0d0a14ac2b65fb7ae1a94371c9d1
/harvester/tests/integration/test_disease_normalizer.py
87ac52c5bede46bd77dfa9d4205940c7f9adb08a
[]
no_license
ohsu-comp-bio/g2p-aggregator
9a2ca19612905f7d7aca950aa81cb7a1d83dd56c
2a0d57c31bdad67b759322407b2c9c91a59c615b
refs/heads/v0.12
2022-12-11T14:07:34.994534
2019-06-25T21:13:27
2019-06-25T21:13:27
88,804,628
46
16
null
2022-08-23T17:12:16
2017-04-20T00:51:34
HTML
UTF-8
Python
false
false
7,412
py
import sys sys.path.append('.') # NOQA import logging logging.basicConfig(level=logging.DEBUG) from disease_normalizer import normalize import requests import requests_cache # cache responses requests_cache.install_cache('harvester') def test_comma(): term = "Non-small cell lung cancer, positive for epidermal g...
[ "brian@bwalsh.com" ]
brian@bwalsh.com
19cfe9db10a6f3d2660b175e1a824ae95d7b9a8c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03837/s676974942.py
9934b2b65658c22da40c2659d76b1e78b84fad70
[]
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
521
py
N, M = map(int, input().split()) INF = 10 ** 7 A = list() B = list() C = list() d = [[INF] * N for i in range(N)] for m in range(M): a, b, c = map(int, input().split()) a -= 1 b -= 1 A.append(a) B.append(b) C.append(c) d[a][b] = c d[b][a] = c for k in range(N): d[k][k] = 0 for k in ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2aa327cb7ed520349a870092358619281dd8ed21
f4335e8e7d3010506f570167bbba18156d3a4674
/stubs/django/template/__init__.pyi
de5717ba87113bc4e44496c5d245bfa04d8ee550
[]
no_license
rtpg/typehangar
133686ea45ad6187b768290aeebda9cbcae25586
790d057497c4791a38f9e3e009b07935b4a12f45
refs/heads/master
2021-01-19T04:49:17.940793
2017-01-16T13:54:14
2017-01-16T13:54:14
69,260,488
0
0
null
null
null
null
UTF-8
Python
false
false
301
pyi
# Stubs for django.template (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any from .engine import Engine as Engine from .base import Context as Context, RequestContext as RequestContext, Template as Template engines = ... # type: Any
[ "raphael@rtpg.co" ]
raphael@rtpg.co
c71fc28d72cf51f6f8927ca521c6956cb9169c59
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/migrate/v20191001preview/get_move_resource.py
687c2f1dd9bf9160301cb4fe30b96ee56060074e
[ "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
3,477
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 from...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
467b72deaf5e1ae852c6e350d310d38691390d82
3dbe78764eff766fbf7eb9b746be8895a6c1eefb
/app/internal/module/video/item.py
782f9f16918eaabc46cb0a40bb3f4c9e65e20d50
[ "MIT" ]
permissive
kuropengin/SHINtube-video-api
7650a26d6127cc4af09fd8574e0159e97c6e22ea
8a4b068fb95a9a2736b3dba3782dbbbf73815290
refs/heads/main
2023-08-14T10:36:11.466973
2021-09-20T16:12:43
2021-09-20T16:12:43
408,505,615
0
0
MIT
2021-09-20T15:50:01
2021-09-20T15:50:01
null
UTF-8
Python
false
false
795
py
from concurrent.futures import ThreadPoolExecutor import pathlib import json import glob import aiofiles import asyncio from functools import wraps, partial # 保存先のビデオフォルダ video_dir = "video" def async_wrap(func): @wraps(func) async def run(*args, loop=None, executor=None, **kwargs): if loop is N...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
ae447c7e6f087c2a58658a3d3baeb9af123512d7
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/173216_import_Outlook_contacts_using/recipe-173216.py
c3388d3d54f12adde9b3a2ebb9cfc94367e758a5
[ "MIT", "Python-2.0" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
3,130
py
import win32com.client DEBUG = 0 class MSOutlook: def __init__(self): self.outlookFound = 0 try: self.oOutlookApp = \ win32com.client.gencache.EnsureDispatch("Outlook.Application") self.outlookFound = 1 except: print "MSOutlook: unable to...
[ "betty@qburst.com" ]
betty@qburst.com
31a399d7febe959c30f1a22af376fced11bbb529
66c3eb5a49b6b674e72ffeac00a221f16e224806
/LX_API_TEST/Test_Case/User/Api_User_UpdateLoginPwd_Case.py
4eba6c78bd1b8e715958f1f3883b42008bede342
[]
no_license
fan966/LX_AT_TEST
20ad5793ef9ab6fe9070d046935b90450321ff0b
7e95a399140567ff601205f8d83babbe56279ab6
refs/heads/master
2022-12-31T15:11:04.972185
2020-10-23T11:58:46
2020-10-23T11:58:46
258,690,216
0
1
null
2020-04-26T07:00:43
2020-04-25T04:53:19
Python
UTF-8
Python
false
false
2,705
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from ddt import ddt,data from Config.Config import * from Libs.data_util import * from Libs.CheckRresult_Util import * from Verify.User.UserVerify import login_api from Libs.http_requests import http_api_requests import logging from Libs.Random_uti...
[ "664340382@qq.com" ]
664340382@qq.com
dd505eb397c91e6b9d4e23f32bd73694dd3b5c5a
c0e069209c4139362e8119a5718d695d81077312
/hw4/LED.py
821cdaf997406d0182e9155525b2b410fed4b720
[]
no_license
DragonChen-TW/raspberry_prac
57686ba423ff97e7382ec659792c32cd72323dd4
4e40dd80b27e486b46c3ec37679d2f7ed213ddca
refs/heads/master
2022-05-09T08:21:12.661146
2018-06-20T17:02:10
2018-06-20T17:02:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
import RPi.GPIO as gpio def setup(gpio_num, ctr): if ctr == 'in': gpio.setup(gpio_num, gpio.IN) elif ctr == 'out': gpio.setup(gpio_num, gpio.OUT) def turnON(gpio_num): gpio.output(gpio_num, gpio.HIGH) def turnOFF(gpio_num): gpio.output(gpio_num, gpio.LOW)
[ "teacher144123@gmail.com" ]
teacher144123@gmail.com
6f23a1d95816207670f958b2c05e2b04574e305a
45de7d905486934629730945619f49281ad19359
/xlsxwriter/test/comparison/test_autofit10.py
c4273d7c464ac8da9b09808fabe961c5d2d026e6
[ "BSD-2-Clause" ]
permissive
jmcnamara/XlsxWriter
599e1d225d698120ef931a776a9d93a6f60186ed
ab13807a1be68652ffc512ae6f5791d113b94ee1
refs/heads/main
2023-09-04T04:21:04.559742
2023-08-31T19:30:52
2023-08-31T19:30:52
7,433,211
3,251
712
BSD-2-Clause
2023-08-28T18:52:14
2013-01-04T01:07:06
Python
UTF-8
Python
false
false
990
py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
6d2758391da64e0ff525429807ced639b3ca7abf
10f4589802924889830e6e4d4f6aabd70fd43be8
/ax/runners/synthetic.py
0fb4c93f8ed5bdf421c5a4c684c0b4222ae7c3e3
[ "MIT" ]
permissive
kiukchung/Ax
473620b607e77ecb75b9339c39f38fc7fcce4508
0f50d94056782d304e573c3c1dde567beb44b65a
refs/heads/main
2023-07-15T10:20:19.879679
2021-08-30T16:36:41
2021-08-30T16:37:29
401,422,595
0
0
MIT
2021-08-30T17:03:29
2021-08-30T17:03:29
null
UTF-8
Python
false
false
1,008
py
#!/usr/bin/env python3 # 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. from typing import Any, Dict, Optional from ax.core.base_trial import BaseTrial from ax.core.runner import Runner cl...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
3a4516200ecbaf3d52ca889babe0e17b227ce7e9
6e9d6a682f20054e13d3764e95b8bd3b7b64fabf
/dailychallenge215.py
8856bc6a0e92e560a91609be9fe5f9bfe5392f6e
[]
no_license
SeanyDcode/codechallenges
30a271e04bc2b360bca923ae868be65a9533c8db
947cf3034911b381afaf777794d22d2af06aa5ba
refs/heads/master
2022-11-07T21:22:56.927863
2022-10-18T23:33:13
2022-10-18T23:33:13
154,498,776
1
0
null
2022-10-18T23:02:05
2018-10-24T12:38:45
Python
UTF-8
Python
false
false
949
py
# from dailycodingproblem.com # # Daily Challenge #215 # The horizontal distance of a binary tree node describes how far left or right the node will be when the # tree is printed out. # # More rigorously, we can define it as follows: # # The horizontal distance of the root is 0. # The horizontal distance of a left chi...
[ "noreply@github.com" ]
SeanyDcode.noreply@github.com
0fa40be0cdd6da373598cbf3839f5ad86ed4395b
fc03b53c2fb81455bc1c5e1c7369f0fab7052787
/Test_Locker.py
c2cd857223da6d9a3bc3d80f705a96c43af90860
[ "MIT" ]
permissive
Belie06Loryn/Password__Locker
f328c388738a651a4304db51def810022473a193
a63e8218e0e4878f2258bbdbdffc8d932607c7ec
refs/heads/master
2020-07-19T20:43:28.854206
2019-09-09T10:45:47
2019-09-09T10:45:47
206,511,963
0
0
null
null
null
null
UTF-8
Python
false
false
5,600
py
import pyperclip import unittest from Locker import Urufunguzo from Credentials import Credential #Test for Creating User class Genzura(unittest.TestCase): """ this class it gona check if application behaviour are driven as how it surppose to be driven """ def setUp(self): self.user = Urufung...
[ "maniralexie@gmail.com" ]
maniralexie@gmail.com
dd688f26a7656b187b5b178decf816309bbaf086
7a06da727da4374dfb43576b10e67e50116a8c92
/caffe2/python/layers/batch_mse_loss.py
85b1802b5c5c9420683a96da68e38ae09e8edfb1
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
KevinKecc/caffe2
3856495267fb6e69f5a4486b67a1fda5f5dea02c
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
refs/heads/master
2020-04-22T18:34:38.840825
2019-02-13T21:49:30
2019-02-13T21:49:30
170,581,714
0
0
Apache-2.0
2019-02-13T21:24:06
2019-02-13T21:24:05
null
UTF-8
Python
false
false
2,554
py
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
1d8ea340a9d30a0edb256fdd34b112f8b0de5000
a9c3e212f86acdbc84ba57357194e8f11c844535
/catalogue_management/migrations/0011_servicetype_icon.py
1576d39b55cdcbf0a63b36a1b6c8937e79f15cf7
[]
no_license
bitapardaz/carwash
bde4635bda1f1fa51409c2454e27aca84c2bffa0
0a10954eae44df7341372b5f3def652e512538b0
refs/heads/master
2021-01-15T13:34:31.198300
2017-08-23T11:35:33
2017-08-23T11:35:33
99,678,532
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('catalogue_management', '0010_servicetype_short_description'), ] operations = [ migrations.AddField( model_name='...
[ "pourranjbar.ar@gmail.com" ]
pourranjbar.ar@gmail.com
910b9f07fd8a2e9bf2d2025b357f4df32b4c3c0e
b4b451568e36374cd74830f5629f258259193336
/pytglib/api/types/users.py
d19be2f76f9b868d04aab5ea3ee253005cbeb0af
[ "MIT" ]
permissive
enodr/pytglib
a898342193eaf48c163f845de76c4846dd295ba7
e5e75e0a85f89b77762209b32a61b0a883c0ae61
refs/heads/master
2022-07-04T21:44:35.170736
2020-05-14T08:30:43
2020-05-14T08:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
from ..utils import Object class Users(Object): """ Represents a list of users Attributes: ID (:obj:`str`): ``Users`` Args: total_count (:obj:`int`): Approximate total count of users found user_ids (List of :obj:`int`): A list of user identifiers ...
[ "me@amirh.co" ]
me@amirh.co
e66724b9f8930e0670f70b27db0a3753f85434b5
cdc5d3badcd3c1060c6987ee47205b6bfe192e11
/penelope/core/socketspace.py
33bb9c52e0449f72876589cbd18c7340e2be3e56
[]
no_license
getpenelope/penelope.core
5dda00bcc2d9b6a2dc1ee5cdd5c1250c7d6bf0de
c1de9aee3afef093ff3a27259780761e7c028939
refs/heads/master
2021-01-09T20:48:53.561049
2016-07-28T15:43:02
2016-07-28T15:43:02
12,054,073
3
0
null
null
null
null
UTF-8
Python
false
false
461
py
from pyramid.response import Response from pyramid.view import view_config from socketio import socketio_manage from penelope.core.activity_stream import FeedlyNamespace from penelope.core.kanbanboard import KanbanNamespace @view_config(route_name="socketio") def socketio(request): socketio_manage(request.enviro...
[ "andrew@mleczko.net" ]
andrew@mleczko.net
84de3d5d5f2109ebf72fefa2f811b5d0d0fce00a
e6e81d0cd02223ca27f2c3f544b3c116e7617270
/LeetCodePremium/96.unique-binary-search-trees.py
593d1b0379b7a9e7601abfe4c8132db230de1ca5
[]
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
376
py
# # @lc app=leetcode id=96 lang=python3 # # [96] Unique Binary Search Trees # # @lc code=start class Solution: def numTrees(self, n: int) -> int: dp = [0] * (n+1) dp[0], dp[1] = 1, 1 for i in range(2, n+1): for j in range(1, i+1): dp[i] += dp[j-1] * dp[i-j] ...
[ "ashjambhulkar@hotmail.com" ]
ashjambhulkar@hotmail.com
0593b22bd5d503656d63fda337df1fa7e6a0985f
c98a7caf8eeccc95b6005e845d34b4be6d63e638
/train.py
9f469f303f50f42da60eee0db86b53822892be10
[ "MIT" ]
permissive
kentakozuka/machine_learning_in_application
cf8faeb2daaceb0022d6456a879e52636cd306ed
533cb74c680abf3c1beadb9325dc096f42bcdb3d
refs/heads/master
2021-07-17T13:02:36.495600
2017-10-23T22:11:24
2017-10-23T22:11:24
107,009,264
0
0
null
2017-10-15T12:15:43
2017-10-15T12:15:43
null
UTF-8
Python
false
false
1,325
py
import os import argparse from ml.model import NumberRecognizeNN from ml.data_processor import DataProcessor from ml.trainer import Trainer from ml.resource import Resource def train(data_file, batch_size, epoch, test_size): r = Resource() dp = DataProcessor() model = NumberRecognizeNN(Resource.INPUT_SIZE...
[ "icoxfog417@yahoo.co.jp" ]
icoxfog417@yahoo.co.jp
a21e809035c29b0c8f9282191c6ccf5cc1a003e4
328ff0d287f8f058f109c472e7f8902022a39325
/tools/set_upi_1.py
09f987ff49f916ae23f5b9ffb00e55ccb4312da3
[]
no_license
qihqi/HenryFACTService
e69104cf01e46c3e4ed0c1e5d2d72d91bac30634
a74b01afa0ba5a0bcbe517a7a52317a840487600
refs/heads/master
2023-04-16T17:39:01.863063
2021-06-21T15:12:20
2021-06-21T15:12:20
8,528,113
0
1
null
2022-06-03T22:44:27
2013-03-02T22:33:52
Python
UTF-8
Python
false
false
638
py
from coreapi import dbapi from henry.config import transapi from henry.product.schema import NPriceList def set_upi_for_ids(dbapi, ids): for i in ids: x = dbapi.db_session.query(NPriceList).filter( NPriceList.almacen_id == 1 ).filter(NPriceList.prod_id == i or NPriceList.prod_id == i +...
[ "you@example.com" ]
you@example.com
ff794b3d86b31e94d537170eb89b88affdb45e80
68d5dfd61fc2ea4dce4046d4ab83b5e837288781
/trax/data/text_encoder_build_subword.py
ed9d4829e17c8eb6edb9eddfa4d3b8982a189cfe
[ "Apache-2.0" ]
permissive
lukaszkaiser/trax
e1bf055c40c1c2c69726b0fe23f3de87c2e6ec6f
d875d804b8503d36b5dba493efa22ace86bb68f0
refs/heads/master
2023-08-17T11:12:47.806355
2021-09-29T21:57:02
2021-09-29T21:57:02
411,838,526
3
0
Apache-2.0
2021-09-29T21:46:56
2021-09-29T21:46:55
null
UTF-8
Python
false
false
2,785
py
# coding=utf-8 # Copyright 2021 The Trax Authors. # # 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 a...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
203a32df831d39ebd365ac727afbe33ff43ae75d
ce18cf6bdb1a85a65a509597b4c0ec046b855186
/2021年3月/和为K的子数组.py
342425af8104bf2f7a982e8d34e7d4eec26186e0
[]
no_license
elssm/leetcode
e12e39faff1da5afb234be08e7d9db85fbee58f8
a38103d2d93b34bc8bcf09f87c7ea698f99c4e36
refs/heads/master
2021-06-11T06:44:44.993905
2021-04-28T06:14:23
2021-04-28T06:14:23
171,072,054
3
0
null
null
null
null
UTF-8
Python
false
false
354
py
class Solution(object): def subarraySum(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ m={0:1} sumN=0 count=0 for i in range(len(nums)): sumN+=nums[i] count+=m.get(sumN-k,0) m[sumN]=m....
[ "noreply@github.com" ]
elssm.noreply@github.com
4e7fc5d8758356404791545138699efd52feadf1
3ae2210dc1c166d8f2bb45f9e951d1bef13efc77
/statsmodels/regression/_prediction.py
087c802da8b614dea6c4386d4ef2455d182b510d
[ "BSD-3-Clause" ]
permissive
tchakravarty/statsmodels
586112870db439182103f6cdfdc408b6204afe6a
ba2aab7d25aaef0c57ad6eeab5f4982aae43b34c
refs/heads/master
2021-01-16T21:43:59.404887
2015-02-10T17:15:57
2015-02-10T17:15:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,045
py
# -*- coding: utf-8 -*- """ Created on Fri Dec 19 11:29:18 2014 Author: Josef Perktold License: BSD-3 """ import numpy as np from scipy import stats # this is similar to ContrastResults after t_test, partially copied and adjusted class PredictionResults(object): def __init__(self, predicted_mean, var_pred_mean...
[ "josef.pktd@gmail.com" ]
josef.pktd@gmail.com
50887b486afeec9ca73c193ea062fe9cbd07b122
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-Security/PyObjCTest/test_securedownload.py
b3b52a777c14eb6760cd2ca2cba18606e85d7ded
[ "MIT" ]
permissive
danchr/pyobjc-git
6ef17e472f54251e283a0801ce29e9eff9c20ac0
62b787fddeb381184043c7ff136f1c480755ab69
refs/heads/master
2021-01-04T12:24:31.581750
2020-02-02T20:43:02
2020-02-02T20:43:02
240,537,392
0
0
null
null
null
null
UTF-8
Python
false
false
4,648
py
from PyObjCTools.TestSupport import * import Security SecureDownloadTrustSetupCallback = b"i@^v" SecureDownloadTrustEvaluateCallback = b"i@i^v" class TestSecureDownload(TestCase): def test_constants(self): self.assertEqual(Security.errSecureDownloadInvalidTicket, -20052) self.assertEqual(Securit...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
22e638443f6a4a7989b18abd2a9217846125ca6e
b9df0ebcd6d188e9561537ed5f914d58c02c20ac
/test.py
a8f8c3e15215cb823d139a10c50aae31681bfdd3
[]
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
361
py
##i = 1 ##while (i < 20): ## print (i, end=" ",) ## print ("+", end=" ",) ## i = i + 1 ## ## ##while (True): ## print (i, end=" ",) ## print ("+", end=" ",) ## i = i + 1 ## ## if i > 100 : ## break ## ##for i in range (0, 50, 5): ## print (i, end=" ",) x = int(input("x")) y = int(input...
[ "noreply@github.com" ]
ScarletMcLearn.noreply@github.com
731294d1ee328acf3c6233ff0c3110a8b66f1550
3e3a39296a0c11ca0f5ab787a096b5a4d22369ee
/tests/py/test_security.py
eae24c24dd319137dd8528ad112b254c28706020
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
stefb965/gratipay.com
7aa8175c75e220afa9524f339146087905a9933b
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
refs/heads/master
2021-01-12T09:06:05.346326
2016-12-17T12:26:17
2016-12-17T12:26:17
76,761,240
0
0
NOASSERTION
2019-05-11T23:47:51
2016-12-18T03:49:13
Python
UTF-8
Python
false
false
3,349
py
from __future__ import absolute_import, division, print_function, unicode_literals import struct import datetime from aspen import Response from aspen.http.request import Request from base64 import urlsafe_b64decode from cryptography.fernet import Fernet, InvalidToken from gratipay import security from gratipay.model...
[ "chad@zetaweb.com" ]
chad@zetaweb.com
1d30a223169636e37a8b8fc6e99515b28adce941
7681c936b3ec9cb9d033944bc03ee0569d30e2f7
/products/migrations/0011_payscore_timestamp.py
3ba7d5847584e9dd7e9e074207a300eb4d75a94d
[]
no_license
kij8323/mynewspaper
c624816bb87dedfe2c28182535f187e09b2f2824
12677e636224b53469b75d72185b2d198a6b5836
refs/heads/master
2021-04-12T03:33:51.549169
2017-08-26T07:24:37
2017-08-26T07:24:37
49,888,027
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('products', '0010_auto_20170201_1712'), ] operations = [ migrations.AddField( model_name='payscore', ...
[ "shenanping2008@Hotmail.com" ]
shenanping2008@Hotmail.com
eb676bd2c0f6153a0441f03f28d3b07c01d0bcab
4351a81d4a4fae778711643cb9644534e595920d
/Python 3/LeetCode/lc946.py
44ba51e60f315974bac51f380cce4884b5bf880a
[]
no_license
nsmith0310/Programming-Challenges
ba1281127d6fa295310347a9110a0f8998cd89ce
7aabed082826f8df555bf6e97046ee077becf759
refs/heads/main
2023-08-13T14:47:10.490254
2021-10-13T04:35:57
2021-10-13T04:35:57
416,565,430
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
class Solution: def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool: check = [j for j in popped] f = [] i = 0 while i<len(pushed): while pushed!=[] and popped!=[] and pushed[i]==popped[0]: f...
[ "92414264+nsmith0310@users.noreply.github.com" ]
92414264+nsmith0310@users.noreply.github.com
ed36d3fdc4475b33ea6c8319b8df1931754b4fe7
5be4ba98d02d8862d327f04291cafe4f0f6760f0
/django/django intro/random_word_generator/main/apps/randomword_app/apps.py
eebba82d0fa6c1246ebc9d34858962b7fe1bb0c9
[]
no_license
HassanZaghmoury/Python
f614e962e17bf9d767ba17d9be7bf862709274a7
b45f1b0392112bce73dce0dc6baf021bb2c1beaa
refs/heads/master
2020-03-08T00:42:00.672277
2018-04-02T21:21:09
2018-04-02T21:21:09
127,811,770
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class RandomwordAppConfig(AppConfig): name = 'randomword_app'
[ "34197290+HassanZaghmoury@users.noreply.github.com" ]
34197290+HassanZaghmoury@users.noreply.github.com
65dfa16c7775915575ffaa3e2344c0ecc6aadf20
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/exercises/1901100081/D4/1001S02E04_control_flow.py
235bfd7b193b169bc56a2aecf67165da6a5e184a
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
319
py
print('九九') for i in range(1, 10): print('第%a行' % i,end='\t') for j in range(1, i + 1): print(i,'*',j,'=',i*j, end='\t') print() print('九九2') i=1 while i<10: if i%2==0: print() else: for j in range(1,i+1): print(i,'*',j,'=',i*j,end='\t') i +=1
[ "2470962+srvz@users.noreply.github.com" ]
2470962+srvz@users.noreply.github.com
af7522ebaa33d8310ad5e3ff58638cbe5d89fb47
1c91f3e1884d9cba5328ac6b2a09bd92a1f498de
/mp/ontology/models.py
83c91d68f12f08ee9d9052d1729e3722edda884c
[]
no_license
point97/marine-planner-wcodp
31c9f3ee568683c737dbc56d9104f6e9ebf941c1
e707694d32fa34ddf69ff30a19ba6593e1fb3d5f
refs/heads/master
2020-06-06T18:59:17.561373
2015-07-24T17:49:54
2015-07-24T17:49:54
33,622,636
1
2
null
2015-04-23T22:24:32
2015-04-08T17:50:05
JavaScript
UTF-8
Python
false
false
1,079
py
from django.db import models from django.conf import settings from django.contrib.gis.db import models from mptt.models import MPTTModel, TreeForeignKey import caching.base class Term(caching.base.CachingMixin, models.Model): name = models.CharField(max_length=125) slug = models.CharField(max_length=125) ...
[ "sfletche@gmail.com" ]
sfletche@gmail.com
1b2e30eec717f5d0921cb995fc26d9e8803dd3bc
d788f2e3277d6274db345084f3f127de0f23b068
/charles-university/speech-recognition/asr-project/wer.py
7193d62185d76f4a96d586424278192e2df6f64d
[ "MIT" ]
permissive
Hyperparticle/lct-master
2af75fcd68990d6e5906be39e63d5a4a45db5a5e
8acb0ca8fe14bb86305f235e3fec0a595acae2de
refs/heads/master
2022-03-09T22:59:20.496277
2019-01-23T17:25:57
2019-01-23T17:25:57
106,123,054
3
0
MIT
2022-02-19T21:05:02
2017-10-07T19:00:34
HTML
UTF-8
Python
false
false
1,253
py
# Code taken from https://martin-thoma.com/word-error-rate-calculation/#python import numpy as np def wer(r, h): """ Calculation of WER with Levenshtein distance. Works only for iterables up to 254 elements (uint8). O(nm) time and space complexity. Parameters ---------- r : list h :...
[ "hyperparticle@gmail.com" ]
hyperparticle@gmail.com
330670dbf6c3457fd98cf4057cc21b11f9120ba1
f1364645e43b60c05b746083981e5c7f169702ba
/strategy/phase_out/ss01_09.py
2749467cbea2685475fd2a6b665aef0b86f31fb9
[]
no_license
geniustom/AI_Trading
bf41b946abe1f431a98078878d4b5f28a9a0d5c3
8c21d966053d64a224dc6b277ac9a33c576134ea
refs/heads/master
2020-05-29T18:35:43.400029
2020-03-28T21:11:09
2020-03-28T21:11:09
189,305,491
2
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
# coding=UTF-8 ############################################################################### def filter1(self,I): import lib.filter as fl if self.RunToday==-1: self.RunToday=1 AA=fl.getOpenVolABS(I.get("小台純散戶買作為")-I.get("小台純散戶賣作為"),15) AQ=fl.getOpenVolABS(I.get("金期未純化主力作為"),15) ...
[ "Geniustom@gmail.com" ]
Geniustom@gmail.com
2655878f24b25272b476d9ac5dbe74e71631982c
669e9241b02bdaa303fbc2fd4023b90d4d179a59
/Simultaneous Circles/challenge1.py
abcf47a2bc4a0e10b6fc3521e647b0c062ce441e
[]
no_license
benjaminpotter/HatchProjects
0854cf46ae7c3781468116a5d63b703dd54ae68c
7f6a948d3474c755d071751b725c059e6c7f3553
refs/heads/master
2022-01-28T16:58:03.449073
2019-08-16T13:47:30
2019-08-16T13:47:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
def setup(): size(400, 400) max_distance = 400 def paint_circles(): global max_distance x = -1 while x < width: y = -1 while y < height: circle_size = dist(mouseX, mouseY, x, y) circle_size = (circle_size/max_distance) * 66 fill(100, 150, 200) ...
[ "reactiveneon@gmail.com" ]
reactiveneon@gmail.com
27fe4536ba9a967e254336743ef98598f1b4eb67
6f2abe83cc2f6f7719f8a9cc38ab9a5af9514c47
/passagens/views.py
60a420fb465e9a06becdd2ab862669058cd4b59b
[]
no_license
Aleleonel/precopassagens
04edd2610904b5274a86a96372657445e42e87e8
25ea826d4646f3bbbfc74bbd0eddf928115d200e
refs/heads/master
2023-07-20T19:24:00.735840
2021-08-14T22:28:45
2021-08-14T22:28:45
394,820,037
0
0
null
2021-08-14T22:28:45
2021-08-11T00:59:21
Python
UTF-8
Python
false
false
782
py
from django.shortcuts import render from passagens.forms import PassagemForms def index(request): template_name = 'index.html' form = PassagemForms() context = { 'form': form } return render(request, template_name, context) def revisao_consulta(request): template_name = 'consulta...
[ "aleleonel@gmail.com" ]
aleleonel@gmail.com
a0ad93b22ece0e723968a0e41b7b240290a43c99
44a8159afa9a26b30c07771fa8a6fbee9b1a1c5d
/src/main/views.py
f185bb9c9ed0543d032d149cb7d624bfad03bf01
[]
no_license
ionescuig/taxi-fares
27aee078e531555078dd8548ac7035d2b1d20194
317b06a2ffb85eb8e488bb04d06579166559b62b
refs/heads/master
2020-04-06T20:31:39.179112
2019-06-11T15:36:32
2019-06-11T15:36:32
157,760,197
0
0
null
null
null
null
UTF-8
Python
false
false
2,055
py
from django.views.generic import CreateView, ListView, UpdateView, TemplateView from .calculator import check_tariff, calculate_fare from .forms import JourneyForm from .models import BankHoliday, Tariff, Journey class HomeCreateView(CreateView): template_name = 'main/index.html' form_class = JourneyForm c...
[ "ionescuig@yahoo.com" ]
ionescuig@yahoo.com
b66e0d7fe8e3e9bd5d710542d89b58cd37e3351e
9752f8065f5b4fb229d94416bc4c6a1fddbd4179
/templates_advanced-recources/dvanced/books_REST/Scripts/django-admin.py
e274e6ca5e20dea065cbac37d16e25de70fc1f7c
[]
no_license
DeanDupalov/web-basic-django
1b2bbc7d3bdb9452f067f230cd14733859071dea
52e79535d12ce7673a4b17680154b48d7d184487
refs/heads/master
2023-07-12T19:13:49.117155
2021-08-26T10:57:41
2021-08-26T10:57:41
370,965,846
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
#!C:\Users\deand\PycharmProjects\web-basic-django\templates_advanced-recources\dvanced\books_REST\Scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportE...
[ "75751527+DeanDupalov@users.noreply.github.com" ]
75751527+DeanDupalov@users.noreply.github.com
9da15d0aaa1eab5127828ce90bdc4a2a1add160c
bc63598033c6ca4ac7f257897aec0b23eaff60d1
/test/mitmproxy/addons/test_streambodies.py
b982c66db582644c4edeed6e8e2096baa0a9a643
[ "MIT" ]
permissive
Scalr/mitmproxy
4aee723aef2f34fa1209364b5b03cedff7d3f85e
a6c608e08595e95279713e51e2a346344bd290c0
refs/heads/master
2020-06-27T08:52:29.441895
2016-11-23T00:27:23
2016-11-23T00:27:23
74,527,489
0
2
MIT
2018-05-03T00:00:18
2016-11-23T01:10:39
Python
UTF-8
Python
false
false
809
py
from mitmproxy.test import tflow from mitmproxy.test import taddons from mitmproxy.addons import streambodies def test_simple(): sa = streambodies.StreamBodies() with taddons.context() as tctx: tctx.configure(sa, stream_large_bodies = 10) f = tflow.tflow() f.request.content = b"" ...
[ "aldo@nullcube.com" ]
aldo@nullcube.com
1041d57927340a920c5756aecaa0fafe2abc05bf
016089e3b1ef4a8b5266d9ed6b292d8c9efd2e6d
/chapter1/scpt1-8.py
a1f136f50c3e77a64aba0599596479b7641db8d0
[]
no_license
sdzr/cookbook_study
c4435ea7bba75d899bfff1e4f365c23badf1f3f8
8fa488f79a7c23244513bf577c3bc01caab858e4
refs/heads/master
2020-04-27T05:01:05.068668
2019-07-03T13:45:23
2019-07-03T13:45:23
174,070,622
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
#与字典相关的计算问题 #利用zip函数将key与value对调过来是非常合适的,zip会产生一个迭代器,只被消费一次 prices={ 'g':1, 'b':3, 'c':4, 'e':3 } min_price=min(zip(prices.values(),prices.keys())) print(min_price) prices_sort=sorted(zip(prices.values(),prices.keys())) print(prices_sort) #如果直接在字典上做常规的数据操作,处理的会是key print(min(prices)) #传入的是key print(m...
[ "290701331@qq.com" ]
290701331@qq.com
e81264a37eee5b59302701deb76efde538380d84
8e5f292e781088195d6494d82f8e8b9ba19a3523
/1-Dictionaries/6_Nestec_Dic.py
eee09f0946ec36319a7cb455e6b1a8a2737add9b
[]
no_license
2662772445/Python
35e0e7d5d2762e1642c318b6e9d33e5ddf99c75f
1d492b2556c166ab6afe1236ecdd46b3f64b750e
refs/heads/master
2023-04-03T23:00:10.229761
2020-10-27T14:33:15
2020-10-27T14:33:15
288,967,508
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
myfamily = { "child1" : { "name" : "Salman", "year" : "2004" }, "child2" : { "name" : "Sharukh", "year" : "2007" }, "child3" : { "name" : "Juhi", "year" : "2010" }, } print(myfamily) print(' ') # Another way of child1 = { "name" : "Salman"...
[ "you@example.com" ]
you@example.com
77e6ee4502591f12174f822e7feda8b11e72f603
05cdf6f093124aff17c9378dcc63602f3d973ae5
/tccli/services/domain/__init__.py
bffc0f8338b4c7b35c5c1581871b3fe712023f11
[ "Apache-2.0" ]
permissive
zyh911/tencentcloud-cli
e717d78c2429da8f2e26c9e3c19ecabfcc116f45
dfc5dbd660d4c60d265921c4edc630091478fc41
refs/heads/master
2021-06-02T07:00:48.445549
2020-04-17T04:08:26
2020-04-17T04:08:26
254,317,574
0
0
Apache-2.0
2020-04-17T04:08:27
2020-04-09T08:43:15
null
UTF-8
Python
false
false
221
py
# -*- coding: utf-8 -*- from tccli.services.domain.domain_client import register_arg from tccli.services.domain.domain_client import get_actions_info from tccli.services.domain.domain_client import AVAILABLE_VERSION_LIST
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
ca66aa561a297467b9a3fe8c82e3ff9cebd1abde
70f95113a6c63cd230259ce613fef88abf47fb73
/docs/conf.py
74ac59bb4cfd16af0c2f61905c2f4bdc3db099eb
[]
no_license
philip-brohan/ML_ATB2
ffe40b6efe6b9f61fa03ac9676e995b691a6c566
dba85f4465c5a555747f9c1b4b51d00b7c7755c1
refs/heads/master
2023-01-05T02:52:26.626134
2020-10-28T10:00:55
2020-10-28T10:00:55
276,402,987
0
0
null
null
null
null
UTF-8
Python
false
false
7,293
py
# -*- coding: utf-8 -*- # # ML_ATB2 documentation build configuration file. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are comm...
[ "philip@brohan.org" ]
philip@brohan.org
798614018c1f649d995e682810406d867297d913
7a2ad6c274add0f88cab8f6f89de551ff86597c9
/AOC2018/days/day2/tests/test_Day2Puzzle1.py
812c5e2f444b28a3cca517ca4087784ba8a7a011
[]
no_license
Akivashi/AOC
8b66cecc9c6cf32c318d5b605f7f9ee952aad373
cbd3a766db1a4b6560c4adcf978ec79b30707032
refs/heads/master
2023-01-29T17:57:39.704089
2020-12-08T18:41:15
2020-12-09T18:55:10
318,249,828
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from unittest import TestCase from Day2Puzzle1 import Day2Puzzle1 class Day2Puzzle1Test(TestCase): def setUp(self): self.puzzle = Day2Puzzle1() def test_puzzle(self): self.assertEqual(self.puzzle.solution("tests/Day2Puzzle1_test_input1.txt"), 12)
[ "rene@infi.nl" ]
rene@infi.nl
23766383f0e709a66fc716e7fb456675896c8bc5
6982c3c54ee9199d93fb89c61cfdcba15b9b7012
/python_advanced/chapter11/python_process.py
4a84326f8d7e6844183ca8d947ff3ec21fa28c1a
[]
no_license
gzgdouru/python_study
a640e1097ebc27d12049ded53fb1af3ba9729bac
e24b39e82e39ee5a5e54566781457e18c90a122a
refs/heads/master
2020-03-29T11:33:13.150869
2019-03-08T09:24:29
2019-03-08T09:24:29
149,858,658
0
1
null
null
null
null
UTF-8
Python
false
false
843
py
''' python多进程使用 ''' import multiprocessing import time def get_html(n): time.sleep(n) print("get html {}.html success.".format(n)) return "get {0}.html compalte!".format(n) def show(arg): print(arg) if __name__ == "__main__": # process = multiprocessing.Process(target=get_html, args=(10,)) # ...
[ "18719091650@163.com" ]
18719091650@163.com
2d473554fdfd26bac2b4fe737071b23e31abd9d6
3a533d1503f9a1c767ecd3a29885add49fff4f18
/saleor/order/migrations/0126_alter_order_updated_at.py
fae28df36b197f51ea914b6e31b0e464925e0fdd
[ "BSD-3-Clause" ]
permissive
jonserna/saleor
0c1e4297e10e0a0ce530b5296f6b4488f524c145
b7d1b320e096d99567d3fa7bc4780862809d19ac
refs/heads/master
2023-06-25T17:25:17.459739
2023-06-19T14:05:41
2023-06-19T14:05:41
186,167,599
0
0
BSD-3-Clause
2019-12-29T15:46:40
2019-05-11T18:21:31
TypeScript
UTF-8
Python
false
false
413
py
# Generated by Django 3.2.12 on 2022-02-09 14:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("order", "0125_populate_order_updated_at"), ] operations = [ migrations.AlterField( model_name="order", name="updated...
[ "noreply@github.com" ]
jonserna.noreply@github.com
3051f3f4facc89bf497ee8adfc2a56f2ed3beb4c
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/command_lib/run/integrations/formatters/states.py
142e67153e402fa7591a2728c18d0bcb28948a58
[ "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
904
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
b16727655111c16002490960e1e06d9d9faca762
fd98c19c082c2d3c9e0f3de89bb7e47fdaff31bf
/cleanup.py
0887b54cf65edc9378fd020b325738e15bbca5c4
[]
no_license
Softcatala/auto-translate
d4903a74bcd1778071d9545d442bad9c7aaf5554
b96300b436828dec9e40d1ce5657e682e679158f
refs/heads/master
2021-06-12T01:22:10.851684
2017-03-15T07:02:26
2017-03-15T07:02:26
76,189,933
1
0
null
null
null
null
UTF-8
Python
false
false
2,101
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Jordi Mas i Hernandez <jmas@softcatala.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of ...
[ "jmas@softcatala.org" ]
jmas@softcatala.org
918818dc2af54334f11326d35727b823878bea88
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/ABC/abc051-abc100/abc092/a.py
28eccd7450b37799e7ef73fca400a44dbcc1ac61
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
300
py
'''input 549 817 715 603 1152 600 300 220 420 520 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': a = int(input()) b = int(input()) c = int(input()) d = int(input()) print(min(a, b) + min(c, d))
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
2ffff887ccd5dfd2cec2d564ae6e959d4ed07231
3fe6876c4c80c4ae6398a060fb88679bb0278324
/shop/migrations/0002_auto_20180501_0921.py
6f0ae58dcb448231e15491a5d9c134a8a5c3d0c7
[]
no_license
Exiaoxinghaha/store
ffd41628608a72095fe0ff0190d46fbc487edc8c
299088b247fa2b7d8b13cc3b7535bce32b577d43
refs/heads/master
2020-03-19T01:28:21.099911
2018-05-31T07:34:57
2018-05-31T07:34:57
135,548,146
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-01 09:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('shop', '0001_initial'), ] operations = [ mig...
[ "pyvip@Vip.tz.cn" ]
pyvip@Vip.tz.cn
3ee002c477b76f052660d778ef63595d390ad951
a340c26fa447320173f9cf6d6b52c70190805bbc
/benchmarks/tensorexpr/normalization.py
4cef570da983b5250e3488a0e024b8ff48457afa
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
dmitrivainbrand/pytorch
effdea8c21eb99d233690e57f4e348be1051cd35
e93e7b27950392fdd8ac8c15b45094e954ba3ebf
refs/heads/master
2021-03-27T07:13:30.472878
2020-03-16T18:38:29
2020-03-16T18:49:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
import framework import tensor_engine class NormalizationBench(framework.Benchmark): def __init__(self, mode, device, N, C, H, W): super().__init__(mode, device) self.N = N self.C = C self.H = H self.W = W self.data = self.nchw_rand([self.N, self.C, self.H, self.W],...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b3c7887440cb77641d08b94bc1946dc9298adf2f
6f8243186cae5ba860c8b8c8f8390cd61f31f6f3
/Server/app/views/v2/admin/account/auth.py
e4964138e2d01db28ccae2e804dabfcc12961e7a
[ "MIT" ]
permissive
moreal/DMS-Backend
d7016444b5de276abe03d2efe6c92e1b1a260639
c0a3b28972739c58049a296570bb873f32c03eec
refs/heads/master
2020-04-10T20:24:05.256937
2018-11-21T11:04:04
2018-11-21T11:04:04
150,601,269
0
0
null
2018-09-27T14:35:45
2018-09-27T14:35:45
null
UTF-8
Python
false
false
1,065
py
from flask import Blueprint, Response, request from flask_restful import Api from flasgger import swag_from from app.docs.v2.admin.account.auth import * from app.models.account import AdminModel from app.models.token import AccessTokenModelV2, RefreshTokenModelV2 from app.views.v2 import BaseResource, json_required a...
[ "city7310@naver.com" ]
city7310@naver.com
4392c6e3f41ac8d7f1dd22dd42b9e8f82bccfacf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03617/s452270534.py
b9d6a8b5184ccea4036a47e30628c13d64cc797e
[]
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
200
py
q,h,s,d = map(int,input().split()) n = int(input()) a=min(q*8,h*4,s*2,d) b=min(q*4,h*2,s) ans = 0 if n%2==1: ans += b ans += min(b*(n-1),a*(n//2)) else: ans += min(b*n,a*(n//2)) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5b63ff31e610de9993cb211d036c5fc07e430430
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Dynamic Programming/Introduction to Dynamic Programming 1/Terminators/solution.py
1cf1ef5946b9ff0fee7fd88360e43d32ece777d6
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
448
py
def group(arr, size): dp = [1] * size for i in range(1, size): for j in range(i): if arr[i][1] > arr[j][1]: dp[i] = max(dp[i], dp[j] + 1) return dp t = int(input()) for _ in range(t): n = int(input()) terminators = [] for _ in range(n): p1, p2 = map(...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
b5ab71e3078a56dc7f36261459268c27b16d6571
f8ad6963bfc851657ea50c6a036cfad29cdd7f60
/Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_1_4.py
2e86582b7229d47a1899727d95ac4ca065f11679
[]
no_license
foru120/PythonRepository
e1ab0265c0f50ef2e9acdf7447237c913560692b
db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98
refs/heads/master
2021-01-01T06:53:11.728109
2019-04-25T13:52:50
2019-04-25T13:52:50
97,541,222
4
0
null
null
null
null
UTF-8
Python
false
false
2,510
py
#todo p.322 ~ p.326 #todo code x ~ code x #todo 7.1.4 층으로 구성된 비순환 유향 그래프 # ▣ 인셉션 모듈 # - 네트워크가 따로따로 공간 특성과 채널 방향의 특성을 학습 # - 1x1 합성곱으로 시작해서 3x3 합성곱이 뒤따르고 마지막에 전체 출력 특성이 합쳐지는 구조 # - 채널이 공간 방향으로 상관관계가 크고 채널 간에는 독립적이라고 가장하면 좋은 전략 구조 # ※ 1x1 합성곱의 목적 # - 입력 텐서의 채널 정보를 혼합한 특성을 계산하며, 공간 방향으로는 정보를 섞지 않음 #todo 인셉션 모듈 구현 from ...
[ "broodsky1122@hanmail.net" ]
broodsky1122@hanmail.net
9a3d9417d5ffbee5b1f6323e82e1f385f1bdef11
019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0
/tests/unit_tests/detection_targets_format_transform_test.py
b5a54fa8f3bd3d67655d9c2b50c67b8ba795b667
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Deci-AI/super-gradients
6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0
7240726cf6425b53a26ed2faec03672f30fee6be
refs/heads/master
2023-08-25T17:47:02.595029
2023-08-24T11:50:50
2023-08-24T11:50:50
432,652,408
3,237
331
Apache-2.0
2023-09-14T11:24:46
2021-11-28T07:58:02
Jupyter Notebook
UTF-8
Python
false
false
5,891
py
import numpy as np import unittest from super_gradients.training.transforms.transforms import DetectionTargetsFormatTransform from super_gradients.training.datasets.data_formats.default_formats import ( XYXY_LABEL, LABEL_XYXY, LABEL_CXCYWH, LABEL_NORMALIZED_XYXY, LABEL_NORMALIZED_CXCYWH, ) class...
[ "noreply@github.com" ]
Deci-AI.noreply@github.com
72d13b905f3c7903a10248240d645f257c49f16d
677a3a76807d8585f65ec0e0839bb3a8b833e2fb
/8.Decorators/exercise/3.Text Format.py
31b311284059cf2b72896feaa9216df291aec0d2
[]
no_license
negative0101/Python-OOP
0d531a1b72beb3e58f9486df88d457ecd59be10e
b5825e66a909c947a46458712d683e8a38035912
refs/heads/main
2023-07-14T11:27:34.841594
2021-08-20T08:49:04
2021-08-20T08:49:04
381,475,313
0
0
null
2021-07-25T19:52:38
2021-06-29T19:26:42
Python
UTF-8
Python
false
false
843
py
def make_bold(greet): def wrapper(*name): text = greet(*name) bold = '<b>' bold2 = '</b>' return bold + text + bold2 return wrapper def make_italic(greet): def wrapper(*name): text = greet(*name) italic = '<i>' italic2 = '</i>' re...
[ "noreply@github.com" ]
negative0101.noreply@github.com
c219c81df97d360092517fdb68f96c9fd9567796
fdb5c8d71839ad15c7942d1367972524d2243573
/tests/datasets/seq_labeling/test_conll_yago_dataset.py
a4d6ebd943db9f095116553f378945687ceda8b7
[ "MIT" ]
permissive
abhinavkashyap/sciwing
b752b779053a2444f64bcdbc64e2bdc6a0d55ed6
1c061b99a35a9d8b565d9762aaaf5db979b50112
refs/heads/master
2023-05-12T16:00:08.210458
2022-03-25T01:19:00
2022-03-25T01:19:00
187,997,438
58
11
MIT
2023-05-01T21:26:41
2019-05-22T08:36:14
Python
UTF-8
Python
false
false
2,757
py
import pytest from sciwing.datasets.seq_labeling.conll_yago_dataset import ConllYagoDatasetsManager from sciwing.datasets.seq_labeling.conll_yago_dataset import ConllYagoDataset import sciwing.constants as constants import pathlib from sciwing.tokenizers.word_tokenizer import WordTokenizer PATHS = constants.PATHS DATA...
[ "abhinav@comp.nus.edu.sg" ]
abhinav@comp.nus.edu.sg
946555e164b98279fd2bae83a406cbafdad43efe
22954a0c13d7bf1824320802e802aa8166f16d76
/web_scraping/rhiphopheads/settings.py
4f9420a165ebca3cd87a2faf53a24faa06a62f1e
[]
no_license
luke-zhu/cs1951a-data
e0c7a96c7e100c278722419ba3bc845f6a5326c4
925c3263988db1de815589c5e47ddd918c345b25
refs/heads/master
2021-01-20T07:40:21.372377
2017-05-02T21:47:08
2017-05-02T21:47:08
90,025,042
0
1
null
null
null
null
UTF-8
Python
false
false
3,289
py
# -*- coding: utf-8 -*- # Scrapy settings for rhiphopheads project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/l...
[ "luke_zhu@brown.edu" ]
luke_zhu@brown.edu
afbf77795fe3b628a10b8e3475fcbd6bb622e0f4
385c01f7337cf5031093147f6731251bfbf17430
/lms/course/parse.py
bba22424f143b641561c108baa5cab884d7871c4
[]
no_license
lucassimon/lmswebaula
23a73d6d2d43c78a2f9e3b552113cf50a11a3587
671276426685968458f240faa93b313427fa32d9
refs/heads/master
2021-01-19T13:26:12.352308
2017-08-16T21:07:43
2017-08-16T21:07:43
88,088,474
1
0
null
null
null
null
UTF-8
Python
false
false
846
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import six import pytest from lms.course.containers import * class CourseParse(object): @staticmethod def get_all(response): data = [] try: ws_students = response['CourseListDTO']['CourseDTO'] except Exce...
[ "lucassrod@gmail.com" ]
lucassrod@gmail.com
2ff8c24910e32cd976950ae9ce3b77352eec7d17
ba03b99d73886349d66883b8c328b8eff805772d
/40 combination sum II.py
5f6e4ed036874f8a817bf1ef667f556612e4afd6
[]
no_license
liyi0206/leetcode-python
38cc33eb74b006e7e6609eda86e1ae8d5e278247
2c4a54070b20d2fe33b81d889ad0ad0c6aa5fb5c
refs/heads/master
2016-09-12T22:54:09.622652
2016-05-26T05:20:44
2016-05-26T05:20:44
59,178,964
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
class Solution: # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationSum(self, candidates, target): #candidates=list(set(candidates)) self.t,self.c = target, sorted(candidates) self.res=[] self.bt(0,[]) ...
[ "ly.protegee@gmail.com" ]
ly.protegee@gmail.com
d92f9c6fc88afa9f650606e778aab5716294d07b
8456aa7e564ad46443fbd1bd5f7188cb7185dcbe
/galerias/admin.py
0830e3dad5f403b9538975304da8ddafcaf9bd3a
[]
no_license
CARocha/maonic
d3038c330e16b4b63f2fd6c36cd09241fb893892
b71b8da159dc22fded72c38f7d37672073386bc7
refs/heads/master
2021-01-21T01:15:47.764129
2017-12-12T04:51:12
2017-12-12T04:51:12
1,085,853
0
3
null
null
null
null
UTF-8
Python
false
false
360
py
# -*- coding: UTF-8 -*- from django.contrib import admin from .models import Galeria, FotoGalerias class FotoGaleriaInlines(admin.TabularInline): model = FotoGalerias max_num = 20 extra = 1 class GaleriaAdmin(admin.ModelAdmin): inlines = [FotoGaleriaInlines] list_display = ('titulo', 'autor',) ad...
[ "crocha09.09@gmail.com" ]
crocha09.09@gmail.com
b6a0b3c917b3035f501c5046d89e90ddbdd97d36
7f5492e4c85f88e4daa9e59617cd6094296ce369
/firstDjango/myfirstsite/test_tmpl/test_tmpl/urls.py
52376476bda33066eac94255252bf6a3808bf7aa
[]
no_license
evaseemefly/myfirstDjango
22f5a4116c92d03647816e098afef72faf2b9652
7e79e0de8cebf13f3ebbc9477d27d7a3f07998cc
refs/heads/master
2021-01-01T17:34:03.419333
2017-08-27T10:38:30
2017-08-27T10:38:36
98,098,014
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
"""test_tmpl URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
[ "evaseemefly@126.com" ]
evaseemefly@126.com
2bd25fa7e619f762ed00101f67b273aa404bf299
c25a17f0f82c2eebca55bbe180f4c2ccbbf00292
/03_Data_Science/1_Collection/CSV_Handle/BigData1_ver4.py
78f0c0ee6d0358672d30ffe24f31fa3c63104bbf
[]
no_license
superbeom97/jumpjump
a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c
fc45efce2a2b00c614aa5aa54b36be1572ed40ce
refs/heads/master
2021-09-15T09:35:16.903857
2018-05-30T00:00:59
2018-05-30T00:00:59
111,883,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
import csv ## 행의 입력 정의 def get_csv_rowInstance(row_name): row_instance = [] row_index = data[0].index(row_name) for row in data[1:]: row_instance.append(row[row_index]) return row_instance ## 열의 입력 정의 def get_csv_columnInstance(primary_key): column_instance = [] for column in data[1:...
[ "beom9790@naver.com" ]
beom9790@naver.com
a865e01c3b6e175a2ba1957558f10cb940a0e380
b62f1ecfd96d52187a60f8f083ee14fb331f0a35
/fileio.py
ad17a97b2c82ac87af270fa5cdde4ce516522877
[]
no_license
hieubz/SentimentAnalysis_20181
f45e993323786b2db221a2655f857256b3264740
efd7cc19d8775a2c34686b0c78e87df76c79ad7b
refs/heads/master
2021-10-08T22:53:16.269463
2018-12-18T16:31:19
2018-12-18T16:31:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
import json import os class FileIO(): def __init__(self): print("") def read_file_json(self, path_file): with open(path_file, 'r') as content: data = json.load(content) content.close() return data def read_multi_files_json(self,path_dir): data = [] ...
[ "phamduyhieuit@gmail.com" ]
phamduyhieuit@gmail.com
e57aae10bada934841a8913500a993b73a31c834
9ed6b0fb1a76adc02a8a67f5c10c88b524baa444
/CBSFind.py
c83be90856dcd9dad6f1e84378b38d02c2ccc0fa
[]
no_license
scottmudge/CBS-Log-Corruption-Extractor
38608307e28e4b5bcacf8141da9591283e2694a2
2087a5373bdac51a264156c8f8c5adbe1a231e9e
refs/heads/master
2020-03-20T21:34:42.081867
2018-06-18T12:36:28
2018-06-18T12:36:28
137,748,328
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
import sys import os class CBSFinder: def __init__(self, log_file: str): self.log_file = log_file if not os.path.exists(self.log_file): raise FileNotFoundError("CBS Log File [{0}] does not exist!".format(cbs_logfile)) print("Placing output into cbs_finder_out.txt") ...
[ "mail@scottmudge.com" ]
mail@scottmudge.com
e64d9b93f91b73c755d3f2289c028fa760b5cbca
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_74/413.py
a0a9061e60285b02bcb552e27122baabbb5a9f99
[]
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
1,319
py
#!/usr/bin/python def inp(): fout=file('out.txt', 'a') fin=file('inp.txt', 'r') testCases=fin.readline() for count in range(int(testCases)): case=fin.readline() result=compute(case) out(result, count, fout) def compute(case): clist=case.split(" ") num=clist.pop(0) color="N" olist=[] blist=[] mlist=[] ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a1fcbebd2d8b4e4900f275b47b80cf6c0ed99485
24381845fe5e8b8a774d74911e2f07bcd1a00190
/azure-iot-provisioning-servicesdk/azure/iot/provisioning/servicesdk/client.py
e7fa889310c95d91a8393304efcabec43616208e
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
noopkat/azure-iot-sdk-python-preview
94b3b29497b80e1dac6471ae906d8491f018b12d
f51733e9d3424c33ed86d51e214b20c843716763
refs/heads/master
2020-04-30T03:07:37.445782
2019-03-18T18:42:15
2019-03-18T18:42:15
176,579,084
6
0
MIT
2019-03-19T18:53:43
2019-03-19T18:53:43
null
UTF-8
Python
false
false
1,160
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Redefi...
[ "noreply@github.com" ]
noopkat.noreply@github.com
e297bbabfcd4fc5a2c9bb0e68bb07f415260aa4f
07c75f8717683b9c84864c446a460681150fb6a9
/1.Django_cursor/days10/myweb/myblog/urls.py
4728fa72f33a2515e8bbf021c8c855a41360839e
[]
no_license
laomu/py_1709
987d9307d9025001bd4386381899eb3778f9ccd6
80630e6ac3ed348a2a6445e90754bb6198cfe65a
refs/heads/master
2021-05-11T09:56:45.382526
2018-01-19T07:08:00
2018-01-19T07:08:00
118,088,974
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from django.conf.urls import url from . import views app_name = "myblog" urlpatterns = [ url(r'header_upload/', views.header_upload, name="header_upload"), url(r'upload/', views.upload, name="upload"), url(r'^.*$', views.index, name="index"), ]
[ "1007821300@qq.com" ]
1007821300@qq.com
338b4b961289c052bab4b6b7559d579e8e15e777
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/pandas/tests/extension/base/__init__.py
2b5e5f015acb745d606c525526a88f9e5d43b528
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
2,181
py
"""Base test suite for extension arrays. These tests are intended for third-party libraries to subclass to validate that their extension arrays and dtypes satisfy the interface. Moving or renaming the tests should not be done lightly. Libraries are expected to implement a few pytest fixtures to provide data fo...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
44eb07b4dcb4c2176799f3bb96c5058a0bd24c22
e095a91a3424ecc364c4532e8fc705b728a0d1b1
/YouTobe/if_elif_else.py
78b8f47ce0211bbe12a09990e89f4baf38508b91
[]
no_license
Anakinliu/PythonProjects
caed257e71d2e52f691abc5095c4aca5c052feb2
2246794a88d06eaa381db1b3a72e9bc54a315dd7
refs/heads/master
2021-06-03T05:51:09.319613
2021-01-26T02:35:38
2021-01-26T02:35:38
101,546,309
2
0
null
null
null
null
UTF-8
Python
false
false
158
py
name = "liu" fire = "liu" number = 6 # is比较两个变量的内容是否相等 if name is fire: print("you") elif number is 6: print("not you")
[ "gugeliuyinquan@gmail.com" ]
gugeliuyinquan@gmail.com
880f5f01c2dead94c68feb91730e7140801db088
567ce21932a2cf81daee0e179ee00a868014c83a
/RNN/test.py
7170cbe67be467574c3986d7849716d6e53b3521
[]
no_license
MasterFishfish/Machinelearning-Native-Code-python-
975b144ba59ca4b0abc804c868a6eac68092b369
c69920b4d1c99364efbc51eede3bc621a2f6a968
refs/heads/master
2021-04-03T01:29:10.785379
2018-10-28T09:29:17
2018-10-28T09:29:17
125,151,688
0
0
null
null
null
null
UTF-8
Python
false
false
972
py
import numpy as np def int_to_bin(x, dim=0): print("bin:",bin(x)) x = bin(x)[2:] print("x:", x) k = dim - len(x) if k > 0: x = "0" * k + x return x def rand(lower, upper): return (upper - lower) * np.random.random() + lower if __name__ == '__main__': #a_int = int(np.random.ran...
[ "tusimplefishfish@foxmail.com" ]
tusimplefishfish@foxmail.com
869bd2112b42d53846feb8a2a259c2c383c063e3
cb5230844234ec481bf6c1d9c01f814caea588ac
/rabbitMQ(学习完成)/官方文档(完全消化)/Introduction/send.py
eda59c9d2d5c8da6c0b0f872932cb57dda5c9b83
[]
no_license
yaodwwy/videosCode
d1d7ab91081c2b8e29e7187f29c0abab8c1cc568
5c1da3a0c3155c406cc5288bc609cf05e65f702c
refs/heads/master
2022-06-21T14:51:12.326310
2020-09-02T11:30:51
2020-09-02T11:30:51
155,160,565
0
0
null
2021-12-14T21:24:03
2018-10-29T06:10:34
TSQL
UTF-8
Python
false
false
394
py
#!/usr/bin/env python import pika connection = pika.BlockingConnection(pika.ConnectionParameters(host='localhost')) channel = connection.channel() channel.queue_declare(queue='hello') channel.basic_publish(exchange='', routing_key='hello',#这里填写的是queue的名字 body='Hello World...
[ "yaodwwy@gmail.com" ]
yaodwwy@gmail.com
1c7fee6581187f3a3fda1df4d634db63f3c78b6c
6db1b8b05c6a4fb68f8514f07bc5725e881691ee
/test/test_unsubscribing_subscribers_from_mailing_list_and_a_specified_campaign_request.py
8c21491b57dc22afe543ec1f6203acfe86659187
[]
no_license
mooTheo/Python-Moosend-Wrapper
7cc776dc90a78484b605d33b6e0403fee27f99ac
eaf3b5f82960aef5dfd4201026e57e88ad663005
refs/heads/master
2021-07-07T20:55:32.994324
2017-10-03T14:17:42
2017-10-03T14:17:42
104,724,718
0
0
null
null
null
null
UTF-8
Python
false
false
1,263
py
# coding: utf-8 """ Moosend API TODO: Add a description OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import moosend from moosend.rest import ApiException from moosend...
[ "theo@moosend.com" ]
theo@moosend.com
f2b8d84e857457f00505f66849f4dc1fceac99d1
a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f
/env/bin/jp.py
5c828ba0b83a60dfca08f743320162d9f4017069
[]
no_license
phamcong/alienator-plf
bad8c4e003fd189c43243b31ef2b975b6f154754
ea65628af66fbca51f2248ceb4ba93f858dbddce
refs/heads/master
2022-11-26T01:28:38.286261
2017-11-07T15:12:08
2017-11-07T15:12:08
109,412,097
0
1
null
2020-07-25T23:43:17
2017-11-03T15:30:22
JavaScript
UTF-8
Python
false
false
1,724
py
#!/Users/cuongpham/Data/Coding/ALIENNOR/aliennor-plf/env/bin/python import sys import json import argparse from pprint import pformat import jmespath from jmespath import exceptions def main(): parser = argparse.ArgumentParser() parser.add_argument('expression') parser.add_argument('-f', '--filename', ...
[ "ccuong.ph@gmail.com" ]
ccuong.ph@gmail.com
bf71c84aabf5017747719fdd8a34e0cd8a279466
08b93d56d8882666d615bcc89906f3b19e7e5073
/releaser/__init__.py
049702970047a0f81c4731919b9a8b3e22bda683
[ "MIT" ]
permissive
embray/releaser
56a20ad9e2c4fdcee4df7abd79030760c02b73f9
15c278c86ff35c3472779669cf10ebd0002de757
refs/heads/master
2021-01-18T04:04:25.491163
2013-08-12T10:22:39
2013-08-12T10:22:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,865
py
# -*- coding: utf-8 -*- '''Framework for releasing Python software with variable steps in the release process. ''' from __future__ import (absolute_import, division, print_function, unicode_literals) import subprocess from sys import platform from pkg_resources import parse_version from bag.co...
[ "nandoflorestan@gmail.com" ]
nandoflorestan@gmail.com
e4aea60b44029925563bddc8901a131db5a4f648
be652b0b1b255df320d244caf115e6fabb60c77d
/py-web-data-master/urllib1.py
6016adbd54050a49c77ddca2b078e574c20ed560
[]
no_license
bpinkert/portfolio
4b505458bbdca3bada05039ea791c6cba3e58ffd
d8ff0582611f9dabaeee6d6ae94113fd17b98ccb
refs/heads/master
2022-12-05T08:25:10.105766
2019-06-24T22:25:59
2019-06-24T22:25:59
192,994,316
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
#!/usr/bin/env python import urllib fhand = urllib.urlopen('http://www.py4inf.com/code/romeo.txt') for line in fhand: print line.strip()
[ "bpinkert@gmail.com" ]
bpinkert@gmail.com