blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
015a8e9ef9d42e0845eedd82384f1664674a5957 | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/mcmc/legacy_random_walk_metropolis_test.py | cc0e6d73a93c859b63903599869a1b5536077d7b | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 6,468 | py | # Copyright 2018 The TensorFlow Probability 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1ecb996f4097f56f0ce63ab0d6dedf6b7f3b0ff8 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_video/mmaction2/configs/recognition/slowonly/slowonly_imagenet_pretrained_r50_8x4x1_64e_ucf101_rgb.py | 48df87cc320b51fd2cd980cd78eade24f3d1d968 | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,034 | py | _base_ = [
'../../_base_/models/slowonly_r50.py',
'../../_base_/schedules/sgd_150e_warmup.py',
'../../_base_/default_runtime.py'
]
# model settings
model = dict(cls_head=dict(num_classes=101))
# dataset settings
dataset_type = 'RawframeDataset'
data_root = 'data/ucf101/rawframes/'
data_root_val = 'data/uc... | [
"caixiaochen@4ParadigmdeMacBook-Pro.local"
] | caixiaochen@4ParadigmdeMacBook-Pro.local |
6511592e6810655b1bf0ef09338b91728067e6fe | 31e113e0baa03ccc7b58ecef8a1116ad6501e33a | /tensorflow_probability/python/experimental/mcmc/preconditioned_hmc_test.py | d13b3d5d494cf099bbc7be9fd385bbe34bc6cde2 | [
"Apache-2.0"
] | permissive | ksachdeva/probability | 9dbb771ec4da8094dea1c31d6cd5d514c2fe2c6f | dd24b7a6495e8801b7e7852aab16d6704993147c | refs/heads/master | 2021-07-19T12:40:09.133886 | 2021-02-09T16:29:17 | 2021-02-09T16:31:18 | 241,638,637 | 2 | 0 | Apache-2.0 | 2020-02-19T14:12:55 | 2020-02-19T14:12:54 | null | UTF-8 | Python | false | false | 28,713 | py | # Copyright 2020 The TensorFlow Probability 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5b18fbd4b0a8183ff967c046a05f8f8ac468e3eb | 2711e7408e590648ac6a51725c2177a56c566403 | /smilebuddies/urls.py | ea9397e69f37780d921d593336f630dad2ff758f | [] | no_license | SeedyROM/smilebuddies | 457415c1c843b495d92bdb925b0597411f1222c2 | 6ba4827205ce48c1b19786c9e32b9993cf8b43aa | refs/heads/master | 2020-03-21T15:29:13.592031 | 2018-06-26T10:38:38 | 2018-06-26T10:38:38 | 138,715,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """smilebuddies URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-... | [
"rallokkcaz@gmail.com"
] | rallokkcaz@gmail.com |
e5850cab963a2bed4094268fcad193eda0cd489c | 717171ed7a14ad60dd42d62fe0dd217a0c0c50fd | /19年7月/7.18/url编码和解码.py | 44e1a5f421f2f103c0c08b57f4de71423a436f54 | [] | no_license | friedlich/python | 6e9513193227e4e9ee3e30429f173b55b9cdb85d | 1654ef4f616fe7cb9fffe79d1e6e7d7721c861ac | refs/heads/master | 2020-09-04T14:34:48.237404 | 2019-11-18T14:54:44 | 2019-11-18T14:54:44 | 219,756,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | # Python进行URL解码
# 所用模块:urllib
# 所用函数:urllib.unquote()
from urllib.request import quote, unquote
# import urllib # 这样不行
rawurl = "%E6%B2%B3%E6%BA%90"
url = unquote(rawurl)
print(url)
print(quote("河源"))
print(type(quote('河源')))
# URL为何要编码、解码?
# 通常如果一样东西需要编码,说明这样东西并不适合传输。原因多种多样,如Size过大,包含隐私数据。对于Url来说,之所以要进行编码,
# 是因为Url中有些... | [
"1164166295@qq.com"
] | 1164166295@qq.com |
69e17f4c855e3719a67fb44ed072035427f7e853 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /glue_read_2/workflow-run_get.py | eb26a1136104d518e28d211b93a913de8e86b4f2 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-workflow-run.html
if __name__ == '__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
1cdef2efca5b6c72f28e2bd56aee45c125d3e2e9 | 21cfc943bf4989362fe4b1063ee9451a44175098 | /kitsune/kbadge/__init__.py | 24d06aa6bd2f1657367f5d85448c307b3bbb3212 | [] | permissive | feer56/Kitsune1 | 6230a8f01b554c3bb6b4a7016edf198f7b2d74dd | 0b39cbc41cb7a067699ce8401d80205dd7c5138d | refs/heads/master | 2023-01-07T14:34:24.046353 | 2014-11-23T04:38:04 | 2014-11-23T04:38:04 | 27,058,591 | 1 | 0 | BSD-3-Clause | 2022-12-27T14:53:52 | 2014-11-24T03:14:18 | Python | UTF-8 | Python | false | false | 28 | py | BADGER_BADGE_PAGE_SIZE = 12
| [
"rehandalal@gmail.com"
] | rehandalal@gmail.com |
4d7fbb683f749be440f1e3f86814a797b247768e | 47fc606bcdfe5b563409386c94f745f920408851 | /src/python/twitter/common/python/marshaller.py | b5c29a06a99c6afbea083559b3636740c63a4085 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ewhauser/commons | 2ef443c4f0be2fbbf1ff3226ed35058a7cc8254a | 0777b346cf1b32722b7b5f6ae9e6593fe185de22 | refs/heads/master | 2021-01-18T06:00:06.901691 | 2013-06-11T22:14:55 | 2013-06-11T22:14:55 | 1,741,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | from imp import get_magic
import marshal
import struct
import time
from twitter.common.lang import Compatibility
class CodeTimestamp(object):
TIMESTAMP_RANGE = (4, 8)
@classmethod
def from_timestamp(timestamp):
return CodeTimestamp(timestamp)
@classmethod
def from_object(pyc_object):
stamp = time.... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
640b1ecbbff09f8d8ae3a1a9b0aa9c8146f0a093 | 4ba6207a7e4aa84da494e0f6d811eca606659b73 | /groupster/migrations/0003_jobseeker_resume.py | 5f0af9769b89646d52c1f168f716bf3a2099c0e6 | [] | no_license | jkol36/groupster | da5d9d4b882cd9df7a4b187b65cdc3fe8175e794 | 5967cb7b2689dec760727c7534ff0f73a6901ba4 | refs/heads/master | 2021-01-02T09:19:49.841001 | 2015-06-10T18:57:37 | 2015-06-10T18:57:37 | 35,061,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('groupster', '0002_remove_jobseeker_resume'),
]
operations = [
migrations.AddField(
model_name='jobseeker',
... | [
"jonathankolman@gmail.com"
] | jonathankolman@gmail.com |
67bffd0980d1ea7f4201ae6348603c60f4fb7966 | 42fa1862effc3e494859904b76c43ce2bcd623a0 | /idealised_box_simulations_paper2b.py | 94394f21530d4fa8c134d0b1ed14dcc4aec1a8ec | [] | no_license | PaulHalloran/desktop_python_scripts | 3e83aedf3e232da610b5f7477e4d7e8fb0253f99 | 325e923527278a5c3e9ab8c978f29b2816dab087 | refs/heads/master | 2021-01-01T19:52:06.828997 | 2015-06-27T21:14:10 | 2015-06-27T21:14:10 | 38,155,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,527 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import matplotlib as mpl
results = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/results/spg_box_model_qump_results_3.csv',delimiter = ',')
results_stg = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/... | [
"paul.halloran@gmail.com"
] | paul.halloran@gmail.com |
52c45fcb6941676bb95e51b20065f7003e69df4e | 502e97f0ec4f287b8280a546e7f2555ff3a5a1fd | /cnn_3d/loss_ssim.py | 1f9e166d4af572dad02709668df737d66c13e862 | [] | no_license | carlasailer/cnn_ct_pet | d350692be03432e025e33db6296ac33b36bedf08 | 4e256bb73f7ea0ab046c231762001b9f3535bb00 | refs/heads/master | 2020-12-18T23:11:24.048337 | 2020-01-22T10:40:52 | 2020-01-22T10:40:52 | 235,549,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 14:25:02 2019
@author: s1287
"""
import h5py
import os
import keras.backend as K
import numpy as np
def calc_ssim_git(y_true, y_pred):
"""structural similarity measurement system."""
## K1, K2 are two constants, much smaller than 1
K... | [
"40063163+carlasailer@users.noreply.github.com"
] | 40063163+carlasailer@users.noreply.github.com |
b784cb302379736956e6936d0636e72dbf650465 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02399/s627926226.py | 2a4ef109e41aa4a7c46ff6352b1a640bb190278c | [] | 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 | 127 | py |
1
2
3
4
5
6
a, b = [int(i) for i in input().split()]
d = a // b
r = a % b
f = a / b
print('{0} {1} {2:.5f}'.format(d, r, f)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
05a8191a0221fcf44c3631cb1ae3b634e90a6c50 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802103056.py | a8e741def594e4049345cfbf9c195c01f24b8d0d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d804293a9bb22f13def744ccad3cf0bcce62647f | 0fa7b9328e04d2ff5a2b607d9ec6962b7ee97532 | /vi_lib/lib/torchutils/test/test_models.py | afef409c72474e1be1ac61ba78474b7a8a8e86e3 | [] | no_license | aaronpmishkin/normalizing_flows | 4b12bcbe85f400bb27d21e93d8a3c35d9e5df90c | 249f0d99fee6d07783a2a3a595cfeb439af8c599 | refs/heads/master | 2020-04-09T01:09:40.906963 | 2018-12-14T07:47:08 | 2018-12-14T07:47:08 | 159,893,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | import unittest
import torch
import torchutils.models as models
from torchutils.params import bp2v
from torch.nn.utils import vector_to_parameters as v2p
from torch.nn.utils import parameters_to_vector as p2v
class MLPTestCase(unittest.TestCase):
def assertAllClose(self, a, b):
self.assertTrue(torch.all... | [
"aaronpmishkin@gmail.com"
] | aaronpmishkin@gmail.com |
00dccca5378c4cc542d8e54c54e252e22ed0e38f | 5d4841bd3160418d3deb88b241edc22c7b7eab18 | /server/serving/package_scanner.py | 10cab85c3a049a56099c34414e74816f80bf0b21 | [] | no_license | cxbn12/ntu-nlp | 2493523bb886facfd661dd4194082ccd653496ae | de98f636919267a3701383636ccb31ccf108f28b | refs/heads/master | 2022-03-16T08:32:24.302783 | 2019-11-04T15:31:56 | 2019-11-04T15:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os.path as osp
import sys
from pathlib import Path
def scan_package(path, base_dir='.'):
"""
Scan for all the python packages under a certain path. Note that this
will automatically append the scan path to the PYTHONPATH. You should be
careful if there is some packages with the same name. In th... | [
"YLI056@e.ntu.edu.sg"
] | YLI056@e.ntu.edu.sg |
cdaacfbe7fce884d91c74e79e4a520fdf8185bea | 382ce68736c1dee91dcb5eb7846eff10519d2b70 | /etcewrappers/utils/iperfserver.py | f780cf8d9b291281079960623c45cbb9d682bb1a | [] | permissive | adjacentlink/python-etce | 4345c7bd719f18022fdb96b0c30efc529948f87c | 72d58535e230f3178b1cab9616a3412514dabaf3 | refs/heads/master | 2023-08-18T05:08:53.519074 | 2022-11-17T16:47:44 | 2022-11-17T16:47:44 | 103,570,572 | 7 | 4 | BSD-3-Clause | 2022-10-11T11:13:42 | 2017-09-14T19:01:27 | Python | UTF-8 | Python | false | false | 3,528 | py | #
# Copyright (c) 2015-2018,2020 - Adjacent Link LLC, Bridgewater, New Jersey
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright... | [
"eschreiber@adjacentlink.com"
] | eschreiber@adjacentlink.com |
b104d48e41d9130046b0c49a32c62beba8f2a35d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/179/58876/submittedfiles/funcoes1.py | e9ffe616ef1b13fe73cb6d7961c81ad1912c3af5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # -*- coding: utf-8 -*-
def crescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]>[i+1]:
cont=cont+1
if cont==len(a):
return(true)
else:
return(false)
def decrescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]<[i+1]:
cont=c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
73b8253035b13946cdbafdad3f3ff53fae1a417a | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /arrays/leetcode/grid/set-matrix-zeroes-73.py | 4b6d885e0787eeebbf94701b9d37fb1cd5bc4ce0 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | grids = [
[[1, 1, 1], [1, 0, 1], [1, 1, 1]],
[[0, 1, 2, 0], [3, 4, 5, 2], [1, 3, 1, 5]],
[[1, 2, 3, 4], [5, 0, 7, 8], [0, 10, 11, 12], [13, 14, 15, 0]]
]
# T=mn,S=m+n
def main(grid):
m, n = len(grid), len(grid[0])
rows, cols = set(), set()
for i in range(m):
for j in range(n):
... | [
"nikhilgoyal104ah4@gmail.com"
] | nikhilgoyal104ah4@gmail.com |
82a29e952d943526f88af2dd50b7eda0da44f165 | a38aa3779c16f31d02a2df031fd4ce072facaeb9 | /project/utils.py | 7ae54df72e5e3e66e59363eb3dbee5eab2359549 | [
"MIT"
] | permissive | nikifkon-old/csa-almaty-bot | a0a39673dfa39eb5f6ac6dd58eea08008d52c350 | f18d087c86b3b90171dec080e780e330d62e711a | refs/heads/master | 2022-11-30T07:16:45.839562 | 2020-08-19T09:48:39 | 2020-08-19T09:48:39 | 288,692,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | QUESTION_CHAR = "❓"
EXCLAMATION_CHAR = "❗️"
SEARCH_CHAR = "🔎"
BACK_CHAR = "🔙"
MENU_CHAR = "☰"
BACK_TO_MENU_TEXT = "{prefix} Вернуться к списку категорий".format(prefix=MENU_CHAR)
BACK_TO_SEARCH_RESULT = "{prefix} Вернуться к результатам поиска".format(prefix=BACK_CHAR)
OPEN_SEARCH = "{prefix} Найти вопрос".format(p... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
ae336a597ede11303d18e76036cbc9ac291953b5 | 6c90112e7d21086ef06432bb417bdb339fed4c33 | /django-tally/api/models.py | 11af0648223a22b4581387c627995055a13352e3 | [
"MIT"
] | permissive | blakelobato/BetterBusinessByReview | 9767a04cf1b1a8a8e96cdea634a24887182834ff | 1f8f0a03dc24a661b112b60fed1946142d918294 | refs/heads/master | 2022-04-04T00:08:37.474620 | 2020-02-06T21:01:00 | 2020-02-06T21:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from django.db import models
from django.conf import settings
from django.core.validators import int_list_validator
from django.contrib.auth.models import User
# Create your models here.
class Url(models.Model):
id = models.IntegerField(primary_key=True, )
url = models.CharField(max_length=5000)
# created ... | [
"LilySu@users.noreply.github.com"
] | LilySu@users.noreply.github.com |
deae7399994f02fc02cd2a1de41c3876a0a42f3d | d5005de630cbfcac46b6f90be845a827a029ff0d | /urlshortner/api/serializer.py | c040926e02219c805df9c6c192f55d7729c0b142 | [] | no_license | mahinm20/url-shortner | d4b18917a002aa12f4fdd1f6f3e2bf026b34f0ad | ea084f96136d5810b8ad6d53bf0acc1a8291b782 | refs/heads/master | 2023-08-11T07:35:04.804424 | 2021-09-14T09:37:27 | 2021-09-14T09:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from .models import Link
class LinkSerializer(ModelSerializer):
class Meta:
model=Link
fields='__all__'
| [
"mahinmalhotra20@gmail.com"
] | mahinmalhotra20@gmail.com |
40d8671c94da3a301dcd8dd73470c1af8be6c4dc | 4f2cdd9a34fce873ff5995436edf403b38fb2ea5 | /Data-Structures/List/Part2/P003.py | b6642ac9b5001105f692e511ac814eb924a9b9b2 | [] | no_license | sanjeevseera/Python-Practice | 001068e9cd144c52f403a026e26e9942b56848b0 | 5ad502c0117582d5e3abd434a169d23c22ef8419 | refs/heads/master | 2021-12-11T17:24:21.136652 | 2021-08-17T10:25:01 | 2021-08-17T10:25:01 | 153,397,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
Write a Python program to generate all permutations of a list in Python.
"""
import itertools
print(list(itertools.permutations([1,2,3]))) | [
"seerasanjeev@gmail.com"
] | seerasanjeev@gmail.com |
7b375c81b77e9b35c1623c3699790ed98d0b9a61 | 5c90b31943aff36cab344574b16575025e649b7e | /examples/tour_examples/xkcd_tour.py | 73632b0471a64d556c17914eda6f7e0bd123423f | [
"MIT"
] | permissive | 766/SeleniumBase | 7e23adb3d40cf3d9912e2ff0f4dd56c2fafdb29b | b81e7b93e16a9abee6d2386f55c97843aa90a7d9 | refs/heads/master | 2020-08-22T08:54:47.269550 | 2019-12-06T13:44:17 | 2019-12-06T13:44:17 | 216,360,246 | 1 | 0 | MIT | 2019-12-06T13:44:18 | 2019-10-20T12:43:47 | null | UTF-8 | Python | false | false | 1,051 | py | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basic(self):
self.open('https://xkcd.com/1117/')
self.assert_element('img[alt="My Sky"]')
self.create_shepherd_tour()
self.add_tour_step("Welcome to XKCD!")
self.add_tour_step("This is the XKCD logo.",... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
41e48a86030f730e374988d7f00909bc2d3b0cc9 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618092905.py | f95b9e064c825ab7d3d8a555a7f973fcb638f23b | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_str = re.findall(r'(^.+?... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
45242f33898eb7f9f32d81e88104ff79dccc109a | f9fe13fe62ba3fb1fb096da4268d5dc43e435ea4 | /44)in_range_or_not.py | 7b43b95dede8dbe7f422e93fd0c9f353fc060d58 | [] | no_license | MANNEMPRATAPVARUN/guvipy | 7e460da8b9d98c2fcd488757585d5bd207570666 | 4da4fe4f3d4855e14383015da19588ef0aea4f32 | refs/heads/master | 2020-06-10T01:22:26.063815 | 2019-06-12T13:44:44 | 2019-06-12T13:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | num2=int(input())
if num2 in range(1,10):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | MANNEMPRATAPVARUN.noreply@github.com |
dc3a3df04d9eba2f8895e74b91128c8c0b6b8a41 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/scattergeo/marker/colorbar/_title.py | e584a0b07ef22e6fd0a89b476a1df8aef97c2e3d | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 1,264 | py | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self,
plotly_name='title',
parent_name='scattergeo.marker.colorbar',
**kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_na... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
e82882454e7c7b079412b3a407adef7c35b5b239 | 501b6a773f82a44dba7e2393108c839e33b355a6 | /09_strings-and-text/09_05_new_friends_1.py | 9f584b942188cfc7da1a3894e2ec5626472c2738 | [] | no_license | Bat-Turtle/python-101 | fda2c79e3a270924f37494b25377b5645098a5c7 | 8f4582a5a9b398d2163c27aa8fe433efd8ff69fa | refs/heads/main | 2023-08-19T16:37:46.732125 | 2021-10-26T16:46:46 | 2021-10-26T16:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # Write code that produces a SyntaxError when you run this script.
| [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
4c33e3aca15d5af803da190c1a4f63b0f3779bc9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_operations.py | 13f814257aab9d3cc4f66a805c212581c9ced361 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 251,605 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
8849959f26a02a64d2d77a028c48084c8fc9310d | 955060597d643c695dff53b6cff0ea649db68a94 | /dequorum/urls.py | 44cfd19538837d6340d8c57944e6fc065b461a4c | [
"BSD-2-Clause"
] | permissive | pombredanne/django-dequorum | e99386fd01d640776d3ac6f2851c4ddc15316713 | b790e9b8b0920581a48c67679648a6df811e505b | refs/heads/master | 2021-01-18T10:10:33.571111 | 2013-12-13T23:04:16 | 2013-12-13T23:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from django.conf.urls import patterns, include, url
from nap import api
urlpatterns = patterns('',
(u'^$', 'django.shortcuts.render', {'template_name': 'dequorum/index.html'}),
(u'^api/', include(api.APIS['dequorum'].patterns(flat=True))),
)
| [
"curtis@tinbrain.net"
] | curtis@tinbrain.net |
9b07e90479e6556a9f1310bbceee661ebf9051fc | 0107160f73c6f46a0c693f0aa8b2b22bb04aaa07 | /flex/redis.py | 8a0c1594fac0646ca5ab8f762a94f41024245212 | [
"MIT"
] | permissive | centergy/flex | 8a9054171a121671e09646a88259c947d0d87cc4 | 4fc11d3ad48e4b5016f53256015e3eed2157daae | refs/heads/master | 2022-12-13T06:01:09.561457 | 2018-08-22T20:32:34 | 2018-08-22T20:32:34 | 145,748,684 | 0 | 0 | MIT | 2022-12-08T00:45:07 | 2018-08-22T18:40:47 | Python | UTF-8 | Python | false | false | 1,958 | py | from flask import current_app
from threading import Lock
from flex.utils.module_loading import import_string
__all__ = ('RedisManager', 'redis')
class _Connector(object):
__slots__ = ('app', 'lock', '_client', 'config')
def __init__(self, app, config):
self.app = app
self.config = config
self._client = No... | [
"davidmkyalo@gmail.com"
] | davidmkyalo@gmail.com |
3d838033d15386a3eba79d8ff6c914677e51f87f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/158/47953/submittedfiles/testes.py | 79ed55e189435778a26b71a91b9e7d1d21f2ea6a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
r=int(input('raio do circulo:'))
p=3,1415
area=p*r*r
print(area)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
494729e6f2f30c78583ca65070a1387032401821 | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/cassiopeia/transformers/championmastery.py | c45ee0d705e5dc57e8ccf720ebd5f8d5dd952cb4 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 1,956 | py | from typing import Type, TypeVar
from copy import deepcopy
from datapipelines import DataTransformer, PipelineContext
from ..core.championmastery import ChampionMasteryData, ChampionMasteryListData, ChampionMastery, ChampionMasteries
from ..dto.championmastery import ChampionMasteryDto, ChampionMasteryListDto
T = Ty... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
0a2a6e6a68e79bebbef374d63bfd4e57a41093db | eb87c8b1ce8591d207643d3924b7939228f1a4fe | /conformance_suite/test_assign_test_var.py | b3a5f3ec6ae764f29359d631f46cf82e492d26f7 | [] | no_license | brownplt/insta-model | 06543b43dde89913c219d476ced0f51a439add7b | 85e2c794ec4b1befa19ecb85f2c8d2509ec8cf42 | refs/heads/main | 2023-08-30T19:06:58.083150 | 2023-05-03T18:53:58 | 2023-05-10T22:29:18 | 387,500,638 | 5 | 0 | null | 2022-04-23T23:06:52 | 2021-07-19T14:53:09 | Racket | UTF-8 | Python | false | false | 414 | py | # test_assign_test_var.py
# This should pass.
from typing import Optional
def f(x: Optional[int]) -> int:
if x is None:
x = 1
return x
# def test_assign_test_var(self):
# codestr = """
# from typing import Optional
# def f(x: Optional[int]) -> int:
# if x is None:
# ... | [
"lukuangchen1024@gmail.com"
] | lukuangchen1024@gmail.com |
818aa3abf6f0f26c357550965b482be18aa0a2b7 | 4ac57cc07c50d1cc4dbf4894b77783fa03a8c7b1 | /4-case-study-sunlight-in-austin/9_daily_hours_of_clear_sky.py | 127206faced7ca4e185d3d0c5346c054b778c6ed | [] | no_license | OCulzac/pandas-foundations | 905fa778beee5e9d8210716abcc06eeeaf02b8b9 | f13e7270dfcbb661da7a2fa3f26b4001df5eadc9 | refs/heads/master | 2020-05-19T10:44:58.816172 | 2019-05-05T04:09:45 | 2019-05-05T04:09:45 | 184,977,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | """ Daily hours of clear sky
In a previous exercise, you analyzed the 'sky_condition' column to explore the difference in temperature on sunny days compared to overcast days. Recall that a 'sky_condition' of 'CLR' represents a sunny day. In this exercise, you will explore sunny days in greater detail. Specifically, you... | [
"oronculzac@gmail.com"
] | oronculzac@gmail.com |
bdeef222539d05e8198b4ec62cdb482012b69652 | cd08794c5ccdae4f0c9260ba537c2c2f11f5658b | /jq/jq_spider.py | 4513d09576491b776bc6dc299148bed6696ad441 | [] | no_license | Biking0/spider_project | d0b1d5443070240d8c28d8db470de78323f7134c | 8c8c874cea90684f255011e4ecf03aa9cd10a0f0 | refs/heads/master | 2022-01-28T07:53:26.128321 | 2019-06-01T08:17:19 | 2019-06-01T08:17:19 | 189,704,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,038 | py | # coding=utf-8
import time, logging, requests, json, urllib, re, redis, random, sys, traceback, settings
from datetime import datetime, timedelta
from urllib.parse import urlparse, parse_qs, urlencode
# from urlparse import urlparse, parse_qs
from lxml import etree
from fake_useragent import UserAgent
from utils... | [
"1342831695@qq.com"
] | 1342831695@qq.com |
2f6956dd6f187273f31b75d5d6429b5d5d23c030 | 7a13a9def50e3d87d74f7d3a2b990cd9bc1acda1 | /accounts/admin.py | 1ae86e995a6ecd33ad7fd7b61e36b1ee99444204 | [] | no_license | anandrajB/speedy-scanner | a97bfe16feef483db9e2fe77a2b1639e1dea8707 | fd5d4fd7b3ba600d975ae2aaf73ae81e1d0e3632 | refs/heads/master | 2023-08-31T09:07:46.802433 | 2021-09-20T12:21:22 | 2021-09-20T12:21:22 | 374,634,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | from django.contrib import admin
from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from .models import MyUser, Profile, File, Batch
cla... | [
"anand98.ar@gmail.com"
] | anand98.ar@gmail.com |
ccdb0c30a8b56af6595a2ea1e7306c14dd805c10 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/HUAWEI-TRNG-MIB.py | a33b84f6643f628a5a51e2194e7f39fc3a47f759 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,263 | py | #
# PySNMP MIB module HUAWEI-TRNG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-TRNG-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:49:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
cc6895b8b702d18633c777f02493a8fe29b851f5 | 05263538c3ad0f577cdbbdb9bac87dcf450230ce | /alexa/ask-sdk/ask_sdk_model/dialog/elicit_slot_directive.py | 837a97063497b6119b45f42914b105a8118715ce | [] | no_license | blairharper/ISS-GoogleMap-project | cea027324fc675a9a309b5277de99fc0265dcb80 | 3df119036b454a0bb219af2d703195f4154a2471 | refs/heads/master | 2020-03-21T16:47:21.046174 | 2018-10-24T08:05:57 | 2018-10-24T08:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | # coding: utf-8
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"blair.harper@gmail.com"
] | blair.harper@gmail.com |
3f922e75f5f171c2885caab43d2367500edd7630 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-ice/aliyunsdkice/request/v20201109/UpdateCustomTemplateRequest.py | 6bcadb5d64d94f2e897f29f23f3529c5c5868e10 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,843 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
6f0ba3d11ea0ff417f52bc4d1e609f0f442421c9 | 130215e73cd45824fc5b7b2bc85949ce03115f20 | /py/netmod_kar2.py | 4479417117ce2a4aa307bbe3d9f7777fdceeeb82 | [] | no_license | felicitygong/MINLPinstances | 062634bf709a782a860234ec2daa7e6bf374371e | 1cd9c799c5758baa0818394c07adea84659c064c | refs/heads/master | 2022-12-06T11:58:14.141832 | 2022-12-01T17:17:35 | 2022-12-01T17:17:35 | 119,295,560 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66,023 | py | # MINLP written by GAMS Convert at 11/10/17 15:35:22
#
# Equation counts
# Total E G L N X C B
# 667 43 0 624 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"feligongcity17@gmail.com"
] | feligongcity17@gmail.com |
6d4f999516d1bf9e5181244fe6b40e4b59277e3c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/lkf.py | d19b23b9ac9f5e630d69a188c39ceef2922114b2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3e29d4d7c333026e5344ef9516e21f5e220cfd24 | f98de2db6b24d30d64f1145c7d8da4a40385a87f | /packages/grid_control_cms/lumi_tools.py | 50eb266c862e2c20ae303976fae5474ea14c2247 | [] | no_license | greyxray/grid-control | f9f453491fe7bc506d4cfc240afaa364ba9db84b | ed10fdb6ff604006a5d52dcd43c2e55c9e962c0a | refs/heads/master | 2020-04-15T13:15:21.103357 | 2019-01-08T18:23:07 | 2019-01-08T18:23:07 | 164,709,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,665 | py | # | Copyright 2010-2016 Karlsruhe Institute of Technology
# |
# | 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 require... | [
"stober@cern.ch"
] | stober@cern.ch |
afc06ae4b405fbce9055d076027588304160a0e4 | 83b242997a1560214285fd38ab4d39a0b1210ddc | /SOL4Py/network/ZThreadedTCPServer.py | add7627d5756461363417a09cff04384cc3dbf66 | [] | no_license | ivartz/vid2fft | 0a25d853e178b43fd0a5f765934887963f5c37f9 | 1b6ec82de04f86819ab4c1056d4f9d9bde1ed9c8 | refs/heads/master | 2020-08-07T21:44:28.745553 | 2019-10-08T09:18:41 | 2019-10-08T09:18:41 | 213,594,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,963 | py | #/******************************************************************************
#
# Copyright (c) 2018 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free... | [
"djloek@gmail.com"
] | djloek@gmail.com |
84c806a6c6711ceb7dc060bcec0926b8246fdadb | e0980f704a573894350e285f66f4cf390837238e | /.history/rocketman/settings/production_20210104181634.py | 89446f098f49d16a5372b9f81e7bc516ac235f9c | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import os
from .base import *
DEBUG = False
SECRET_KEY = '$^8&x#8a5!7@r!#6ov9bfl(j8k^6+$v-1x+*#!uqf(=^n+*$w3'
ALLOWED_HOSTS = ['localhost', 'rocketman.naukawagtail.com', '*']
cwd=os.getcwd()
CASHES = {
'default': {
'BA'
}
}
try:
from .local import *
except ImportError:
pass
| [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
2c197d376b5580c493f3dddf7bdbd0b7cfbe9d98 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000450.py | c9d0c0d9993b0f24c7ecbb3cf98c786e2d4f0c05 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
159e1bbb69f50777b2ba294e3298a272b72dcb2a | 7f4c82f7eb8d2805e378586f14e214cdaacfdb4a | /books/model/CommentList.py | 4c2ece791575dd51f9a9ea502c5e8bd24457084a | [
"MIT"
] | permissive | deepubansal/books-python-wrappers | 5a922267ec8382b3542638d894c96f4891b57bf5 | 51210c8d557a32564f976a56214d3c0807f46a90 | refs/heads/master | 2022-12-05T11:25:01.694021 | 2020-08-29T07:35:23 | 2020-08-29T07:35:23 | 288,738,813 | 0 | 0 | MIT | 2020-08-29T07:35:24 | 2020-08-19T13:26:04 | Python | UTF-8 | Python | false | false | 1,042 | py | #$Id$
from books.model.PageContext import PageContext
class CommentList:
"""This class is used to create object for comments."""
def __init__(self):
"""Initialize parameters for Comments list."""
self.comments = []
self.page_context = PageContext()
def set_comments(self, comment)... | [
"sahaya.ramesh@zohocorp.com"
] | sahaya.ramesh@zohocorp.com |
243f9844bc2368e7521d055910a36de2f944497b | c03225c395b5b0d8cdd79e88f78c13666c7c953a | /utils/dataset/__init__.py | 816fb0be6aedd8710f9820a6ca430f6ba99fe353 | [] | no_license | zhaoyin214/cv_lab_pytorch | de52bacd098c378cd06a80f6f77a76b42d7d0e42 | 4ccaf973678943f6b8e3b07d053cc447d5d57e76 | refs/heads/master | 2022-11-17T06:48:58.121305 | 2020-07-15T23:48:33 | 2020-07-15T23:48:33 | 272,972,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from .load import load_ibug_300w | [
"zhaoyin214@qq.com"
] | zhaoyin214@qq.com |
aee868eb2597469429538bbd075d10a018a753ac | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode_medium/Question_111_Combination_Sum_III.py | 96ac21f6e928162be84fa4ea48977d9e38d1fd35 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def combinationSum3(self, k, n):
"""
:type k: int
:type n: int
:rtype: List[List[int]]
"""
vec = []
res = []
self.helper(k, n, 1, vec, res)
return res
def helper(self, k, n, l, vec... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
d7e694d8b7e339f353fe621aef7be75b1bd0d979 | 9a1b033774e371bd6442048f43e862dfb71abed7 | /Lists As Stacks And Queues/Exercises/Cups_and_Bottles.py | 57a94258fc2f957d4054343b06ab2bb9d026c989 | [] | no_license | mialskywalker/PythonAdvanced | ea4fde32ba201f6999cd0d59d1a95f00fb5f674b | c74ad063154c94b247aaf73b7104df9c6033b1a5 | refs/heads/master | 2023-03-09T00:13:28.471328 | 2021-02-24T15:21:11 | 2021-02-24T15:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from collections import deque
cups_capacity = deque(int(el) for el in input().split())
bottles_capacity = [int(el) for el in input().split()]
wasted_water = 0
while True:
if not cups_capacity or not bottles_capacity:
break
bottle = bottles_capacity.pop()
cup = cups_capacity.popleft()
total ... | [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
5c4481583616b552e258f790a750fce1afc4245a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/MPOA-EXT-MIB.py | 8cccf569872dba8ee2a1f2f3442c0ee661ce4a91 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 10,427 | py | #
# PySNMP MIB module MPOA-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MPOA-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:14:59 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
da07c9bf4e4dfa6fedec67e45efc284753925f26 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02952/s489061530.py | c11b8cfc760ea2a0ea44bc3ca92b0888dbd71b04 | [] | 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 | 180 | py | s=str(input())
n=len(s)
s=int(s)
if n==1:
print(s)
elif n==2:
print(9)
elif n==3:
print(10+s-100)
elif n==4:
print(909)
elif n==5:
print(910+s-10000)
else:
print(90909) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa20d3ae1f8e6295713b6a8f217a871b4d843616 | b6f4393777d4f6a3a8b599700ce3405be76c4bc4 | /Apple-Music/Leticia/api/models.py | eb394de811af6473a82f9e7f5f7aa8d11e8e4c24 | [] | no_license | azatnt/Apple-Music-rest_framework- | b13897dd40337384469df269cdf46bd085487442 | 09b7e602078a6d82f63725b757bb657afd221776 | refs/heads/main | 2023-02-10T16:45:47.618860 | 2021-01-14T14:37:25 | 2021-01-14T14:37:25 | 326,934,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.db import models
import string
import random
def generate_unique_code():
length = 6
while True:
code = ''.join(random.choices(string.ascii_uppercase, k=length))
if Room.objects.filter(code=code).count() == 0:
break
return code
class Room(models.Model):
code =... | [
"58590243+pr1nce07@users.noreply.github.com"
] | 58590243+pr1nce07@users.noreply.github.com |
4226d913c82fc3fd3d68a44df6697fe697b6cc5c | ca5b5c217e0053645c2664d777699e9a5050715e | /tex/gen_links.py | 2a733f8bffe856d7ac4c2dffecd46daa7733bfae | [
"MIT"
] | permissive | rodluger/starrynight | 1405ffdb5a0dd0fefc0ae34e7cdaf7eab4735356 | d3f015e466621189cb271d4d18b538430b14a557 | refs/heads/master | 2021-10-26T03:32:15.220725 | 2021-10-22T15:16:48 | 2021-10-22T15:16:48 | 236,542,672 | 7 | 1 | MIT | 2020-06-03T19:51:10 | 2020-01-27T16:58:05 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | from __future__ import print_function
import subprocess
import os
# Generate the github links
hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("utf-8")[:-1]
slug = "rodluger/starrynight"
with open("gitlinks.tex", "w") as f:
print(
r"\newcommand{\codelink}[1]{\href{https://github.com/%s/b... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
a40845fe784984a2a2ef36f79556424959d0fcd3 | 5689bffe9a9594e52f934542994db464ed095d71 | /08_unittest/test05_assert_exercises.py | 1d6a1bd6fa8d1033455a67c98cde5e33428fe349 | [] | no_license | WenhaoChen0907/Web-automation | 5c0e2c61e247f32b0e5f2f2a33c9f8cc6e73dc20 | 5488f2c62016f02c934b709e7e9e6ea831d9891c | refs/heads/master | 2023-03-07T13:31:10.265019 | 2021-02-15T06:33:50 | 2021-02-15T06:33:50 | 338,986,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | # iwebshop正向登录代码练习
import unittest
import sys
import time
from time import sleep
from selenium import webdriver
class IwebLogin(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.maximize_window()
self.driver.implicitly_wait(30)
self.driver.get("http:... | [
"18738127274@163.com"
] | 18738127274@163.com |
96fd031274243132b38f7eb70a57d295d5cdd79e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sy9.py | dbeb1cd55cf03ba4853cb5971ccaa811db6542f3 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
61b227fb19c0098e0d8449df91b59cc77ac3049d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/662.py | e253a45877c6e9142d258233d25715ca05f57e07 | [] | 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,452 | py | if __name__ == "__main__":
with open("A-small-attempt1.in", 'r') as inputf:
outputf=open("A_out.out",'w')
line=inputf.readline()
line=line.rstrip('\n')
test_num=int(line)
for test in range(test_num):
line = inputf.readline()
line = line.rstrip('\n')
n = int(line)
analysis = [[[[]]],[[[]]]]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9706c26c8869c0333343a0dae2cbbd2467b37e93 | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_prop_is.py | e211fe127da287bfb4f0504b7a588929a7f6c795 | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 278 | py | from ramda import *
from ramda.private.asserts import *
from numbers import Number
def test_prop_is():
assert_equal(prop_is(Number, "x", {"x": 1, "y": 2}), True)
assert_equal(prop_is(Number, "x", {"x": "foo"}), False)
assert_equal(prop_is(Number, "x", {}), False)
| [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
326f720d3f00ce6fea68425c9d1ebfbc2906b8df | 9de9bcd87e3f15f743de436d669feb979e55f005 | /timesketch/lib/analyzers/ssh_sessionizer_test.py | a432041fce5b9ee04a020c5228287f633afbcdc1 | [
"Apache-2.0"
] | permissive | jorlamd/timesketch | 97b1f08e9797837672a51bc817426ae61f5fb529 | c7704bede82747d42a8579a264d2b385b93d6dee | refs/heads/master | 2020-12-04T02:54:57.496194 | 2019-11-12T21:07:21 | 2019-11-12T21:07:21 | 230,008,261 | 0 | 0 | Apache-2.0 | 2019-12-24T22:09:17 | 2019-12-24T22:09:16 | null | UTF-8 | Python | false | false | 6,551 | py | """Tests for SSHSessionizerSketchPlugin"""
from __future__ import unicode_literals
import mock
from timesketch.lib.analyzers.ssh_sessionizer import SSHSessionizerSketchPlugin
from timesketch.lib.testlib import BaseTest
from timesketch.lib.testlib import MockDataStore
# TODO _create_mock_event will be renamed in anot... | [
"tomchop@gmail.com"
] | tomchop@gmail.com |
b3eecc48b5a6655fb0ae16960cff65aa207ed89d | a6ef13387c24c719a0dcfeb173521cd70beac282 | /devops/day4/ding_Robot.py | 8f01ac1bc53391322f4ad3edd35ab0fd70672935 | [] | no_license | youjiahe/python | f60472d61daf58b7f5bb6aa557949de4babf8c9c | 74eb4c5ba211ae5ffed2040576e5eead75d16e7d | refs/heads/master | 2020-03-31T02:35:55.787809 | 2019-12-02T16:32:54 | 2019-12-02T16:32:54 | 151,831,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python3
import json
import requests
import sys
def send_msg(url,remiders,msg):
headers = {'Content-Type':'application/json;charset=utf-8'}
data={
"msgtype": "text", # 发送消息类型为文本
"at": {
"atMobiles": reminders,
"isAtAll": False, # 不@所有人
},
... | [
"youjiahe@163.com"
] | youjiahe@163.com |
ee7845df3aecfb80de476bbf727aca8a2ade8529 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_QC118.py | 5c08e2c7132cd11baec4e6f28b5a87f2de870cc0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | # qubit number=3
# total number=20
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
15fcc498298fb27365a93e3595794528564152ce | 9a2fd5e27d3f811cb18763ed388c2d56ae9907b6 | /爬虫练习/gupiao.py | ee4595015acd484f424596fda32dc78170398d30 | [] | no_license | wzc-ob/PycharmProjects | 5297ce60bade883495e5dbdb614131d31c47682e | 09f5ad6004dbdc83d456cabd78b769fde13d5357 | refs/heads/master | 2020-05-05T07:12:38.789400 | 2019-04-06T10:06:08 | 2019-04-06T10:06:08 | 179,817,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | import re
import requests
from bs4 import BeautifulSoup
import traceback
def getHTMLText(url,code = 'UTF-8'):
try:
kv = {'user-agent': 'Mozilla/5.0'}
r = requests.get(url, headers=kv, timeout=30)
r.encoding = code
# print(r.text)
return r.text
except:
return ""
d... | [
"43775612+wzc-ob@users.noreply.github.com"
] | 43775612+wzc-ob@users.noreply.github.com |
edcb1a2c177f6634d25b679f32eaa3d10997b8ca | b6aed63c49d24b4c3e2d5be6795ecbcf0a793653 | /examples/feature_engineering/get_scdv.py | 13cd8123885cea7a8d6159052e017ea37f9643c2 | [] | no_license | sidhee-hande/nlp-recipes-ja | 713f053a3cc907a314c6575a0ce65de2b36076c9 | 8ac5e898864137841de8b03c11da34815009af24 | refs/heads/master | 2023-04-25T03:41:33.536244 | 2021-04-10T23:07:45 | 2021-04-10T23:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from konoha import WordTokenizer
import neologdn
import numpy as np
from utils_nlp.dataset.livedoor import load_pandas_df
from utils_nlp.features import scdv
from utils_nlp.models.pretrained_embeddings.word2vec import load_pretrained_vectors
if __name__ == '__main__':
df = load_pandas_df(nrows=10)
# Normali... | [
"upura0@gmail.com"
] | upura0@gmail.com |
71bf52c3f75e834fe7938987cc7b559aa46b54db | ab0e9b543852bc2d3c828b2351c30d1626f0b321 | /CustomProceduralRiggingTool/CustomProceduralRigTool/rigLib/base/controlShape/unitSliderControl.py | f55103622c28f26d51caf910f83abbbaf7302f2a | [] | no_license | tHeBeStXu/CustomProceduralRigTool | 397011b9519a3e5382aec5aee6115f3e6a14a802 | 003fa61b460d8e76c026f47913ebdab5c0cbfef8 | refs/heads/master | 2021-07-13T09:02:07.697909 | 2020-07-09T07:28:27 | 2020-07-09T07:28:27 | 157,082,564 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import maya.cmds as cmds
def createShape(prefix=''):
"""
create a unit slider for blend operation
:param prefix: str, prefix of the control
:param scale: float, scale of the control
:return: str, ctrlBox of the unitSliderControl
"""
Ctrl = cmds.circle(radius=0.2, nr=(1, 0, 0), n=prefix + '... | [
"328665042@qq.com"
] | 328665042@qq.com |
aac4d5fd43519d3e8b5e64343338316a33460a65 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/catapult/telemetry/telemetry/web_perf/metrics/rendering_stats_unittest.py | e96c06c9f476e5202881973b78f825e7781a8062 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 24,876 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import random
import unittest
from telemetry.timeline import async_slice
from telemetry.timeline import model
from telemetry.util import perf_tests_helper
f... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
249edc0e5fb7c5fae23b6d8c5752ffa60b404a5b | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /base/lib/uu.py | 6ee9f9acad9bccce569ad6152e8da80b8e368319 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | import binascii
import os
import sys
__all__ = ['Error', 'encode', 'decode']
class Error(Exception):
__qualname__ = 'Error'
def encode(in_file, out_file, name=None, mode=None):
opened_files = []
try:
if in_file == '-':
in_file = sys.stdin.buffer
elif isinstance(in_file, str):
... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
92df5f0ae14e23c0600fd57b407368f340103547 | 4b431704fa58900a7b848aada3d10949be76ba65 | /student/views.py | 8ed0983ae38fa181f3a834d1c67585b80d645e7b | [] | no_license | priyankaonly1/Session_project | 1b5e48a77753cfa87c93fff7463d758cf0f1dcd8 | 41529270c0390627824b6de1aed6fdf4bb75a95c | refs/heads/main | 2023-06-03T04:21:38.411008 | 2021-06-17T10:32:13 | 2021-06-17T10:32:13 | 377,792,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.shortcuts import render
# Create your views here.
def setsession(request):
request.session['name'] = 'sonam'
request.session['lname'] = 'Jha'
return render(request, 'student/setsession.html')
# def delsession(request):
# if 'name' in request.session:
# del request.session['name']
... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
5f78dc2017f0e9588d5ed2188d02785b189ec637 | 0bb474290e13814c2498c086780da5096453da05 | /abc133/E/main.py | 20212d42d80ef6a27ba00b0743cbd41a23b91777 | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/env python3
import sys
MOD = 1000000007 # type: int
def solve(N: int, K: int, a: "List[int]", b: "List[int]"):
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
ee5638f427e266afc5d5855606c34b7c76ac09b2 | c68d36ed1d36ede96a5a22e1052c73b8515feaae | /HyperNews Portal/task/hypernews/news/views.py | 3cefca44c6ba79a74ca61d32697ea15338fb602a | [] | no_license | wangpengda1210/HyperNews-Portal | dd531889666794c11158dc92a9dcdb03293d409b | 436e257dd315999187650dedf3dce2ff12267a77 | refs/heads/main | 2023-03-03T03:22:59.644304 | 2021-02-09T00:19:23 | 2021-02-09T00:19:23 | 336,978,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | from django.shortcuts import render
from django.views import View
from django.http import Http404, QueryDict
from django.shortcuts import redirect
import datetime
from collections import defaultdict
import json
from hypernews.settings import NEWS_JSON_PATH
with open(NEWS_JSON_PATH, 'r') as f:
news_list = json.load... | [
"515484505@qq.com"
] | 515484505@qq.com |
85fd333d2b6f43110d9c7b7171b122dfcdc0a466 | e19527d95fb2105a09bc1435146a1148bfe01476 | /utils/general.py | 122f37a50fc4e4ba87c3765b807a74616dfeb9fd | [] | no_license | shuaih7/ishop_ocr | 7da1bc8f3f764853d7c0151e784b821cc3d4b58c | 57e80d336f1362adefeb57a13fa4ca4d2cfd265f | refs/heads/main | 2023-02-22T15:50:36.294246 | 2021-01-28T03:46:36 | 2021-01-28T03:46:36 | 329,258,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 01.24.2021
Created on 01.24.2021
Author: haoshaui@handaotech.com
'''
import os
import cv2
import sys
import numpy as np
abs_path = os.path.abspath(os.path.dirname(__file__))
sys.path.append(abs_path)
def draw_results(image, results, isClosed=True, size=0.6... | [
"shuaih7@gmail.com"
] | shuaih7@gmail.com |
df0df3a114e599c36a4d9a1fef81af871183c836 | c82a04b8aa975b1596e48e13deaf5f11a2ae94ba | /test.py | 99b9847323d2a912600184ba1f913a0369ba9259 | [
"MIT"
] | permissive | budsus/CodeSearchNet | 466e6d06b8b0f08f418906151af6018cc7253ca1 | d79d0fde2569e4ed7ab0454e3b019fba3d6c7b90 | refs/heads/master | 2023-03-17T07:48:40.451414 | 2019-12-12T13:08:47 | 2019-12-12T13:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import torch
x = torch.randn(10, 5)
print(x)
labels = torch.LongTensor([1,2,3,3,0,0,0,0,0,0])
n_classes = x.shape[-1]
one_hot = torch.nn.functional.one_hot(labels, n_classes)
print(one_hot)
print(x * one_hot)
compare = (x * one_hot).sum(-1).unsqueeze(-1).repeat(1, n_classes)
print(compare)
compared_scores = x... | [
"bentrevett@gmail.com"
] | bentrevett@gmail.com |
0a607ad298916549426f6f843ef6ce749fadc185 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03610/s415894874.py | 9a33970973344ddf348592e3209a4248803c0737 | [] | 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 | 92 | py | s = list(input())
t = []
for i in range(0, len(s), 2):
t.append(s[i])
print(''.join(t))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f1e7c2be5e4aad81dc3c4cc8973865624a09628 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03645/s021155194.py | 844491319f19594eb094e23da7af0f647cb6eb7c | [] | 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 | 370 | py | n, m = map(int, input().split())
root_map = dict()
root_map[1] = set()
root_map[n] = set()
for i in range(m):
a, b = map(int, input().split())
if a == 1 or a == n:
root_map[a].add(b)
if b == 1 or b == n:
root_map[b].add(a)
for i in root_map[1]:
if i in root_map[n]:
print("POSSI... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b8ea6089fbf982c699ef0f102f4a0842d32f6a53 | 24caa6710105a060fab2e17147e6d56609939011 | /03-Python_Data_Science_Toolbox_(Part_1)/02-Default_arguments,_variable-length_arguments_and_scope/01-Pop_quiz_on_understanding_scope.py | 359f983d8c5327a8ca9e09fa52071fdeceb8fece | [] | no_license | inverseundefined/DataCamp | 99607022ad3f899d7681ad1f70fcedab290e269a | 7226b6b6f41888c3610a884db9a226e013d37e56 | refs/heads/master | 2022-01-10T00:53:21.714908 | 2019-07-24T13:27:49 | 2019-07-24T13:27:49 | 198,280,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | '''
Pop quiz on understanding scope
In this exercise, you will practice what you've learned about scope in functions. The variable num has been predefined as 5, alongside the following function definitions:
def func1():
num = 3
print(num)
def func2():
global num
double_num = num * 2
num... | [
"inversedrivenundefined@gmail.com"
] | inversedrivenundefined@gmail.com |
24524f83587d385ff97aec5e49d9379dfb3f883b | b8085ef607da70023214f105eb27bdbc713e596f | /Day2/Slots.py | db6ff0a4f8e7383e149a01736bdb559e14f236c2 | [] | no_license | artheadsweden/python_adv_april19 | 893c9ec76e8505a580439b7a2fd7aa2776503c77 | 04eecd25d4a291dddd608d94968b217fed7b88d8 | refs/heads/master | 2020-05-07T13:41:15.545033 | 2019-04-11T18:47:22 | 2019-04-11T18:47:22 | 180,559,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from pympler import asizeof
class NoSlots:
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
class WithSlots:
__slots__ = ['name', 'identifier']
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
def ma... | [
"joakim@arthead.se"
] | joakim@arthead.se |
8e8665d33a8f3df1f93560af494176e055b876a4 | 81207a57ae84b2b786b373d9eaa89e04ca662473 | /scripts/update_index.py | b4fa72f135adfbde5960f9e2c3f51b20f42df2a6 | [
"MIT"
] | permissive | ncarkaci/acoustid-server | 9a9187db34c25a4eedbe297564f9d13f05b9c907 | bb0098016d210be8d04ee64d9b42ed80bb947280 | refs/heads/master | 2020-07-22T18:25:46.258746 | 2019-09-05T11:05:01 | 2019-09-05T11:05:01 | 207,288,602 | 1 | 0 | MIT | 2019-09-09T10:58:51 | 2019-09-09T10:58:51 | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
# Copyright (C) 2011-2012 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
from contextlib import closing
from acoustid.script import run_script
from acoustid.data.fingerprint import update_fingerprint_index
def main(script, opts, args):
with closing(sc... | [
"lalinsky@gmail.com"
] | lalinsky@gmail.com |
47b13cbf68cba49d07c499ee6026f47fc228aece | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/1/proxy/proxy/spiders/maoyan_20200705155519.py | 5832d2f7ffe5ee7f1c5b3c601dddf5c249d1eb51 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,400 | py | import scrapy
from proxy.items import ProxyItem
import lxml.etree
class MaoyanSpider(scrapy.Spider):
name = 'maoyan'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/']
header =
# def parse(self, response):
# pass
def start_requests(self):
url = f'https://maoy... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
85658af6a7b79e5450b577beccbc06522bd0f00d | 25c1bba5c9954ab757fed0ce3236cd6b3bd50c59 | /BUILD.cr.py | 47ccf5633ca37f891f4761834ecae7183d4632fb | [] | no_license | craftr-build/craftr-chaiscript | c09e32e7ddd72c75d482cd3b627f2183cceaf379 | 09e6434016915c9745e3c841076ad193cdebb9dd | refs/heads/master | 2021-09-04T17:35:54.491031 | 2018-01-20T14:31:21 | 2018-01-20T14:31:21 | 118,172,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
import craftr, {fmt, glob, path} from 'craftr'
import cxx from '@craftr/cxx'
source_dir = craftr.options.get('chaiscript.source_dir')
gitref = craftr.options.get('chaiscript.gitref', 'v6.0.0')
if not source_dir:
url = fmt('https://github.com/ChaiScript/ChaiScript/archive/{gitref}.zip')
source_dir = path.join(craf... | [
"rosensteinniklas@gmail.com"
] | rosensteinniklas@gmail.com |
8e830639fc2ef0cc682f1d742ee537d47985f00f | a643c2ed78b48e4cacf140776fbedd0191881e18 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py | 0ea29561b94824f85ffa27f8c2c1bf9e99c5e0c7 | [
"Apache-2.0"
] | permissive | padamstx/openapi-generator | 5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c | 00604aff594864447c134ddb1982565136e27857 | refs/heads/master | 2023-03-08T20:11:36.318959 | 2022-09-28T16:34:17 | 2022-09-28T16:34:17 | 160,528,958 | 0 | 1 | Apache-2.0 | 2023-02-24T16:13:11 | 2018-12-05T14:17:50 | Java | UTF-8 | Python | false | false | 5,206 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | padamstx.noreply@github.com |
f32c32efd6824655e6ea2871c24a9a2b562f8933 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/distutils/emxccompiler.py | 62c23b54b675b3edfdfdaf8c2e59d042e5b9440b | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186,190 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: '''distutils.emxccompiler
2:
3: Provides the EMXCCompiler class, a subclass of UnixCCompiler that
4: handles the EMX port of the GNU C compiler to OS/2.
5: '''
6:
7: # issues:
8: #
9: # * OS/2 insists that DLLs can have names no longer than 8 characters
1... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
1b1c02e75d0c463404a738766c2fe6e24d2476c7 | ad849c40e75d098e38db897154c63054e6f89fca | /models_class/model.py | 8ff2a80539b1abd9c6c4efeda44b6b17c4e7e9f6 | [] | permissive | vietnamican/Pytorch_Retinaface | 768a96eb7e48b002dc91cc97cc41473206903c59 | 8d69dd191e16421bb399f49c7706d6e154d4a80e | refs/heads/main | 2023-06-18T08:23:25.860727 | 2021-06-24T10:48:18 | 2021-06-24T10:48:18 | 366,045,702 | 1 | 0 | MIT | 2021-05-10T13:06:47 | 2021-05-10T13:06:46 | null | UTF-8 | Python | false | false | 2,929 | py | import torch
from torch import nn
from torchmetrics import Accuracy
from .base import ConvBatchNormRelu
from .base import Base
class Config(object):
dataroot = 'data/mrleye'
train_image_dir = '../LaPa_negpos_fusion/train/images'
train_label_dir = '../LaPa_negpos_fusion/train/labels'
val_ima... | [
"vietnamican@gmail.com"
] | vietnamican@gmail.com |
213f42b8e3c626c96fdba83225479382cdd7034f | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/synaccess/np02b.py | 655328feb4bede2c154cc3f44e04463ee9f339ee | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,057 | py | #!/usr/bin/env python3
#
# Copyright 2019 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
61c90a5a68de5d9fddb0ef91c1c3666064a8f85e | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_22/models/pod_replica_link_lag_response.py | 4b80aac36f529a563527baa650fb2b54f0d5839c | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,922 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.22
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
a14cb2cae1fd69db8497611253f1cb936df5a192 | 23ec2d87fb96626992df44af73a7daa202be79a6 | /src/examples/connectfour/vs.py | 3810ad1a332014b09a368e147f4ae73e9ef179df | [] | no_license | ishikota/pymcts | 5d560ec7d0dcdf881a52c607adfdd384ae23e0c2 | 2d1ba191cadbbaab0ab922a785478210cf0709f4 | refs/heads/master | 2021-01-01T19:31:00.932984 | 2015-07-28T14:45:23 | 2015-07-28T14:45:23 | 39,330,236 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # add path to the src and test directory
import os
import sys
PARENT_PATH = os.getenv('PYMCTS_ROOT')
SRC_PATH = PARENT_PATH +"src/"
sys.path.append(SRC_PATH+"algorithm")
import mcts
import connectfour_model
import heuristic_model
# Clear the shell
os.system("clear")
# Setup for MCTS
model = heuristic_model.ConnectFo... | [
"ishikota086@gmail.com"
] | ishikota086@gmail.com |
288b4bd41f49b1124f0b189c46fb7fc1cba2ea02 | 066f812b051afffbe1a05630a728d15bab9f02bc | /django_503/models.py | 53c13d2c325313df137b454d59365c4a456316b9 | [
"MIT"
] | permissive | soul4code/django-503 | 04714af1a72813d5f6f1691eada97773adbe9c30 | 48f30e176f334988dafb48dff7c604b7f72ab290 | refs/heads/master | 2021-12-14T00:08:07.899188 | 2015-07-16T18:31:09 | 2015-07-16T18:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.db import models
from django.utils.translation import ugettext as _
class Config(models.Model):
key = models.CharField(_('Key'), max_length=100, unique=True)
value = models.BooleanField(_('Value'))
| [
"baryshev@gmail.com"
] | baryshev@gmail.com |
bc47db2fbd5e552d18ef8b17070331d9bf86f0a9 | 595c69f717fc3ceb4e0701cc433f6d7f927b6fdb | /Hogworts/Page_Object/Pages/main.py | 7f61ff32429f5e1477ac8b6a1941e7c335deb355 | [
"MIT"
] | permissive | archerckk/PyTest | d6462ebf46c6dbd5bb3ce03666aad0c2665367cd | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | refs/heads/master | 2022-03-26T21:09:25.891745 | 2021-06-14T01:39:36 | 2021-06-14T01:39:36 | 129,497,345 | 0 | 0 | null | 2020-01-14T10:57:49 | 2018-04-14T08:23:03 | Python | UTF-8 | Python | false | false | 533 | py | from Page_Object.Pages.base_page import Base_Page
from Page_Object.Pages.login import Login
from Page_Object.Pages.register import Register
from selenium.webdriver.common.by import By
class Main(Base_Page):
_base_url='https://work.weixin.qq.com/'
def goto_register(self):
self.find(By.CSS_SELECTOR,'.i... | [
"archerckk@163.com"
] | archerckk@163.com |
a66d33de13362abe85bb1eaea386c7fdb853db98 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l5/work/app_20200705183534.py | b04a220ca1102f3467a3b5ad0e580157e43c7a65 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
scoreboard = [{"name": "Tester", "score": 10}, {"name": "Tester", "score": 11}]
@app.route("/<name>")
def hello(n):
return render_template("index.html")
@app.route("/game")
def game():
return render_template("index.html")
if ... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
defc1b7d74de6d1d58c5993550f7e8e9ad068c89 | 0f0a7adfae45e07a896c5cd5648ae081d4ef7790 | /python数据结构/python黑马数据结构/排序于搜索/桶排序.py | 12d443dea83de14b64c2fafd0db8a034651882fd | [] | no_license | renlei-great/git_window- | e2c578544c7a8bdd97a7a9da7be0464d6955186f | 8bff20a18d7bbeeaf714aa49bf15ab706153cc28 | refs/heads/master | 2021-07-19T13:09:01.075494 | 2020-06-13T06:14:37 | 2020-06-13T06:14:37 | 227,722,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | lista = [12, 4, 5, 6, 22, 3, 43, 654, 765, 7, 234]
# 桶排序
"""
桶排序就是找出最大值和最小值,在这个区间进行分桶,然后将数组中的数按区间装桶,然后在对每个桶进行排序
"""
def pail_sort(alist):
"""桶排序"""
n = len(alist)
min_cur, max_cur = 0, 0
cur = 1
# 找出最大
while cur < n:
if alist[min_cur] > alist[cur]:
min_cur = cur
cu... | [
"1415977534@qq.com"
] | 1415977534@qq.com |
a0485c4cb332ebd75e227c8399d966b35342cc60 | 623065fb8f2fec97c7a4e201bff7ff1d9578e457 | /imgviz/data/kitti/__init__.py | afb8eb994cbe1b8a3520b78d531e100de2e1bc1e | [] | no_license | bigdatasciencegroup/imgviz | 4759c4264a43e9d37429489cc63a8a00fbb489d5 | cec9f1e3cc02cac46d11a99c63c696b8743ba6f1 | refs/heads/master | 2020-08-21T23:39:44.038394 | 2019-09-09T13:55:57 | 2019-09-09T13:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import os.path as osp
import numpy as np
here = osp.dirname(osp.abspath(__file__))
def read_pose_file(filename):
with open(filename, 'r') as f:
transforms = []
for one_line in f:
one_line = one_line.split(' ')
Rt = [float(pose) for pose in one_line] + [0, 0, 0, 1]
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
3f2a7f8ca8c8b949eb087d6b60465bf94f7e9e90 | ac01d8bdab2140eae6332613142b784484877b78 | /main.py | c4d5cd5bb342e7b9329bf9ee51a5c37957b7ec15 | [] | no_license | 2020668/api_automation_course | eb19322485fdb7db4b9586597895c3ac97727e96 | 33da9f5f1f17de5a5892d28a9f6feea09e8c4adc | refs/heads/master | 2022-12-29T22:32:02.321058 | 2020-10-15T03:24:32 | 2020-10-15T03:24:32 | 304,195,531 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
"""
=================================
Author: keen
Created on: 2019/9/2
E-mail:keen2020@outlook.com
=================================
"""
import unittest
import os
import time
from library.HTMLTestRunnerNew import HTMLTestRunner
from common.config import conf
from common.constant import ... | [
"keen2020@outlook.com"
] | keen2020@outlook.com |
a8b44fa0be0fcec467b480ed13e5e1ddc5008900 | fc00b177802c49cf04dc6a8e430093bc14ae9b53 | /venv/Lib/site-packages/mypy/typeshed/stdlib/2and3/ctypes/__init__.pyi | 616d9df9283314885fca81c82384f607e3cd5fbd | [] | permissive | artisakov/vigilant-journey | 9c8264d36da5745374a0d08b0b0288a70f978a11 | 4fed9026071a64489d26422ba7cd1a9b9cb05e16 | refs/heads/master | 2022-11-16T03:10:06.418221 | 2020-07-16T07:33:06 | 2020-07-16T07:33:06 | 238,490,887 | 0 | 1 | MIT | 2020-03-01T10:12:22 | 2020-02-05T16:03:07 | HTML | UTF-8 | Python | false | false | 11,771 | pyi | # Stubs for ctypes
from array import array
from typing import (
Any, Callable, ClassVar, Iterator, Iterable, List, Mapping, Optional, Sequence, Sized, Text,
Tuple, Type, Generic, TypeVar, overload,
)
from typing import Union as _UnionT
import sys
_T = TypeVar('_T')
_DLLT = TypeVar('_DLLT', bound=CDLL)
_CT = T... | [
"60698561+artisakov@users.noreply.github.com"
] | 60698561+artisakov@users.noreply.github.com |
41894e7590dde3aa44f8c38b7453e8c364d924f5 | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /Binary Tree Zigzag Level Order Traversal.py | 5ffebb0274f92ac415a122c9c02b477d302ff3ff | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | '''
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
return its zigzag level order traversal as:
[
[... | [
"noreply@github.com"
] | sugia.noreply@github.com |
654c3bc950e7ddde3eaff1bddd8c9718702a2352 | bfc2ba097b164af668efa29f883101673668456e | /nets/centernet_training.py | 109a2e753890bf22328bb9efcd06e247931de674 | [] | no_license | Sharpiless/Paddlepaddle-CenterNet | b4892e1ab85a65f655b44fc6699e61315f5a0274 | b02bca6bff55054bdb29ba370ac52b9e8951045a | refs/heads/main | 2023-06-17T17:22:35.265697 | 2021-07-17T02:46:33 | 2021-07-17T02:46:33 | 386,817,805 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | import paddle
import paddle.nn.functional as F
def focal_loss(pred, target):
pred = paddle.transpose(pred, [0,2,3,1])
# pred = pred.permute(0,2,3,1)
#-------------------------------------------------------------------------#
# 找到每张图片的正样本和负样本
# 一个真实框对应一个正样本
# 除去正样本的特征点,其余为负样本
#------... | [
"1691608003@qq.com"
] | 1691608003@qq.com |
9f2eaee40308723324858966dcd6932750b0241b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/command_lib/storage/tasks/task_buffer.py | dee39b0c1165d965f0fa3a433725b4686336f215 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,762 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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 |
8534041473d28f92fb8db6079f28b29f4e1c7743 | cae9ca1dda110cd6f65d5021c5891fdee76ec6fe | /day2/set/2.py | e7bb3bc3680e0158226f7a9475d6dce754b58602 | [] | no_license | shobhit-nigam/yagami | fb33d6de76a698a160f9e8df9d7d9f5b836797d8 | 283e2a464f74ac07c21ae7095b9a45fa632aa38a | refs/heads/main | 2023-07-04T09:46:51.057558 | 2021-08-10T05:13:27 | 2021-08-10T05:13:27 | 391,846,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | basket_a = {'apple', 'banana', 'pear', 'apple', 'kiwi', 'banana', 'avocado'}
basket_b = {'orange', 'plum', 'grapes', 'apple', 'pear', 'raspberry'}
print(type(basket_a))
print("basket_a =", basket_a)
print("basket_b =", basket_b)
print("basket_a[2] =", basket_a[2])
| [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
74630a900649910f52610167dda5e5175c1009c7 | e3d33f5d82a541d7491e079c394dcebf1568f078 | /server/settings/migrations/0003_delete_tournamenttype.py | 746daa2db4b9fb8720e479ddcbeaca42296afee0 | [
"MIT"
] | permissive | MahjongRepository/mahjong-portal | 51bd1300c3e6b8a341fbddb67a750b268950627e | 20f01433858bed4610d60b27a98bafce5a810097 | refs/heads/master | 2023-07-09T09:05:23.155419 | 2023-07-08T10:47:14 | 2023-07-08T10:47:14 | 114,328,632 | 12 | 10 | MIT | 2022-07-29T01:29:59 | 2017-12-15T04:53:02 | Python | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-18 13:32
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tournament', '0005_remove_tournament_tournament_type'),
('settings', '0002_auto_20180117_064... | [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
428b845f68e1d7c602aa7f74a604609708605c11 | b35aea9f4411f5dc7942392d78dc31bb76c7ec73 | /ARTIN/index/forms.py | 145690526dcce52d9b06a9000dcf43e2949b4874 | [] | no_license | ashkanusefi/rondshow | 1079b81704fff55a1d54fa8dee2712ab61e92f4a | 7e5a80fcc6e326b8b1737a54fb53becc4195e475 | refs/heads/master | 2023-09-01T18:45:33.170465 | 2021-09-18T11:24:52 | 2021-09-18T11:24:52 | 407,820,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django import forms
from index.models import Contactform
class Contact_Form(forms.ModelForm):
class Meta:
model = Contactform
widgets = {
'name': forms.TextInput(attrs={'placeholder': 'نام و نام خوانوادگی'}),
'email': forms.TextInput(attrs={'placeholder': 'ایمیل'}),
... | [
"yousefi.ashkan96@gmail.com"
] | yousefi.ashkan96@gmail.com |
165b320a0f937ccc6fd4ef9e6bae85487e84034d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/100/usersdata/199/49629/submittedfiles/prova1.py | 6b7bd8a5436b67d150ae6be7d451d557c92d2016 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO ABAIXO DESTA LINHA
Carta1 =(int(input('Digite C1:'))
Carta2 =(int(input('Digite C2:'))
Carta3 =(int(input('Digite C3:'))
Carta4 =(int(input('Digite C4:'))
Carta5 =(int(input('Digite C5:'))
if Carta1>Carta2>Carta3>Carta4>Carta5:
print('D')
elif Carta1<Carta2<Ca... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b410d142b81c1ff46a841b791aac9e8f0c825de6 | 7c1b5af77fbfde1f4f2c698a489e07024c147edc | /docs/sphinxext/example.py | a3a898c3d74b35d6e48e079745f272267a2beaef | [] | no_license | migueldvb/pyasdf | e7812da935ee3e4fec6d3c61fb16425ac2e1bdc7 | 4a72952b0196ede261e07569fc4da2616fa5e4b3 | refs/heads/master | 2020-12-26T18:44:07.562442 | 2015-03-30T16:18:19 | 2015-03-30T16:18:19 | 29,930,850 | 0 | 0 | null | 2015-02-04T20:23:04 | 2015-01-27T19:29:17 | Python | UTF-8 | Python | false | false | 3,764 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import atexit
import io
import os
import shutil
import tempfile
import textwrap
from docutils.parsers.rst import Directive
from docutils import no... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
855617ea99f031e0e80b2b054a95363b3b16af6b | 43c268536a396b7f105f15e717c9f1f6b9044082 | /cltk/phonology/latin/transcription.py | 10b54850b62e788a602cee6b2e5adfc903a3f61d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | codeSG/cltk | 9b5357d123d22fa423ecea3ffea9d2b9688445c3 | 6fbc96e3afa19f0c43b9eb64b739029c04f352b9 | refs/heads/master | 2020-12-31T00:29:35.046678 | 2017-06-04T05:26:23 | 2017-06-04T05:26:23 | 85,152,321 | 0 | 0 | null | 2017-03-24T11:01:04 | 2017-03-16T04:22:57 | Python | UTF-8 | Python | false | false | 23,177 | py | """Convert a word from Latin orthography into its hypothesized
pronunciation in the International Phonetic Alphabet (IPA).
https://raw.githubusercontent.com/j-duff/cltk/ipa/
cltk/phonology/latin/transcription.py
"""
from cltk.utils.cltk_logger import logger
from cltk.prosody.latin import macronizer as m
macronizer =... | [
"kyle@kyle-p-johnson.com"
] | kyle@kyle-p-johnson.com |
e2e3817a1e7ab097aac8071c3eb9fa89df0186b9 | 863509e794b069c9688f6263454c06d2c48868b2 | /backend/backend/ml_model/client_server/ml_client.py | e892990daa897d7cb55cee5604a142de6051e99b | [
"MIT"
] | permissive | TheDuckWhisperer/tournesol | c6df38185963bbecc6109dac275075a3ceca857a | 0fde7587e91a42e5a2218f2ffb70d4fc8cff7f73 | refs/heads/master | 2023-04-18T15:31:20.627952 | 2021-05-01T19:59:07 | 2021-05-01T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | from jsonrpcclient.clients.http_client import HTTPClient
from multiprocessing import Process
from backend.rating_fields import VIDEO_FIELDS
import numpy as np
import pickle
from time import time
def time_cache_wrapper(f, expire_sec=3600):
"""Decorator which caches results for some seconds."""
# format pickle(... | [
"sergei.volodin.ch@gmail.com"
] | sergei.volodin.ch@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.