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
8de3381b4bf1330627995867f8533aa971e31273
8a77b3a993b5ad9aaa7da0eeca4e02462e336dcd
/IPTVPlayer/hosts/hosturllist.py
f20088c05a692f45a988dd1d1ea5115e84830f55
[]
no_license
gorr2016/iptvplayer-for-e2
cc6a6004ff04a5aca1145860abd09791d762ea20
74b4320feca9079293b19c837b14cfc402d77673
refs/heads/master
2021-01-01T05:00:41.155592
2016-04-27T09:28:41
2016-04-27T09:28:41
57,188,687
1
1
null
2016-04-27T09:28:42
2016-04-27T06:20:30
Python
UTF-8
Python
false
false
15,857
py
# -*- coding: utf-8 -*- ################################################### # LOCAL import ################################################### from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _ from Plugins.Extensions.IPTVPlayer.components.ihost import CHostBase, CBaseHostClas...
[ "samsamsam@o2.pl" ]
samsamsam@o2.pl
474ca8e491dd7c8a564d196843a5593c517b1619
7533acbcf36b196e5513fad2b3c9623411500f0f
/0x0F-python-object_relational_mapping/model_state.py
9b22628ad72e4f2739e3630bec79c475e4db1008
[]
no_license
AndrewKalil/holbertonschool-higher_level_programming
97ce8af5ad7e8e9f0b1a25d7fa7dcb1a2b40810e
9bef1f7c8ff9d8e90ec2aed7a29f37cec3a5e590
refs/heads/master
2022-12-17T19:02:12.096913
2020-09-23T00:00:44
2020-09-23T00:00:44
259,439,815
0
1
null
null
null
null
UTF-8
Python
false
false
400
py
#!/usr/bin/python3 """First state model""" from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String Base = declarative_base() class State(Base): """Class State""" __tablename__ = 'states' id = Column(Integer, autoincrement=True, primary_key=True, ...
[ "1541@holbertonschool.com" ]
1541@holbertonschool.com
9afc4200eacafdbebe20217fe3f7491121e55325
06e51cd96f2788f87c7c426244167ddbfcc0d551
/integer_solutions.py
cc8d955bf497fb094c54cccbe9ef48050297b32e
[]
no_license
Lisolo/ACM
683724184dc2af31ef45073a9cd3ef7f2cdabfba
231d80dd72768ca97c3e9795af94910f94cc0643
refs/heads/master
2016-09-06T16:04:11.910067
2014-11-26T12:25:50
2014-11-26T12:25:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# coding=utf-8 """ 给你两个整数a和b(-10000<a,b<10000),请你判断是否存在两个整数,他们的和为a,乘积为b。 若存在,输出Yes,否则输出No 例如:a=9,b=15, 此时不存在两个整数满足上述条件,所以应该输出No。 """ a = 6 b = 9 divisors = [] flag = 0 if b >= 0: for x in xrange(-b, b+1): if x == 0: pass else: b % x == 0 divisors.append([x, b/...
[ "iamsoloa@gmail.com" ]
iamsoloa@gmail.com
c014798865331ef81d1e07c344df553a92294cac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03031/s125157001.py
4ac1006ad6aa89f188ff8caaa0a4a2b77a42ef94
[]
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
654
py
n, m = map(int, input().split()) switch_list = [] for i in range(m): s = list(map(int, input().split())) s.pop(0) switch_list.append(s) p_list = list(map(int, input().split())) #print(switch_list) #print(p_list) ans = 0 for bit in range(1 << n): #100・・0(n+1桁)-1 = 111・・・1(n桁)となりn桁のビット演算をfor文で回す cnt ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a8bfde75fc2cf284a72e5f69140fbf309caf8038
46c318dbfedfb95d38207431bbf14bacf12d185f
/NLP/II_Process/Matching/RegEx.py
d738c2ca0c9f6a0f8c5f444a610746577f70e4b9
[]
no_license
miltonluaces/problem_solving
2e92877ee736c0920ce6e94dcc73fd01a52e3e46
bccb89d8aadef4a2e409fc6c66ccad2fb84b6976
refs/heads/master
2023-01-08T15:58:51.002478
2020-10-28T21:31:46
2020-10-28T21:31:46
308,143,277
1
0
null
null
null
null
UTF-8
Python
false
false
379
py
import regex # Normal matching. m1 = regex.search(r'Mr|Mrs', 'Mrs'); print(m1.expandf('{0}')) m2 = regex.search(r'one(self)?(selfsufficient)?', 'oneselfsufficient'); print(m2.expandf('{0}')) # POSIX matching. m3 = regex.search(r'(?p)Mr|Mrs', 'Mrs'); print(m3.expandf('{0}')) m4 = regex.search(r'(?p)one(self)?(selfsuff...
[ "miltonluacs@gmail.com" ]
miltonluacs@gmail.com
bf6fab955be82cb8c2a81a65c3d6b12d35068493
3e1584f4bc2f1d4368b10d0f28fcba69d946eb00
/core/apps/kubeops_api/migrations/0063_auto_20200221_0654.py
a552b6fac34d4eea6b6e19c7ad53a2cf039001be
[ "Apache-2.0" ]
permissive
azmove/KubeOperator
80d102a41a0009ae85dd2d82c7dc164511de9a58
0561ddbc03eded5813a86693af7fc4ee9647f12d
refs/heads/master
2021-01-08T22:40:51.267027
2020-02-21T08:47:43
2020-02-21T08:47:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
# Generated by Django 2.2.10 on 2020-02-21 06:54 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('kubeops_api', '0062_auto_20200221_0510'), ] ope...
[ "scydeai@qq.com" ]
scydeai@qq.com
1e64d87dfe87a31900f768f82c81e0725aa124e2
1ed281b93e11a53ea4ae2a3798aeb9f58dd664de
/webapp/starter/config/settings/local.py
b7e7a63716f22047acb2f9e1c94ef1b10a5f6274
[ "MIT" ]
permissive
bartkim0426/django-docker-seul
5ae2a31f1004ae8292569bcafd2e66ce56f67c7e
6a75605281403357514d7b30e65d2685bb907b31
refs/heads/master
2021-05-09T02:55:04.765647
2019-02-11T07:45:09
2019-02-11T07:45:09
119,226,239
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
import os from .partials import * DEBUG = True INSTALLED_APPS += [ 'debug_toolbar', 'django_extensions', ] MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ] INTERNAL_IPS = ['127.0.0.1', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', ...
[ "bartkim0426@gmail.com" ]
bartkim0426@gmail.com
dc5df62772aa2776784f4a98884bd8e5b46d2056
5f2608d4a06e96c3a032ddb66a6d7e160080b5b0
/week4/homework_w4_b1.py
e70dae9bdc972512e2e7c76f7fc0ae5ef2833a01
[]
no_license
sheikhusmanshakeel/statistical-mechanics-ens
f3e150030073f3ca106a072b4774502b02b8f1d0
ba483dc9ba291cbd6cd757edf5fc2ae362ff3df7
refs/heads/master
2020-04-08T21:40:33.580142
2014-04-28T21:10:19
2014-04-28T21:10:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
import math, random, pandas def Vol1_s(dimension): return (math.pi ** (dimension / 2.0)) / math.gamma(dimension / 2.0 + 1.0) def Vol1_s_est(dimensions, trials): n_hits = 0 for i in range(trials): dists = [random.uniform(-1.0, 1.0) for _ in range(dimensions)] sum_dist = sum(d ** 2 for ...
[ "noelevans@gmail.com" ]
noelevans@gmail.com
7af7b7b2b077c56d314c8a7de890790b7cd2a523
9972988c4f4ccd7fdbafea601782dae94b679e78
/tests/test.py
8f7fc6f16dc0d00289c64bafe01422ece4e4f123
[ "MIT" ]
permissive
chenshoubiao/ButterSalt
b67e9dec730350e64520064940fe69621a927418
7120c5135448cb3c9760925f23d2efc8316458d8
refs/heads/master
2021-01-22T03:22:58.791300
2017-05-25T01:58:45
2017-05-25T01:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,787
py
import ButterSalt import unittest class ButterSaltTestCase(unittest.TestCase): def setUp(self): ButterSalt.app.config['TESTING'] = True ButterSalt.app.config['WTF_CSRF_ENABLED'] = False ButterSalt.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://' ButterSalt.app.config['SQLALCHEM...
[ "lfzyx.me@gmail.com" ]
lfzyx.me@gmail.com
e7be49dbc740b1357c53555b1c8370e37846f83e
dbde9338e87117397c2a7c8969df614f4dd4eacc
/examples/tensorflow/qat_conversion/benchmark.py
e31fb0226a4869184f24d64386ded4940317fec9
[ "Apache-2.0", "MIT", "Intel" ]
permissive
leonardozcm/neural-compressor
9f83551007351e12df19e5fae3742696613067ad
4a49eae281792d987f858a27ac9f83dffe810f4b
refs/heads/master
2023-08-16T17:18:28.867898
2021-09-03T06:44:25
2021-09-03T06:54:30
407,043,747
0
0
Apache-2.0
2021-09-16T07:57:10
2021-09-16T06:12:32
null
UTF-8
Python
false
false
1,017
py
import tensorflow as tf from tensorflow import keras import numpy as np class dataloader(object): def __init__(self, batch_size=100): mnist = keras.datasets.mnist (train_images, train_labels), (test_images, test_labels) = mnist.load_data() # Normalize the input image so that each p...
[ "feng.tian@intel.com" ]
feng.tian@intel.com
8cffae1caed4f348b156a25034e81b9c31782903
46ae8264edb9098c9875d2a0a508bc071201ec8b
/res/scripts/client/gui/battle_control/requestsavatarrequestscontroller.py
f867089a8ae0ffd0381a8948555605e3e5e292d7
[]
no_license
Difrex/wotsdk
1fc6156e07e3a5302e6f78eafdea9bec4c897cfb
510a34c67b8f4c02168a9830d23f5b00068d155b
refs/heads/master
2021-01-01T19:12:03.592888
2016-10-08T12:06:04
2016-10-08T12:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,880
py
# Embedded file name: scripts/client/gui/battle_control/requests/AvatarRequestsController.py from collections import namedtuple import BigWorld import AccountCommands from debug_utils import LOG_DEBUG, LOG_WARNING from ids_generators import Int32IDGenerator from helpers import i18n from messenger import MessengerEntry,...
[ "m4rtijn@gmail.com" ]
m4rtijn@gmail.com
1e322b9340bde3dac33558b3897bfef9ce871bd7
1ee10e1d42b59a95a64d860f0477a69b016d1781
/Lecture_09/Lecture Code/3-pipeline_text_generation.py
c1c3ebf2a71d9e21e8fada4b70c2de73687de274
[]
no_license
KushalIsmael/NLP
5564070a573d251d7222dda85b8025ae1f9c3c6f
d4ce567a009e149b0cb1781d3a341d25aa438916
refs/heads/master
2023-08-18T14:07:48.646386
2021-10-28T19:09:25
2021-10-28T19:09:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
from transformers import pipeline generator = pipeline("text-generation") print(generator("In this course, we will teach you how to")) print(generator("I am tired of listening to this brownbag session about natural language processing.", num_return_sequences = 1, max_length = 100 ))
[ "amir.h.jafari@okstate.edu" ]
amir.h.jafari@okstate.edu
8212462617b51d5afbf32fbe0aa6e02ac157b1de
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/760.py
c9ed44a45ad2596edbd1cbaff02c0ff2ac596d1c
[]
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,137
py
def opera(case_list): sat = [] for e in case_list: sat.append(int(e)) t = sum(sat) standing = sat[0] invites = 0 s_list = [] count = 0 for i in sat: if i > 0: s_list.append(count) count += 1 if s_list[0] == 0: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8b9613542d6316a2175fc90b8151e4c82c1b1256
f9729802d62bc72df4a6e59c3f49d4bd1fc92043
/docs/conf.py
da4780f8311665e03ef2fa834069cce5e50e6c75
[ "MIT" ]
permissive
wefner/emaillib
50a63e7394d3a09dad3f58b6964335ff1ce298cb
2a00a3c5d4745898b96e858607b43784fa566fac
refs/heads/master
2021-06-28T17:51:56.269015
2017-09-18T17:27:11
2017-09-18T17:27:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,411
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # emaillib documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # au...
[ "costas.tyf@gmail.com" ]
costas.tyf@gmail.com
4a37049bdd2a5eb1ab32b0f6c0feabcf07e1d909
0bc9bff4fd4bd72b0ad681b79f0e39cdb9fc9dc0
/voximplant/management/commands/vox_call_list_download.py
7ea6954170db7d549c13f6340aae7c904ee5af68
[ "MIT" ]
permissive
telminov/django-voximplant
bc4fcb53147d9a318857b8213934217ebfc8fdef
a0165498d1727039e26f77724079033c252a3611
refs/heads/master
2020-05-22T01:16:43.631059
2017-09-13T04:41:47
2017-09-13T04:41:47
58,752,532
4
2
null
2017-09-13T04:41:48
2016-05-13T15:39:03
Python
UTF-8
Python
false
false
395
py
# coding: utf-8 from django.core.management.base import BaseCommand from ... import tools class Command(BaseCommand): help = 'Get call list detail' def add_arguments(self, parser): parser.add_argument('--id', dest='call_list_id', type=int) def handle(self, *args, **options): call_list_id...
[ "sergey@telminov.ru" ]
sergey@telminov.ru
da4d7b80c470a5ea6762ba816acdd9922c6b0eaf
05a211233ccb01ecd2c12367548cba65bbdbc5d9
/examples/02relative/app/en/__init__.py
771d13b64c475a7ca1ad41ba952a579d17934208
[]
no_license
podhmo/miniconfig
94ee7fa6345816daa83a74b1cbfb40592f221fbb
4cee752fd965c8094ed9d1ff1c33e531e88e479c
refs/heads/master
2021-05-21T11:49:14.836184
2021-03-13T14:06:27
2021-03-13T14:06:57
26,328,967
3
1
null
2020-07-09T19:24:51
2014-11-07T16:58:28
Python
UTF-8
Python
false
false
157
py
def includeme(config): config.include(".spring:include") config.include(".summer") config.include("./autumn") config.include("../en/winter")
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
0b359de6edb5995644e1b492351b5a6eff68069c
1020a87ba3569c879478b6a88f73da606f204c34
/tests/generator/test_compression.py
c5c000d40ba6e08eaf9ff7457e1ef520b8fa4ca6
[ "Apache-2.0" ]
permissive
MIGPOOL/test-blockchain
deeceaa5d7c6d24e528092ef32036aff8149baff
567fd1265b6a27f2f4e21c7787e39072e4b7c085
refs/heads/main
2023-08-22T03:27:19.638361
2021-10-26T22:42:42
2021-10-26T22:42:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,156
py
# flake8: noqa: F501 from dataclasses import dataclass from typing import List, Any from unittest import TestCase from greendoge.full_node.bundle_tools import ( bundle_suitable_for_compression, compressed_coin_spend_entry_list, compressed_spend_bundle_solution, match_standard_transaction_at_any_index, ...
[ "83430349+lionethan@users.noreply.github.com" ]
83430349+lionethan@users.noreply.github.com
6da8896820cb21775182cc8b2f30d43f369eae43
803176d4f2798989623c62f091f0d5cca687aad3
/sorting_recursive.py
7d2426d95ea2377f69e96f89c1c668f1d448098d
[]
no_license
Tylerholland12/CS2-1
79986bb437e4c517d80eb9ba198226cea3e83471
a095d23c48c19926ad6fd9be55fb980904dcc495
refs/heads/main
2023-01-31T00:20:48.603002
2020-12-08T14:33:42
2020-12-08T14:33:42
304,582,069
1
0
null
null
null
null
UTF-8
Python
false
false
2,944
py
#!python def merge(items1, items2): """Merge given lists of items, each assumed to already be in sorted order, and return a new list containing all items in sorted order. TODO: Running time: ??? Why and under what conditions? TODO: Memory usage: ??? Why and under what conditions?""" # create new e...
[ "tyler.holland@students.makeschool.com" ]
tyler.holland@students.makeschool.com
7138ed2a849354335f6674e80424ccc1659246e3
307e52d79c9068a2648ae82bbe11cd58733bba37
/Convert/ConvertTruth.py
2688385564e86b4c2474fb0ca6454547eb8a182e
[]
no_license
greatofdream/Recon1t
0aa775c43dcfa5b3da7b5894e2567fbe8e7b2991
80e58ba3c2c23f1efa962d02fcb2205a95aa716f
refs/heads/master
2022-11-09T14:12:55.747488
2020-06-09T02:43:24
2020-06-09T02:43:24
263,953,536
0
0
null
2020-05-14T15:31:27
2020-05-14T15:31:26
null
UTF-8
Python
false
false
2,440
py
# Convert ROOT file to HDF5 file import numpy as np import ROOT import sys import os import tables # Define the database columns class TruthData(tables.IsDescription): E = tables.Float64Col(pos=0) x = tables.Float64Col(pos=1) y = tables.Float64Col(pos=2) z = tables.Float64Col(pos=3) px = tables.Fl...
[ "839566105@qq.com" ]
839566105@qq.com
ba5d12e3a9f281a603a4f3fc0b6ae61ff59e2ad6
b05bd7c104a51910c6ed9d6f0e8d039ffa108f2b
/carros/migrations/0004_auto_20201204_2106.py
c25e4f02c0364f388b0077ad46c71811b1b44762
[]
no_license
BrunoVittor/TesteGregory
76e12585d4532dc8ab4836c567b5ba56469139e5
2c7e3afdb2a62d0464189153a9ab150d69d89083
refs/heads/master
2023-04-01T22:56:49.422893
2021-03-31T22:49:59
2021-03-31T22:49:59
334,147,980
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
# Generated by Django 2.2 on 2020-12-04 21:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('carros', '0003_auto_20201204_2103'), ] operations = [ migrations.AlterField( model_name='carros', name='ano', ...
[ "bv.everit@itmss.com.br" ]
bv.everit@itmss.com.br
44f150c666e75aa32b284dd253d435323b5f0de0
7dba60ae27ff247705607839348f017b85f5da16
/nyumbax/migrations/0010_remove_hood_user.py
9bd48cf28d900417152b7edac6e33f76bd08d027
[ "MIT" ]
permissive
BwanaQ/nyumba-kumi
7edccb6745ede6d9f6faf5bd8c0dcf6e24726991
c264b0941c77a4d7175a2dc5380723bea1acf380
refs/heads/master
2023-04-05T09:32:34.867456
2021-04-13T15:54:16
2021-04-13T15:54:16
356,136,458
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
# Generated by Django 3.2 on 2021-04-13 04:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('nyumbax', '0009_rename_name_hood_title'), ] operations = [ migrations.RemoveField( model_name='hood', name='user', ), ...
[ "thunjawax@gmail.com" ]
thunjawax@gmail.com
42ae7af6024d205e88ad2aa61c2d8c5c3a071dc3
92cc5c61799e93446d6562a6cc9fb74e9220c6c7
/mac-graph/cell/mac_cell.py
a159f0e137574775b4d6c51682a27dc300eb9ca7
[ "Unlicense" ]
permissive
houqp/mac-graph
2728c89605b71e7ac610303e7100797787f0fa30
ae91e5708d2a63d157a397b608acf720f4c4d840
refs/heads/master
2020-03-22T20:41:10.786619
2018-07-11T19:20:41
2018-07-11T19:20:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
import tensorflow as tf from .read_cell import * from .memory_cell import * from .control_cell import * from .output_cell import * from ..util import * class MACCell(tf.nn.rnn_cell.RNNCell): def __init__(self, args, features, question_state, question_tokens, vocab_embedding): self.args = args self.features =...
[ "david@sketchdeck.com" ]
david@sketchdeck.com
7a6721be75418ccf2e20180da4156ca261b1a8a8
7573f7485a5039f6374d5740009cc33ecf83ef62
/lishengchun/uploadsets.py
278e553db694d23144ae2d88742e55d0574ca6a1
[]
no_license
hugleecool/lishengchun
5323eb851b7d8b007655f2e2d1ba92026861a134
7c1ebb4bc746320f3c7605045a8300220c97cb39
refs/heads/master
2021-01-18T13:22:36.737105
2014-02-15T10:58:29
2014-02-15T10:58:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
# coding: utf-8 from flask.ext.uploads import UploadSet, IMAGES workimages = UploadSet('workimages', IMAGES)
[ "hustlzp@qq.com" ]
hustlzp@qq.com
0a2d71946f7a3beb7d3039832ef4d851ca101ab9
6da19be45ff986768eb820f11691977cb3c84772
/Python/5_Advance_buily_in_functions/501_generator_example/app.py
f86cf0322af9c70c5287d5b23541ecb63ab41ed6
[]
no_license
alexp01/trainings
9e72f3a571292b79d2b1518f564d2dc0a774ef41
9d8daee16f15e0d7851fab12ab3d2505386a686c
refs/heads/master
2023-05-04T23:37:13.243691
2023-05-02T08:02:53
2023-05-02T08:02:53
272,425,687
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
# https://www.udemy.com/course/the-complete-python-course/learn/lecture/9445596#questions # yield can be used to temporary stop a function, so that you can coninue it afterwards def get_100_numbers() -> int: i = 0 while i < 100: yield i i +=1 # yield is like a return, but it will also rememb...
[ "34630182+alexp01@users.noreply.github.com" ]
34630182+alexp01@users.noreply.github.com
3aa84a12c555bb02030d3ec9127a6ee3676a3089
3086b5195cb4dbb27aa73a24f6bf964440dff422
/tools/fileinfo/detection/packers/pe-pack/test.py
0d3de334959002d7c06f44c3a66d04733d5aa5ee
[ "MIT", "Python-2.0" ]
permissive
avast/retdec-regression-tests
8c6ea27ce2f5d0dfa6e6c845c38b56fa5bdfcc23
6662fed9d73cb7bc882ea69fd2429d5464950e39
refs/heads/master
2023-08-31T05:53:16.967008
2023-08-07T13:33:00
2023-08-15T08:33:07
113,974,761
7
10
MIT
2023-08-15T08:33:08
2017-12-12T10:11:00
Python
UTF-8
Python
false
false
295
py
from regression_tests import * class Test(Test): settings = TestSettings( tool='fileinfo', input='fact_rec.ex' ) def test_correctly_analyzes_input_file(self): assert self.fileinfo.succeeded assert self.fileinfo.output.contains(r'.*PE-PACK \(1\.0*')
[ "petr.zemek@avast.com" ]
petr.zemek@avast.com
b170bf1a5dd2f6564204d32a76592625f9e5c628
ac7c02f29a837fdd67d2bdc77bba182080e98ed8
/codekata/3rdcharacters.py
ce51088ffcd802a6c7f48e27801cff822fabc6db
[]
no_license
YaminiNarayanan-359/guvi
7630c309a86365e4367fda1ddab4e966e7d1ac5b
a52b6353100b4e9b83a003e6a327fbfb174daac4
refs/heads/master
2020-06-03T00:08:00.389609
2019-07-16T06:59:53
2019-07-16T06:59:53
191,355,064
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
d=input() for i in range(0,len(d)): if(i%3==0): print(k,end="")
[ "noreply@github.com" ]
YaminiNarayanan-359.noreply@github.com
520d8b4de76bc22b176016cd250e44aa8922ed31
3a8c2bd3b8df9054ed0c26f48616209859faa719
/Challenges/binaryTreeRightSideView.py
5ba301ff4e30397260ef87ec8389c5ebedd932f9
[]
no_license
AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges
684f1ca2f9ee3c49d0b17ecb1e80707efe305c82
98fb752c574a6ec5961a274e41a44275b56da194
refs/heads/master
2023-09-01T23:58:15.514231
2021-09-10T12:42:03
2021-09-10T12:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
""" Binary Tree Right Side View Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example: Input: [1,2,3,null,5,null,4] Output: [1, 3, 4] Explanation: 1 <--- / \ 2 3 <--- \ \ 5 4 ...
[ "bennyhwanggggg@users.noreply.github.com" ]
bennyhwanggggg@users.noreply.github.com
3f343c058cf96d33a5d3b5c7981b91edc0493874
7773ea6f465ffecfd4f9821aad56ee1eab90d97a
/python/testData/surround/SurroundWithWhile_after.py
43e32582970098345e4768f7e4af14d29e5282d9
[ "Apache-2.0" ]
permissive
aghasyedbilal/intellij-community
5fa14a8bb62a037c0d2764fb172e8109a3db471f
fa602b2874ea4eb59442f9937b952dcb55910b6e
refs/heads/master
2023-04-10T20:55:27.988445
2020-05-03T22:00:26
2020-05-03T22:26:23
261,074,802
2
0
Apache-2.0
2020-05-04T03:48:36
2020-05-04T03:48:35
null
UTF-8
Python
false
false
76
py
def foo(): while <selection>True</selection>: print "hello"
[ "yole@jetbrains.com" ]
yole@jetbrains.com
177e0fb844c10dfa74004b38b345e8812b831e03
0ce9226dc0622e1edd93e57dcf2e88eaf77cedd6
/leetcode/explore/October/11_subsquence_disnct.py
f9dff5ee942c4736487a7c15ad7c7a7aeeb83767
[]
no_license
minhthe/algo-and-ds-practice
6b09fc2174d58f8ba39ceabd80e2525ab95fe7ea
3a9b882af8412859f204569ca11808b638acf29d
refs/heads/master
2023-01-31T18:49:31.773115
2020-12-18T06:26:47
2020-12-18T06:26:47
298,933,489
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
''' Greading approach: if the char you want to add, and this char not the last, -> consider will add later not NOT to achive lexicographical order ''' class Solution: def removeDuplicateLetters(self, s: str) -> str: last_index = {c: i for i,c in enumerate(s)} stk = [] for i, c in enumerate(s): if c in ...
[ "minhthe.007@gmail.com" ]
minhthe.007@gmail.com
cda6a6e5e1b60598a1893d844bcba02707ddbbb7
282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19
/Malware1/venv/Lib/site-packages/scipy/spatial/setup.py
17994e6fb084330c7b91f8e312a70465a528a0ff
[]
no_license
sameerakhtar/CyberSecurity
9cfe58df98495eac6e4e2708e34e70b7e4c055d3
594973df27b4e1a43f8faba0140ce7d6c6618f93
refs/heads/master
2022-12-11T11:53:40.875462
2020-09-07T23:13:22
2020-09-07T23:13:22
293,598,094
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:ccb99ae81e55c20bfd073d894471ea6c5a51f1cc27e19fea1bd2ebdfa959f8cd size 2935
[ "46763165+sameerakhtar@users.noreply.github.com" ]
46763165+sameerakhtar@users.noreply.github.com
121d743af8ee8b7ac6eff95e4756e10c11b93dfc
78e93ca71a54bd11b6f51ef3936044e08782c7e3
/batchkit_examples/speech_sdk/work_item_processor.py
cb1108528d05baf51c553dc4922e2052d930bdf2
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/batch-processing-kit
c0134e1e395fdf7f2938101cea542dbb8d3c1f1f
8b0a5492361ff9473ab66c2f64aaccd5340f2f62
refs/heads/master
2023-09-02T01:54:36.226987
2022-10-27T03:40:34
2022-10-27T03:40:34
265,635,442
29
19
MIT
2023-06-02T10:38:06
2020-05-20T17:14:45
Python
UTF-8
Python
false
false
1,170
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import multiprocessing from typing import List from batchkit.logger import LogEventQueue from batchkit.work_item import WorkItemRequest, WorkItemResult from batchkit.work_item_processor import WorkItemProcessor from batchkit_examples.speech_sdk....
[ "noreply@github.com" ]
microsoft.noreply@github.com
66ff066deef611e0bc8dba47f853afe25757b4be
62f14fe947513ddf1e4ca8c26ae5d02099abd6cc
/tests/test_compressible.py
a49ff3d21e1e7f78b038956e6e933a00ac0f8d32
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bencleary/fluids
79d993366cea94a87cbc3ac3e5f01311fa81956e
b1d0e00877b36c14c52d7d32c45f9359c0366459
refs/heads/master
2022-11-08T02:47:02.896748
2020-06-20T14:41:10
2020-06-20T14:41:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,252
py
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
[ "Caleb.Andrew.Bell@gmail.com" ]
Caleb.Andrew.Bell@gmail.com
bbefec74ec05c8be2358eb6d37693b79a119f68a
a4830a0189c325c35c9021479a5958ec870a2e8b
/routing/migrations/0022_auto_20160819_1523.py
9a72cd9f00d71edcf95d1e679496d2ced9546eee
[]
no_license
solutionprovider9174/steward
044c7d299a625108824c854839ac41f51d2ca3fd
fd681593a9d2d339aab0f6f3688412d71cd2ae32
refs/heads/master
2022-12-11T06:45:04.544838
2020-08-21T02:56:55
2020-08-21T02:56:55
289,162,699
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-19 15:23 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('routing', '0021_fraudbypasshistory_outboundroutehistory'), ...
[ "guangchengwang9174@yandex.com" ]
guangchengwang9174@yandex.com
681d7bd02ccb0578a7842aa55f7bc5a99400f534
0859a864b1270164fe44a878ab12cfb3302c36bf
/abc159/a.py
fe00ff3096ace83f6c7f54a99fa07d13cf37865b
[]
no_license
wataoka/atcoder
f359d49ab6e0db39c019d9f6d2e8b92d35f723c4
b91465dd5f655d05b89485fc7ad222283c5958f5
refs/heads/master
2021-04-15T06:02:59.593965
2020-05-11T04:38:23
2020-05-11T04:38:23
126,754,342
0
0
null
2020-02-28T02:31:03
2018-03-26T00:51:12
Python
UTF-8
Python
false
false
106
py
def rC2(r): return int(r*(r-1)//2) N, M = list(map(int, input().split())) print(rC2(r=N) + rC2(r=M))
[ "wataoka@stu.kobe-u.ac.jp" ]
wataoka@stu.kobe-u.ac.jp
9434fd3c1d1715f323f8d9c6fc8f1097ccd9a93e
0cdcee391e178092d7073734957075c72681f037
/hackerrank/si/si-smaller-element-left-side.py
10a600c468bd60c31b9b74c6e23fe144363e00bf
[]
no_license
hrishikeshtak/Coding_Practises_Solutions
6b483bbf19d5365e18f4ea1134aa633ff347a1c1
86875d7436a78420591a60b716acd2780287b4a8
refs/heads/master
2022-10-06T18:44:56.992451
2022-09-25T03:29:03
2022-09-25T03:29:03
125,744,102
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
#!/usr/bin/python3 # Find 1st smaller elements on left side class Solution: # @param A : list of integers # @return a list of integers def prevSmaller(self, arr): N = len(arr) s = [-1] * N b = [-1] * N top = -1 top += 1 s[top] = 0 for i in range(1,...
[ "hrishikesh.tak@oneconvergence.com" ]
hrishikesh.tak@oneconvergence.com
4133d8de12e950deab0ef7eb66dff3ef852e342b
5cc1421f5280c4c869e5df5b936f4d629693d0f1
/main.py
139b340dbacec7bbaa8633419be07b3aeef61f1e
[ "MIT" ]
permissive
zhangxujinsh/MTCNN-VS
96c38479fa6e6aa5dea0e855cddcf8548ea7872d
42d79c0a8954493fd8afb4a6665584da9a8b9c6e
refs/heads/master
2020-07-11T01:51:40.142178
2016-10-29T02:13:57
2016-10-29T02:17:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
# coding: utf-8 import mxnet as mx from mtcnn_detector import MtcnnDetector import cv2 import os import time def testimg(detector): img = cv2.imread('test.jpg') t1 = time.time() results = detector.detect_face(img) print 'time: ',time.time() - t1 if results is not None: total_boxes = res...
[ "1293830063@qq.com" ]
1293830063@qq.com
8d85aaa01325ea01f6ece159131b127ef9047799
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=26/sched.py
1613dd9b0c794754a75a5de64bc5ac7319aa1a66
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
-X FMLP -Q 0 -L 3 95 400 -X FMLP -Q 0 -L 3 66 300 -X FMLP -Q 0 -L 3 54 175 -X FMLP -Q 1 -L 2 53 200 -X FMLP -Q 1 -L 2 50 200 -X FMLP -Q 1 -L 2 44 175 -X FMLP -Q 2 -L 2 34 125 -X FMLP -Q 2 -L 2 34 175 -X FMLP -Q 3 -L 1 33 175 -X FMLP -Q 3 -L 1 31 200 28 150 25 175 24 125 20 200 20 150 18 15...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
e9c6a490422bade7bff0ccdc363ca4f326b7f8bb
55821cab06b431b3b253df77559800b9f84ed2a7
/models/place.py
a918d531769a7e7fed34aacbe57ca9ec87ce9dab
[]
no_license
kaci65/AirBnB_clone
1fa2f1721d752635dd895de09fcedc194612ca91
b2c03583aab891fde5e87e7e34b40bcf2aa7ebb6
refs/heads/main
2023-03-11T08:23:08.811811
2021-02-28T20:41:17
2021-02-28T20:41:17
340,441,645
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
#!/usr/bin/python3 """Place module""" import models from models.base_model import BaseModel class Place(BaseModel): """place class inheriting from BaseModel""" city_id = "" user_id = "" name = "" description = "" number_rooms = 0 number_bathrooms = 0 max_guest = 0 price_by_night = ...
[ "wanjikukarugi@gmail.com" ]
wanjikukarugi@gmail.com
d6d3e38f6d727b711d14a8cf13a3acf935cdda72
18239524612cf572bfeaa3e001a3f5d1b872690c
/clients/client/python/test/test_submit_self_service_login_flow.py
b4e8c0a3a77a374f30e918234b71717beae63d3c
[ "Apache-2.0" ]
permissive
simoneromano96/sdk
2d7af9425dabc30df830a09b26841fb2e8781bf8
a6113d0daefbbb803790297e4b242d4c7cbbcb22
refs/heads/master
2023-05-09T13:50:45.485951
2021-05-28T12:18:27
2021-05-28T12:18:27
371,689,133
0
0
Apache-2.0
2021-05-28T12:11:41
2021-05-28T12:11:40
null
UTF-8
Python
false
false
1,198
py
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.3 Contact: support@ory.sh Generated by: http...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com
45d28aa10f25871b33de9573c126392639152d09
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/Sudoku_II_003_20180618133626.py
749199c16ddebe39bbc973c2ba32a1bfd48fc600
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
4,849
py
from random import randint # Sudoku1 almost solved sudoku1 = [ [5, 9, 8, 6, 1, 2, 3, 4, 7], [2, 1, 7, 9, 3, 4, 8, 6, 5], [6, 4, 3, 5, 8, 7, 1, 2, 9], [1, 6, 5, 4, 9, 8, 2, 7, 3], [3, 2, 9, 7, 6, 5, 4, 1, 8], [7, 8, 4, 3, 2, 1, 5, 9, 6], [8, 3, 1, 2, 7, 6, 9, 5, 4], [4, 7, 2, 8, 5, 9, 6,...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
511c9b0d7215e0f07ac854e1432936f04778ae66
37c243e2f0aab70cbf38013d1d91bfc3a83f7972
/pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/ak6PFJetSequence_pPb_mc_bTag_cff.py
4ad43ec58638c60213bfc117e17f453046685d97
[]
no_license
maoyx/CMSWork
82f37256833cbe4c60cb8df0b4eb68ceb12b65e7
501456f3f3e0f11e2f628b40e4d91e29668766d5
refs/heads/master
2021-01-01T18:47:55.157534
2015-03-12T03:47:15
2015-03-12T03:47:15
10,951,799
0
0
null
null
null
null
UTF-8
Python
false
false
11,363
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import * from RecoJets.JetProducers.JetIDParams_cfi import * ak6PFmatch = patJetGenJetMatch.clone(...
[ "yaxian.mao@cern.ch" ]
yaxian.mao@cern.ch
b052cc54020a43043bb7d1822c05072b653f6113
46f358b954d2d0067a2093ee9006e222f831a8f8
/tests/datasource/batch_kwarg_generator/test_s3_subdir_reader_generator.py
474a13f241874c6c833756f7ae698d9226069a0e
[ "Apache-2.0" ]
permissive
dhruvvyas90/great_expectations
b963aa99c683a0da3a9e2b5a1046d2a32f622c7b
fddf5336065c644558c528301e601b9f02be87e2
refs/heads/main
2023-01-28T15:26:55.331282
2020-12-03T18:52:14
2020-12-03T18:52:14
319,719,900
1
0
Apache-2.0
2020-12-08T18:02:33
2020-12-08T18:02:32
null
UTF-8
Python
false
false
3,651
py
import logging import os import time import pandas as pd import pytest import requests from botocore.session import Session from great_expectations.datasource.batch_kwargs_generator import ( S3SubdirReaderBatchKwargsGenerator, ) from great_expectations.exceptions import BatchKwargsError port = 5555 endpoint_uri ...
[ "noreply@github.com" ]
dhruvvyas90.noreply@github.com
758d3add23ff4cc75c3f3557a759800c70585c20
27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f
/plugins/doc_fragments/files.py
a3723db249284fc0990a043729d80d3b2ea6bec2
[]
no_license
coll-test/notstdlib.moveitallout
eb33a560070bbded5032385d0aea2f3cf60e690b
0987f099b783c6cf977db9233e1c3d9efcbcb3c7
refs/heads/master
2020-12-19T22:28:33.369557
2020-01-23T18:51:26
2020-01-23T18:51:26
235,865,139
0
0
null
null
null
null
UTF-8
Python
false
false
3,706
py
# -*- coding: utf-8 -*- # Copyright: (c) 2014, Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard files documentation fragment # Note: mode is overridden by the copy and template modules so if ...
[ "wk@sydorenko.org.ua" ]
wk@sydorenko.org.ua
6bd87fef952e8c69e3423f386f408538339d9185
8370083dbbbd32740ad1862637809396dc7984e2
/paresh61.A.MILESTONEPROJECTE/a1.py
524064c675bcdabbfbdd144f009ea8b4126de4dc
[]
no_license
parshuramsail/PYTHON_LEARN
a919b14aab823e0f5e769d8936ddbfb357133db2
8c76720bf73f13cf96930e6d4d5128e6ba9aa535
refs/heads/main
2023-07-14T16:25:26.240555
2021-08-29T17:10:19
2021-08-29T17:10:19
401,095,644
0
0
null
null
null
null
UTF-8
Python
false
false
2,294
py
# STEP1: write a function that can printout a board.setup your board as your list,where each index 1-9 corresponnds with a number on a numberpad. #so you can get a 3 by 3 board representation. #print('\n'*100) def display_board(board): print('\n'*100) print(" | |") print(" " + board[7] + '...
[ "64275709+parshuramsail@users.noreply.github.com" ]
64275709+parshuramsail@users.noreply.github.com
9106a10aff28c894fe165cefa35ee82cd8488822
b18f92a6a41a3d83e77848460d4a3f17e4fe677a
/introduction_to_python/recursive_functions/1_find_power/solution/test_solution.py
1a873495b9e68f09bf6e6f09278da0ec62088424
[]
no_license
ByteAcademyCo/Exercises
de71b885a498ead8296e6107836f9a06ac399d4f
8332d0473ab35ee1d2975b384afda45c77ef943d
refs/heads/master
2022-05-25T23:01:59.466480
2022-03-14T13:12:10
2022-03-14T13:12:10
252,842,407
1
109
null
2022-03-14T13:12:11
2020-04-03T21:09:47
Python
UTF-8
Python
false
false
167
py
def test_solution(): from solution import power assert power(1, 3) == 1 assert power(2, 4) == 16 assert power(0, 1) == 0 assert power(5, 2) == 25
[ "avelikevitch@gmail.com" ]
avelikevitch@gmail.com
f30006767dcdf9f17324e03f92349b7c526fad62
07564c75c1f37f2e0304720d1c01f23a27ef3469
/273.IntegertoEnglishWords/solution.py
cfa5b45a7acb04c003bd49fbf53a7a34351569ff
[]
no_license
ynXiang/LeetCode
5e468db560be7f171d7cb24bcd489aa81471349c
763372587b9ca3f8be4c843427e4760c3e472d6b
refs/heads/master
2020-05-21T18:27:16.941981
2018-01-09T22:17:42
2018-01-09T22:17:42
84,642,017
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
class Solution(object): def numberToWords(self, num): """ :type num: int :rtype: str """ res = self.helper(num) return ' '.join(res) if res else 'Zero' def helper(self, num): Ones = ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', ...
[ "yinan_xiang@163.com" ]
yinan_xiang@163.com
96766b767b7e79f7fb5ea45946f0cff5d54bc1c8
47dc4152dd163ce751d4703f19bb5339fc1cfb98
/djchat/settings.py
dae41d6fb978e9e0118e1da42103746c0c1bbbbe
[ "BSD-3-Clause" ]
permissive
michaelXDzhang/pulsar-django
85cf3437a578b2b198ea2f794d1a1f4db8a78ec1
0aa20e1c08b6a782cd634e736e2238776e0c98d5
refs/heads/master
2020-07-27T01:06:32.586546
2017-11-28T10:18:34
2017-11-28T10:18:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,562
py
""" Django settings for djchat project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
[ "luca@quantmind.com" ]
luca@quantmind.com
81063a6e3d985fbef8bfdf7fa09786028090fef0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_231/ch45_2020_04_12_23_45_54_626320.py
c4a53b37d17f38d42ea23fb09e36af31d98485ca
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
lista=[] lista_reversa=[] a=int(input('digite um numero:')) i=(0) while a>0: lista.append(a) i+=1 a=int(input('digite um numero:')) del lista[i] while i>=0: lista_reversa.append(lista[i]) i-=1 print(lista_reversa)
[ "you@example.com" ]
you@example.com
f22210c8427f7e7a65853ec23b3430b0491d5c34
c97fc7658c39feb51c0ed42c04783797c8675b8a
/xm_1/qt简单数据可视化.py
8536d7db1bea48f72b69fae54a0168600924e53b
[]
no_license
githubvit/study
8bff13b18bea4954e8ed1b4619a091b134b8ff97
845e19d1225f1aa51c828b15effac30be42fdc1b
refs/heads/master
2023-02-20T15:59:19.635611
2021-12-15T08:30:54
2021-12-15T08:30:54
241,928,274
1
1
null
2023-02-02T06:18:48
2020-02-20T16:08:06
Python
UTF-8
Python
false
false
1,548
py
# Qt数据可视化 https://doc.qt.io/qt-5/qtcharts-overview.html from PySide2 import QtGui, QtWidgets from PySide2.QtCharts import QtCharts # 在Qt5.7版本后将Qt Charts加入到了Qt模块中。 # 我们可以方便的使用这个模块,绘制很多样式的图形,比如折线、饼图等,快速实现数据可视化。 # 用Qt Charts绘制,大概分为四个部分: # 数据(QXYSeries)、QChart(不知怎么称呼)、坐标轴(QAbstractAXis)和视图(QChartView)。 # 要注意的是 QCh...
[ "sgq523@163.com" ]
sgq523@163.com
b3cf3a9f9a3615ad902926a49be6cbf5d61fa253
5e6d8b9989247801718dd1f10009f0f7f54c1eb4
/sdk/python/pulumi_azure_native/compute/availability_set.py
5b77516e40d5119864dee8097599203fac648887
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
vivimouret29/pulumi-azure-native
d238a8f91688c9bf09d745a7280b9bf2dd6d44e0
1cbd988bcb2aa75a83e220cb5abeb805d6484fce
refs/heads/master
2023-08-26T05:50:40.560691
2021-10-21T09:25:07
2021-10-21T09:25:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,431
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, overload from .. import _utilities from...
[ "noreply@github.com" ]
vivimouret29.noreply@github.com
e3befb7b065b5be68585a6da785f873742bbffa3
a6fa311aff9a99ad6a47e41fe34f3f12bb507007
/reagent/training/__init__.py
2cc9b73dd0d046b8b5115d9b7e1115535db99f34
[ "BSD-3-Clause" ]
permissive
cts198859/ReAgent
222e9dd4aeba455ad5faa9f6178a0e9793cb82fc
20f3d333821bad364fd567cce97de51c44123484
refs/heads/master
2022-09-15T13:08:24.732208
2020-05-29T00:51:35
2020-05-29T00:54:45
267,776,326
0
0
BSD-3-Clause
2020-05-29T05:51:43
2020-05-29T05:51:43
null
UTF-8
Python
false
false
987
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from .c51_trainer import C51Trainer, C51TrainerParameters from .cem_trainer import CEMTrainer from .dqn_trainer import DQNTrainer, DQNTrainerParameters from .parametric_dqn_trainer import ParametricDQNTrainer, ParametricDQNT...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
d8fc9aa6b18fb2f4bc50363b8a36ca7d158c1c44
08b998966c06dc50cd9372fe3e15d6599bcafbfb
/dotfiles/.ipython/profile_default/startup/10-pager.py
57da300105eaebfc2a84c667499aeb36a6ca7a1d
[ "MIT" ]
permissive
chbrown/config
77661fc8e485d5a8992114fd11e7eae383698b9b
ec8deb0bf756ff62f5599cb239c8ac11084d3d16
refs/heads/master
2021-06-06T10:13:24.401647
2021-02-22T15:03:54
2021-02-22T15:03:54
1,827,574
3
0
null
null
null
null
UTF-8
Python
false
false
301
py
from __future__ import print_function # IPython.core.hooks.show_in_pager doesn't cut it import IPython.core.page def page_printer(data, start=0, screen_lines=0, pager_cmd=None): if isinstance(data, dict): data = data['text/plain'] print(data) IPython.core.page.page = page_printer
[ "io@henrian.com" ]
io@henrian.com
f023b96d1bcc10da7a3a00e98c2a26e6526415ec
b6e7e7c0a68621c613898534f20de96c459fd0a9
/client/app.py
9999fc5bcf65ae1e09cde1f359f971321fe32177
[]
no_license
jwoglom/zoom-tools
227db0974c7ac239b9ea51b6e95222c765025d66
951b20970a990f3b293c593d3969c92550120913
refs/heads/main
2023-03-07T18:00:02.646547
2021-02-16T21:33:16
2021-02-16T21:33:16
339,311,304
0
0
null
null
null
null
UTF-8
Python
false
false
1,877
py
#!/usr/bin/env python3 from flask import Flask, Response, request, abort import random import string import subprocess import os app = Flask(__name__) scripts_dir = os.path.join(os.path.dirname(__file__), "../scripts") token = os.environ.get("TOKEN", "".join(random.choice(string.ascii_letters) for i in range(24)))...
[ "j@wogloms.net" ]
j@wogloms.net
1489caa6ecc1418fcca6f59a6452f6045f77b738
e0980f704a573894350e285f66f4cf390837238e
/.history/streams/blocks_20201019093841.py
6cccc214eeeb11cc10ee902cc92078eda7e0e6c4
[]
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
93
py
from wagtail.core import blocks class TitleBlock(blocks.StructBlock): text = blocks.Char
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
1d64087b50a7754102a8f120289480550b469a86
41bd7d939207e94c8f6956f02b779f5084b23bf4
/archives/admin.py
8604e9655b6c0429d898e44ebeaf1a4f5c81a761
[]
no_license
wd5/acanthes
724b81c799ab04344c66691a054b2a555b3e3d77
8c4fd011e60e9869396f1a93b385133ebff74238
refs/heads/master
2021-01-17T12:13:35.216661
2012-06-13T13:05:06
2012-06-13T13:05:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,171
py
from django.contrib import admin from archives.models import * class IntervenantAudioInline(admin.TabularInline): model = IntervenantAudio extra = 1 class AudioAdmin(admin.ModelAdmin): inlines = (IntervenantAudioInline,) list_display = ('id','subtitle', 'annee', 'genre', 'url_ecoute_intranet_adresse' ...
[ "samuel.goldszmidt@gmail.com" ]
samuel.goldszmidt@gmail.com
38a28d7f0257148f8e867dcfd6350f0e6276dd14
f7dd190a665a4966db33dcc1cc461dd060ca5946
/venv/Lib/site-packages/graphene/types/tests/test_schema.py
88af101988356209c9722d213bfa5137344960fa
[]
no_license
Darwin939/macmeharder_back
2cc35e2e8b39a82c8ce201e63d9f6a9954a04463
8fc078333a746ac7f65497e155c58415252b2d33
refs/heads/main
2023-02-28T12:01:23.237320
2021-02-02T17:37:33
2021-02-02T17:37:33
328,173,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
import pytest from ..field import Field from ..objecttype import ObjectType from ..scalars import String from ..schema import Schema class MyOtherType(ObjectType): field = String() class Query(ObjectType): inner = Field(MyOtherType) def test_schema(): schema = Schema(Query) assert schema.get_quer...
[ "51247000+Darwin939@users.noreply.github.com" ]
51247000+Darwin939@users.noreply.github.com
87b4c9c295b5f43b508c4f5062977f0f628852e2
4a84ef702269eed582b04dbed979a24607579f52
/src/mapnik/tests/python_tests/sqlite_rtree_test.py
2d28adac0266d3439eb51f6e9cc4d9c5da04e236
[]
no_license
olibook/pymapnik2
9ef766d759afc3efeccd988bfb7239bd73cac01e
c409fa150e203ff85e14b8fd40063267a6802e1c
refs/heads/master
2016-08-04T11:51:35.987664
2013-02-18T16:01:10
2013-02-18T16:01:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,302
py
#!/usr/bin/env python from nose.tools import * from mapnik.tests.python_tests.utilities import execution_path from Queue import Queue import threading import os, mapnik import sqlite3 def setup(): # All of the paths used are relative, if we run the tests # from another directory we need to chdir() os.chd...
[ "kiorky@cryptelium.net" ]
kiorky@cryptelium.net
8ac469d250354ff770e368d0dc803cc543d5ac0d
c42908fce35bc2afb10abd924cfd13d5fa286205
/html2vec/base/io/basefilehandlers.py
30f19a526fdb753f0bc6b1578280d70ce6dcfae6
[ "MIT" ]
permissive
dpritsos/html2vec
b3866f05e7e1c1cb61f40b8f038c1a05a89a9faa
be5629d6dc2665891472c5795c191286f0de31e7
refs/heads/master
2023-05-13T08:30:24.485797
2021-06-05T07:29:06
2021-06-05T07:29:06
1,896,404
8
0
null
2018-10-20T13:10:43
2011-06-14T19:54:52
Python
UTF-8
Python
false
false
3,689
py
# # Module: Base File Handlers # # Author: Dimitiros Pritsos # # License: BSD Style # # Last update: Please refer to the GIT tracking # """ html2vect.base.io.basefilehandlers: submodule of `html2vect` module defines the class BasePathHandler and BaseFileHandler """ import codecs import os def copyfi...
[ "dpritsos@extremepro.gr" ]
dpritsos@extremepro.gr
f2b8c9a7622b4657969fb9800cd35901be8fe2e1
e83df449e6956d5af8e4b98d535a9daacbbff477
/main.py
0215ec4d5e158a0c5cdccee9fcaa8569fd2549a5
[]
no_license
LefterisJP/race_analyzer
2f48edc34bb299f0d96e3a19a4f245b1b082f21d
08a5041817e227969775a42656c2bce2030ed69f
refs/heads/master
2020-03-28T22:40:01.078406
2018-09-18T07:47:53
2018-09-18T07:47:53
149,248,881
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
import click @click.group(invoke_without_command=True) @click.pass_context def main(ctx, threads, keyfile, input_file, respect_word_order, **kwargs): pass if __name__ == '__main__': main()
[ "lefteris@refu.co" ]
lefteris@refu.co
ec86aee2863caad73625cec5b38ecb008e726e79
462c56e7454c97e0541588b9be66a4e216ea20fd
/399.evaluate-division.py
a3cfbdefe5a676c0fd3cfbca9f067f3686c034cf
[]
no_license
LouisYLWang/leetcode_python
d5ac6289e33c5d027f248aa3e7dd66291354941c
2ecaeed38178819480388b5742bc2ea12009ae16
refs/heads/master
2020-05-27T08:38:48.532000
2019-12-28T07:08:57
2019-12-28T07:08:57
188,549,256
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
# # @lc app=leetcode id=399 lang=python3 # # [399] Evaluate Division # class Solution(object): def calcEquation(self, equations, values, queries): """ :type equations: List[List[str]] :type values: List[float] :type queries: List[List[str]] :rtype: List[float] """ ...
[ "louis.yl.wang@outlook.com" ]
louis.yl.wang@outlook.com
0e466f4ac716661f529c7dba7cacc70a9e2d454b
5b9b2ec5fb3142609882a3320c6e64c6b912395c
/LeetCode/mostWaterContainer.py
b38ef468717fd38297251aa67b4e445ea5621a0e
[]
no_license
anildhaker/DailyCodingChallenge
459ba7ba968f4394fb633d6ba8b749c1e4cb7fb0
f1cfc52f156436dc7c0a6c43fa939cefac5cee36
refs/heads/master
2020-04-20T18:58:33.133225
2020-01-11T14:50:52
2020-01-11T14:50:52
169,036,874
1
0
null
null
null
null
UTF-8
Python
false
false
642
py
# Given n non-negative integers a1, a2, ..., an , where each represents a point at # coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line # i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a # container, such that the container contains the most water. def maxA...
[ "anildhaker777@gmail.com" ]
anildhaker777@gmail.com
c9698f69a352b6a3843b8b47da144c699952fec5
b6df7cda5c23cda304fcc0af1450ac3c27a224c1
/data/codes/bluquar_cube.py
c9bc60edb49769e4a1e2ad2a9460bddc02746812
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
vieira-rafael/py-search
88ee167fa1949414cc4f3c98d33f8ecec1ce756d
b8c6dccc58d72af35e4d4631f21178296f610b8a
refs/heads/master
2021-01-21T04:59:36.220510
2016-06-20T01:45:34
2016-06-20T01:45:34
54,433,313
2
4
null
null
null
null
UTF-8
Python
false
false
43,257
py
# cube.py# Chris Barker# CMU S13 15-112 Term Project from Tkinter import *from geometry import *import heapqimport copyimport randomimport solutionsimport mathfrom math import sin, cos, pi class Struct(object): pass def loadObject(path, index): with open(path) as file: try: data = file.read() except Exception as e: pri...
[ "thaisnviana@gmail.com" ]
thaisnviana@gmail.com
404a81bab69f0ff9408a716756755d82973ea033
c0f72a4c87794df5c4c239ddfc0392f7b9295d3f
/top/api/rest/TopatsTaskDeleteRequest.py
162b86495235cb30dd4a04ecdb6d98d9891e873b
[ "MIT" ]
permissive
chenluzhong150394/taobao-top-python3_version
c37ec2093726212b49a84598becd183b9104bd99
61b262c46e48504754a9427986595bce0ae0e373
refs/heads/master
2020-11-27T16:28:46.526318
2020-06-29T14:32:16
2020-06-29T14:32:16
229,528,970
2
2
null
null
null
null
UTF-8
Python
false
false
301
py
''' Created by auto_sdk on 2013-06-03 16:32:57 ''' from top.api.base import RestApi class TopatsTaskDeleteRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.task_id = None def getapiname(self): return 'taobao.topats.task.delete'
[ "18438128833@163.com" ]
18438128833@163.com
f901db4af23a8c26750f616948c92326dd175944
4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8
/python/decorator/6.py
9daaa357949d9124d267fde893e0bbd950f06d36
[ "MIT" ]
permissive
gozeon/code-collections
464986c7765df5dca980ac5146b847416b750998
13f07176a6c7b6ac13586228cec4c1e2ed32cae4
refs/heads/master
2023-08-17T18:53:24.189958
2023-08-10T04:52:47
2023-08-10T04:52:47
99,432,793
1
0
NOASSERTION
2020-07-17T09:25:44
2017-08-05T15:56:53
JavaScript
UTF-8
Python
false
false
310
py
import logging def user_logging(func): def wrapper(*args, **kwargs): logging.warn("%s is running" % func.__name__) return func(*args, **kwargs) return wrapper @user_logging def foo(name, age=None, height=None): print('i am %s, age %s, height %s' % (name, age, height)) foo('haha', 12, 40)
[ "goze.qiu@gmail.com" ]
goze.qiu@gmail.com
edde83793cbbb6f5ecd213edbf7171025f7c5995
f603b0edb36f3578b99c49aea68c09acb222b5e2
/exercicios/Curso_Udemy_Python/sec3_aula58.py
6506bd25d840427c70745b94680fc8c9fb54c13b
[ "MIT" ]
permissive
igobarros/maratona-data-science-brasil
260d8160a356dfdf5876cfef03a0aacc7f20340e
cc07476579134a2764f00d229d415657555dcdd1
refs/heads/master
2021-10-09T23:33:25.278361
2019-01-04T15:08:43
2019-01-04T15:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
class MyList(list): def append(self, *args): self.extend(args) m = MyList() m.append(0) m.append(1,2,3,4,5,6) print(m) class MyList1(list): def sort(self): return 'eae vey? ta afim de ordenar?' l = [4,1,78,34,4,9] '''l.sort() print(l)''' lista = MyList1() print(lista.sort())
[ "igorestacioceut@gmail.com" ]
igorestacioceut@gmail.com
ec46ebcaaa624f2ac7abf272df486a27cd2075fe
b25055503a8f0de13b4f7aece4f6cf1ba5c9d3ab
/tests/fixtures.py
03ad2db59c5325385cda821694184a7a51d8a6c9
[ "MIT" ]
permissive
mkturkcan/autobahn-sync
a340eb9f32c331a9b4331f0a1701e18ef78e3d9e
2663520c032912c0769647de8fc5e47d9234cf07
refs/heads/master
2020-03-19T12:41:23.387271
2018-06-12T16:54:30
2018-06-12T16:54:30
136,533,456
0
0
null
2018-06-07T21:34:46
2018-06-07T21:34:46
null
UTF-8
Python
false
false
1,294
py
from os import path from time import sleep import subprocess import pytest from autobahn_sync import AutobahnSync, ConnectionRefusedError CROSSBAR_CONF_DIR = path.abspath(path.dirname(__file__)) + '/.crossbar' START_CROSSBAR = not pytest.config.getoption("--no-router") @pytest.fixture(scope="module") def crossbar(...
[ "emmanuel.leblond@gmail.com" ]
emmanuel.leblond@gmail.com
80a876d02aa0d4d1c1a901b0311bd3e3900c7ef4
7623386df02a52145b174700621fa70973e81d0e
/shakecastaebm/validation/generate.py
7925da9b8f3a495b9c6fce24a65e5ca2affc39d0
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain-disclaimer" ]
permissive
dslosky-usgs/shakecast-aebm
f641f6a3bac3d466fb4e0f02b4913e0b63fa5ecb
bec1ad970989a7121096123f0b3a84c20ed0a0cc
refs/heads/master
2021-06-24T07:02:27.539492
2018-08-08T20:51:08
2018-08-08T20:51:08
144,181,944
0
0
null
2018-08-09T17:09:24
2018-08-09T17:09:24
null
UTF-8
Python
false
false
1,409
py
import os import sys from . import shakecast from . import workbook from . import damping from . import demand if __name__ == '__main__': pp_fig, capacity_fig, acc_diff_fig, disp_diff_fig = workbook.run() cap_fig, haz_fig, dsf_fig, dem_fig, sc_pp_fig, impact_fig = shakecast.run() damp1, damp2 = damping.ru...
[ "dslosky@usgs.gov" ]
dslosky@usgs.gov
220dfaaeafb0194a281d372055511fb51b1ca888
f7f2e8af3e9b19840396ab5da36bfa161cf03484
/setup.py
3466011a2a76c26eb5542750376251fd57f946c5
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nevinoven/bcwallet
2a4713f24505978f681d6d398300c144834bfbf0
afaef09b3c3ac87de765cd9a915f98c046084b21
refs/heads/master
2021-01-15T23:50:56.911620
2015-12-08T18:29:22
2015-12-08T18:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
# https://youtu.be/kNke39OZ2k0?t=65 from setuptools import setup setup( name='bcwallet', version='1.2.3', description='Simple BIP32 HD cryptocurrecy command line wallet', author='Michael Flaxman', author_email='mflaxman+blockcypher@gmail.com', url='https://github.com/bl...
[ "mflaxman@gmail.com" ]
mflaxman@gmail.com
0f89fce50eea8c4c073a162371547050cac89eab
e672b8a57d5224116e70e81cb1ad1ed56e62de0c
/Human/decoration.py
90d7d968ff9836043b63250e334a81084229f36d
[]
no_license
ShiShuyang/LineMe-1
a13616fd10bdec2c63e6d6fa648f23fc4d1dfb61
5eb4de329d0bf588edf8ad1684a4ec5fa529fecf
refs/heads/master
2021-01-22T21:00:34.273257
2016-05-16T08:04:17
2016-05-16T08:04:17
58,914,351
0
0
null
2016-05-16T08:00:20
2016-05-16T08:00:19
null
UTF-8
Python
false
false
110
py
#!/usr/bin/env python # coding: utf-8 # created by hevlhayt@foxmail.com # Date: 2016/4/14 # Time: 20:23 #
[ "hevlhayt@foxmail.com" ]
hevlhayt@foxmail.com
164272c7c197a50b02def627df3852104c8d4b26
656341483ae8abe8792942d26556fdd4ff5ca7a9
/Case/AS/Http/DocPolicyMgnt/test_AddPolicyPwdStrength201.py
ce8cafe542826cd32d85e60e6ce32d22c57ae029
[]
no_license
GWenPeng/Apitest_framework
b57ded9be4ec896d4ba8e02e9135bc7c73d90034
ab922c82c2454a3397ddbf4cd0771067734e1111
refs/heads/master
2022-11-26T05:54:47.168062
2020-08-06T01:45:12
2020-08-06T01:45:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
import pytest import allure import sys sys.path.append("../../../../") from Common.readjson import JsonRead from DB_connect.mysqlconnect import DB_connect from Common.http_request import Http_client @pytest.mark.ASP_344 @pytest.mark.high @allure.severity('blocker') # 优先级 @allure.feature("文档域策略管控") class Test_AddPol...
[ "gu.wenpeng@eisoo.com" ]
gu.wenpeng@eisoo.com
effe7dc25476101643ced680af1b5b329b9d4308
de27e6d143f40d5948244597b861d522a9a272f6
/fjord/heartbeat/migrations/0009_answer_country.py
f824482bc7c9c38b3c33cf27d7df7e8ff5aaac97
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mozilla/fjord
7f31af6dd80869ca856f8a02ff10e72c81685368
0fcb81e6a5edaf42c00c64faf001fc43b24e11c0
refs/heads/master
2023-07-03T18:20:01.651759
2017-01-10T20:12:33
2017-01-10T20:12:33
5,197,539
18
22
null
2016-08-22T14:56:11
2012-07-26T21:25:00
Python
UTF-8
Python
false
false
519
py
# -*- coding: utf-8 -*- """ Add country to heartbeat Answer table. """ from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('heartbeat', '0008_auto_20150305_1442'), ] operations = [ migrations.AddField(...
[ "willkg@mozilla.com" ]
willkg@mozilla.com
ba62cc4936adb4692e0e0453711d19b420bee0ed
e03bce53de6f88c0e09f56e4fe11c36af0f1161f
/tests/functional/cfngin/hooks/test_awslambda/test_runner.py
d790a94e4e9319a5152fbf92403ed18fa28eec90
[ "Apache-2.0" ]
permissive
onicagroup/runway
20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f
0763b06aee07d2cf3f037a49ca0cb81a048c5deb
refs/heads/master
2023-08-30T22:35:54.113981
2023-08-29T14:13:35
2023-08-29T14:13:35
122,529,924
156
79
Apache-2.0
2023-09-13T13:43:50
2018-02-22T20:12:55
Python
UTF-8
Python
false
false
10,335
py
"""Test AWS Lambda hook.""" # pylint: disable=no-self-argument # pylint: disable=redefined-outer-name,unexpected-keyword-arg,unused-argument from __future__ import annotations import json import shutil import sys from pathlib import Path from typing import TYPE_CHECKING, Any, Dict, Generator, Optional import boto3 im...
[ "noreply@github.com" ]
onicagroup.noreply@github.com
2ca452bcbb76a5940af2d37e15ccbd301ac908f9
46af8b5c7d1790ee9ddef636c7428eb5f23de5e5
/project/settings_local.py
d8b4e8f42916c8b50165d0ad17e924372de258a3
[]
no_license
praekelt/speed-demo
f1370628ca9241ec5cb86ea76f6c615c1138fa9e
782c9d7263bed59a7d2ab9dc5d169a7a348a277e
refs/heads/master
2020-12-07T15:24:26.979572
2017-06-28T14:03:50
2017-06-28T14:03:50
95,519,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
import os import raven # Declare or redeclare variables here FOOFOO = 1 # You should redefine the CACHE setting here # Configure raven. Set "dsn" to None for your development environment. It must # be None - anything else causes problems. RAVEN_CONFIG = { "dsn": None # "dsn": "https://<key>:<secret>@sentry.i...
[ "hedleyroos@gmail.com" ]
hedleyroos@gmail.com
d08e6121ee2290536a5b41e02083249be2e73fcf
2ea17b7b5fe875821f05f2d148220cfe7082120f
/migrations/versions/59c170d304e0_.py
5c39be4beaf508e801753d04c3316590d69575ae
[]
no_license
xilixjd/python_react_blog_back_end
b1c76759654847717846671906d9bd1a758cd8f7
6b88e8f9340d35988c948e7c9ca1dff74dcf75d6
refs/heads/master
2020-05-20T18:50:13.941816
2017-08-08T13:48:49
2017-08-08T13:48:49
88,735,190
19
1
null
null
null
null
UTF-8
Python
false
false
662
py
"""empty message Revision ID: 59c170d304e0 Revises: 390b63a723a6 Create Date: 2017-07-03 22:18:00.342518 """ # revision identifiers, used by Alembic. revision = '59c170d304e0' down_revision = '390b63a723a6' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): # ##...
[ "349729220@qq.com" ]
349729220@qq.com
a8eba0feb28aa882253f2324f18c0b5b36f77d7b
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_17350.py
11db4fbe2ed5ba01f7114c7b6e2db2b35d8b6762
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
# Django Foreign Key QuerySet (join) user_obj.student_set.all()
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
11c103e803f402c7cd6758bf438339493c44d684
5ed389c1f3fc175aa73478fc3dcba4101520b80b
/python/spoonacular/com/spoonacular/client/model/inline_object.py
c1d9417abc5018f9a5ae89fa133d67f82de5c73f
[ "MIT" ]
permissive
jvenlin/spoonacular-api-clients
fae17091722085017cae5d84215d3b4af09082aa
63f955ceb2c356fefdd48ec634deb3c3e16a6ae7
refs/heads/master
2023-08-04T01:51:19.615572
2021-10-03T13:30:26
2021-10-03T13:30:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,531
py
# coding: utf-8 """ spoonacular API The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural lang...
[ "davidurbansky@gmail.com" ]
davidurbansky@gmail.com
48424c58d4841f72a346c4d91fa4d737bc3caba8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2648/60678/289889.py
2502a253d156988e60af2cf0b3448f5e525988df
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
354
py
stringM = input() stringS = input() if stringM == 'whatthemomooofun' and stringS == 'moo': print('whatthefun', end="") if stringM == 'whatthemomooofun' and stringS == 'o': print('whatthemmfun', end="") if stringM == 'whatthemmfunwhatthemomooofun' and stringS == 'o': print('whatthemmfun', end="") else: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
7a273b69ade85c025a308827da97ee147e75a0af
b26f62e1ae52df9e34c4ce27dc0f617416518e23
/12-python-level-one/Part9_Functions_Exercises.py
fa8e0bc6622df3e7cfeea4082a548c026b1c314e
[]
no_license
Rutrle/udemy-django
2ba5b39f69fc526c27d074818ff372c91f3b879b
53502d8d87f9da907771bc044538844cf18f6895
refs/heads/master
2023-04-17T13:05:20.539842
2021-05-03T23:25:51
2021-05-03T23:25:51
339,551,118
0
0
null
null
null
null
UTF-8
Python
false
false
4,332
py
##################################### #### PART 9: FUNCTION EXERCISES ##### ##################################### # Complete the tasks below by writing functions! Keep in mind, these can be # really tough, its all about breaking the problem down into smaller, logical # steps. If you get stuck, don't feel bad about ha...
[ "rutrle@seznam.cz" ]
rutrle@seznam.cz
15871357f103326ade70ff1294562689ef8c5375
38dc0477ba472146f4fabe109826198705144d03
/fastai/layer_optimizer.py
1791659fe6e1b601fc2ebaac8a96eab91c43d304
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
dana-kelley/DeOldify
ad54a3a44e4a8d90f00ef3d7ee20e56b14683f47
fa186f251b8a7dbc120d8a5901fdd0d065c60eec
refs/heads/master
2020-05-17T04:52:54.795176
2019-12-11T05:53:01
2019-12-11T05:53:01
183,519,547
68
10
MIT
2020-02-18T15:44:14
2019-04-25T22:41:00
Python
UTF-8
Python
false
false
3,313
py
from .imports import * from .torch_imports import * from .core import * def opt_params(parm, lr, wd): return {'params': chain_params(parm), 'lr':lr, 'weight_decay':wd} class LayerOptimizer(): def __init__(self, opt_fn, layer_groups, lrs, wds=None): if not isinstance(layer_groups, (list,tuple)): layer_...
[ "jsa169@gmail.com" ]
jsa169@gmail.com
cac02f47d1ecfbce494b5b3cccba8632db18a064
802770deb5a98e8e644e9aaf5a6fabc851e6eae1
/quiz_test/migrations/0018_auto_20180704_1623.py
3d78f9b8dbeb5d59fae13e7a420f414c4ff58225
[]
no_license
Subhash1998/quiz
1eaf7fe0338eee092f6a5af52d57718c61738930
da4c11c4f9271200c63970ab1f90c240f5a10598
refs/heads/master
2022-12-12T17:34:04.450562
2018-07-12T19:41:52
2018-07-12T19:41:52
140,757,317
0
0
null
2021-06-10T20:33:39
2018-07-12T19:39:52
Python
UTF-8
Python
false
false
802
py
# Generated by Django 2.0.5 on 2018-07-04 16:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('quiz_test', '0017_category_test'), ] operations = [ migrations.RenameField( model_name='test', old_name='question_amount', ...
[ "you@example.com" ]
you@example.com
f2019d1e9561228cb0481b67234bdf4a1540de14
96a34a048c783a75736bf0ec775df22142f9ee53
/packages/simcore-sdk/src/simcore_sdk/node_data/__init__.py
595d6f1ed7c62d9dc3319d2cc38f81966604b3ec
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
27
py
from . import data_manager
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
5f021c7f67037101485a78987bd462e9077c3f9a
45dd427ec7450d2fac6fe2454f54a130b509b634
/homework_3/preparation2.py
f45b9c53cbbbda4b2d028ec030b01ce3a6e5a699
[]
no_license
weka511/smac
702fe183e3e73889ec663bc1d75bcac07ebb94b5
0b257092ff68058fda1d152d5ea8050feeab6fe2
refs/heads/master
2022-07-02T14:24:26.370766
2022-06-13T00:07:36
2022-06-13T00:07:36
33,011,960
22
8
null
null
null
null
UTF-8
Python
false
false
561
py
import os, random filename = 'disk_configuration.txt' if os.path.isfile(filename): f = open(filename, 'r') L = [] for line in f: a, b = line.split() L.append([float(a), float(b)]) f.close() print ('starting from file', filename) else: L = [] for k in range(3): ...
[ "simon@greenweaves.nz" ]
simon@greenweaves.nz
dcf1b8da0e24589c36e224719499d07a0cf14ac6
ab11640874d7f7eb6c6c44ecadf0022368fd3d30
/ppm.py
0a2936220a56bda68cb0ba41af36762844c0711b
[]
no_license
bsdphk/BSTJ_reformat
074d44d86cb0fccd25e47be5ffc2199c910640bf
9e72421ed110a582f67cd94727573da9b68c4ed2
refs/heads/master
2021-01-25T10:11:42.752665
2013-01-23T09:44:26
2013-01-23T09:44:26
7,771,692
1
1
null
null
null
null
UTF-8
Python
false
false
5,280
py
from __future__ import print_function import mmap import os import sys class ppm(object): def __init__(self, fn, a = "r", x = None, y = None): assert a == "r" or a == "w" if a == "w": self.wr = True assert type(x) == int assert type(y) == int assert x > 0 assert y > 0 else: self.wr = False ...
[ "phk@FreeBSD.org" ]
phk@FreeBSD.org
6e7cb657f766e088b1c0fb3cbe8754948b3991a6
c3175f2b482691fbfcb9adc391b4d45b6f17b09d
/PyOhio_2019/examples/pyscript_example.py
0b49ed87ee1a875552f07f3411e05bb70e6a9b23
[ "MIT" ]
permissive
python-cmd2/talks
27abff4566c6545c00ad59c701831694224b4ccf
64547778e12d8a457812bd8034d3c9d74edff407
refs/heads/master
2023-08-28T20:45:01.123085
2021-03-29T20:44:36
2021-03-29T20:44:36
197,960,510
2
3
MIT
2022-01-21T20:03:37
2019-07-20T17:14:51
Python
UTF-8
Python
false
false
3,750
py
#!/usr/bin/env python # coding=utf-8 """A sample application for how Python scripting can provide conditional control flow of a cmd2 application""" import os import cmd2 from cmd2 import style class CmdLineApp(cmd2.Cmd): """ Example cmd2 application to showcase conditional control flow in Python scripting within...
[ "todd.leonhardt@gmail.com" ]
todd.leonhardt@gmail.com
ac3e9c697e353b693c7f8c8310a98068050b8172
b25485391a8a2007c31cd98555855b517cc68a64
/examples/src/dbnd_examples/tutorial_syntax/T60_task_that_calls_other_tasks.py
4e531bd99f3753db413843c5526d5528de64f9e8
[ "Apache-2.0" ]
permissive
ipattarapong/dbnd
5a2bcbf1752bf8f38ad83e83401226967fee1aa6
7bd65621c46c73e078eb628f994127ad4c7dbd1a
refs/heads/master
2022-12-14T06:45:40.347424
2020-09-17T18:12:08
2020-09-17T18:12:08
299,219,747
0
0
Apache-2.0
2020-09-28T07:07:42
2020-09-28T07:07:41
null
UTF-8
Python
false
false
536
py
import pandas as pd from dbnd import task @task def func_return_df(): return pd.DataFrame(data=[[3, 1]], columns=["c1", "c2"]) @task def func_gets(df): return df @task def func_pipeline(p: int): df = pd.DataFrame(data=[[p, 1]], columns=["c1", "c2"]) d1 = func_gets(df) d2 = func_gets(d1) r...
[ "evgeny.shulman@databand.ai" ]
evgeny.shulman@databand.ai
3c80a21b57ae2707f9a66aef9c33445e8683c9ce
95a27dd31260802da3768064c9614ce4f6ca4797
/Scripts/MLP_GenCode_112.py
72a351e7ac8a3dc76101c0b9c9b6d8c96346f104
[ "MIT" ]
permissive
ShepherdCode/Soars2021
7ee34227076ea424ad42f4727205141b69c78bb9
ab4f304eaa09e52d260152397a6c53d7a05457da
refs/heads/main
2023-07-09T05:28:56.993951
2021-08-18T14:16:57
2021-08-18T14:16:57
364,885,561
1
0
null
null
null
null
UTF-8
Python
false
false
9,618
py
#!/usr/bin/env python # coding: utf-8 # # MLP GenCode # MLP_GenCode_trying to fix bugs. # NEURONS=128 and K={1,2,3}. # # In[14]: import time def show_time(): t = time.time() print(time.strftime('%Y-%m-%d %H:%M:%S %Z', time.localtime(t))) show_time() # In[15]: PC_TRAINS=8000 NC_TRAINS=8000 PC_TESTS...
[ "jmill02@shepherd.edu" ]
jmill02@shepherd.edu
1f98e74eef835ca6a17c0f6a2081205ba2b18a15
c41069e0cb4105c4092853e60de6bf116b332e70
/resaspy/__init__.py
a5fdbf6faf8e137b9e35b31325e2ee25d4a95bd9
[ "MIT" ]
permissive
ar90n/resaspy
5a4e7789dc24f412e1f1f929fb491f349abe90f1
58d140ad1e61478ab8f3993676bd0c97ad43ae18
refs/heads/master
2021-01-11T10:13:13.712176
2017-05-10T14:17:57
2017-05-10T14:17:57
78,554,641
7
1
null
null
null
null
UTF-8
Python
false
false
510
py
# -*- coding: utf-8 -*- """ resaspy is a simple utility for RESAS api(https://opendata.resas-portal.go.jp). usage: >>> from resaspy import Resaspy >>> resas = Resaspy( key ) >>> r = resas.prefectures() >>> r.result :copyright: (c) 2016 by Masahiro Wada. :license: MIT, see LICENSE for more details. """ _...
[ "argon.argon.argon@gmail.com" ]
argon.argon.argon@gmail.com
6a97d871b8ed8a49afb5c0e20a56bf9f9b38ed3a
5e80f0b1af9fbf9dc774dbb68aa603574e4ae0ba
/algorithm-study/codewars/Quarter_of_the_year.py
96e4279a8205373084cf8d50623834bef2b00e87
[]
no_license
namujinju/study-note
4271b4248b3c4ac1b96ef1da484d86569a030762
790b21e5318a326e434dc836f5f678a608037a8c
refs/heads/master
2023-02-04T13:25:55.418896
2020-12-26T10:47:11
2020-12-26T10:47:11
275,279,138
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
def quarter_of(month): return (month - 1) // 3 + 1
[ "59328810+namujinju@users.noreply.github.com" ]
59328810+namujinju@users.noreply.github.com
30d1e191fd39fe9da315d8edc408653ef79ab813
9baa9f1bedf7bc973f26ab37c9b3046824b80ca7
/venv-bck/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py
1940bcf576151f37297b97d9ebafec8007ab3c80
[]
no_license
shakthydoss/suriyan
58774fc5de1de0a9f9975c2ee3a98900e0a5dff4
8e39eb2e65cc6c6551fc165b422b46d598cc54b8
refs/heads/master
2020-04-12T05:36:59.957153
2017-01-08T06:12:13
2017-01-08T06:12:13
59,631,349
0
0
null
null
null
null
UTF-8
Python
false
false
9,507
py
from __future__ import absolute_import import time from socket import _GLOBAL_DEFAULT_TIMEOUT from ..exceptions import TimeoutStateError # A sentinel value to indicate that no timeout was specified by the user in # urllib3 _Default = object() def current_time(): """ Retrieve the current time. This function...
[ "shakthydoss@gmail.com" ]
shakthydoss@gmail.com
5215d7aee1f79545124b261740052b0b5e5af4fb
f44c0ae69de99da4ca248d7ec00f6a56d84f649d
/src/parameters_combinator/ListOfParams.py
6446198df70ded58d37de5c8a074601cd06bedf7
[ "BSD-3-Clause" ]
permissive
birlrobotics/parameters_combinator
641f7701e4b7429fb68be524de97e1eb2e514fa6
6f4f1ed838867c3d6b692b57d5895c18320394e9
refs/heads/master
2021-01-25T14:10:20.852853
2018-07-09T06:44:11
2018-07-09T06:44:11
123,659,869
0
0
null
null
null
null
UTF-8
Python
false
false
36
py
class ListOfParams(list): pass
[ "sk.law.lsq@gmail.com" ]
sk.law.lsq@gmail.com
5376359526eb1ac0de52a283b309692922b54864
74a01e6a22fe7c6b552e2ffb9f92d9671c54aa20
/bpb/parser/pdf.py
fb7471eb62cbce5bdbd4260bce0c4ba579fa4d16
[]
no_license
snagwuk/blog_post_bot_cli
549805ba988c3753185111575ba759566c7ea17f
29e6c6e9e7c48e5ad7c9b4dda26e56226c683290
refs/heads/master
2022-03-27T01:05:44.441712
2020-01-05T01:00:54
2020-01-05T01:00:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
# modules for import PyPDF2 import pprint # pdf file object # you can find find the pdf file with complete code in below pdfFileObj = open('../data/test.pdf', 'rb') # pdf reader object pdfReader = PyPDF2.PdfFileReader(pdfFileObj) # number of pages in pdf print(pdfReader.numPages) # a page object pageObj = pdfReader.ge...
[ "pjt3591oo@gmail.com" ]
pjt3591oo@gmail.com
69e64077be97c782e455563333f9f0aaafc67fca
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_image_tags_response.py
76a1f6343bbb44bb9fa8a53ef623e27886720b43
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,811
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListImageTagsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
6d93b0cd78292a61ae919edfa5a15e96fa5f6f6a
c9697437c292df7fefd68559fdd9636066bdb2f1
/dev/potentials/sinc_pulse_from_number_of_cycles.py
0b1d64c026d7f66d3afbc925237681fad25c3cd4
[]
no_license
JoshKarpel/ionization
ebdb387483a9bc3fdb52818ab8e897e562ffcc67
3056df523ee90147d262b0e8bfaaef6f2678ea11
refs/heads/master
2021-03-24T13:03:57.469388
2020-04-06T03:37:04
2020-04-06T03:37:04
62,348,115
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
#!/usr/bin/env python import logging import os import numpy as np import simulacra as si import simulacra.units as u FILE_NAME = os.path.splitext(os.path.basename(__file__))[0] OUT_DIR = os.path.join(os.getcwd(), "out", FILE_NAME) LOGMAN = si.utils.LogManager("simulacra", "ionization", stdout_level=logging.DEBUG) ...
[ "josh.karpel@gmail.com" ]
josh.karpel@gmail.com
151392182417b31d3dd7cb2a6d0fcfa253fee301
436177bf038f9941f67e351796668700ffd1cef2
/venv/Lib/site-packages/sklearn/linear_model/__init__.py
796b13e6c63d51def5a559c6a79836627fc25551
[]
no_license
python019/matplotlib_simple
4359d35f174cd2946d96da4d086026661c3d1f9c
32e9a8e773f9423153d73811f69822f9567e6de4
refs/heads/main
2023-08-22T18:17:38.883274
2021-10-07T15:55:50
2021-10-07T15:55:50
380,471,961
29
0
null
null
null
null
UTF-8
Python
false
false
2,952
py
""" The :mod:`sklearn.linear_model` module implements a variety of linear models. """ # See http://scikit-learn.sourceforge.net/modules/sgd.html and # http://scikit-learn.sourceforge.net/modules/linear_model.html for # complete documentation. from ._base import LinearRegression from ._bayes import BayesianRi...
[ "82611064+python019@users.noreply.github.com" ]
82611064+python019@users.noreply.github.com
ccbb02c3cf0ac4b9e9da7e4142bf9b2deecd73fd
c7a932e28a1a1dbc70c05c62caa43ce6cb691686
/fabric/service/monitor/promethues/prometheus.py
13d3ebd36fcfa08a10fc933ae20e580484cc043f
[]
no_license
Martians/deploy
9c2c9a9b0e4431e965960aada0f40df6a34b2e09
6fd3f892edd7a12aa69d92f357cc52932df86d9c
refs/heads/master
2022-01-09T03:29:13.948962
2019-04-29T05:15:40
2019-04-29T05:15:40
112,311,997
0
0
null
null
null
null
UTF-8
Python
false
false
4,554
py
# coding=utf-8 from invoke import task from common import * import system class LocalConfig(LocalBase): """ 默认配置 """ def __init__(self): LocalBase.__init__(self, 'prometheus') self.source = 'https://github.com/prometheus/prometheus/releases/download/v2.6.0/prometheus-2.6.0.l...
[ "liudong@daowoo.com" ]
liudong@daowoo.com
797987fe548a6f7c7c46884932412b3e90e8bc1a
119437adb7830659307c18b79a9cc3f6bfc6fe40
/onnx_model_serving/onnx_model_predict.py
95a0f36ce1f8192ebe4a598455dc1cc4eb833cee
[]
no_license
percent4/PyTorch_Learning
478bec35422cdc66bf41b4258e29fbcb6d24f60c
24184d49032c9c9a68142aff89dabe33adc17b52
refs/heads/master
2023-03-31T03:01:19.372830
2023-03-17T17:02:39
2023-03-17T17:02:39
171,400,828
16
7
null
2023-09-02T08:53:26
2019-02-19T03:47:41
Jupyter Notebook
UTF-8
Python
false
false
730
py
# -*- coding: utf-8 -*- # @Time : 2021/2/3 20:09 # @Author : Jclian91 # @File : onnx_model_predict.py # @Place : Yangpu, Shanghai import onnxruntime import torch import numpy as np def to_numpy(tensor): return tensor.detach().cpu().numpy() if tensor.requires_grad else tensor.cpu().numpy() ort_session = onnxrunt...
[ "1137061634@qq.com" ]
1137061634@qq.com
a3ad6fec8b7b991839d4265cfb3f8f96df862df6
7b270cf5f9d0a3e26b5afd758563c6cff73a5248
/comportamentais/iterator/canal/canal/canais/__init__.py
89401268f00e0cba0c575756511cf3b8a786a561
[]
no_license
reginaldosantarosa/DesignPatterns
10810672d3831e562ec636a5f66bd709c797ca34
bec4247f52b8d2e1fe41c570408816a5d4b22608
refs/heads/master
2020-04-04T06:54:19.757054
2018-01-04T03:06:05
2018-01-04T03:06:05
155,761,201
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
from canal.canais.filmes import Filme from canal.canais.esportes import Esporte
[ "victorhad@gmail.com" ]
victorhad@gmail.com
c0bc193c0ca45d24c0490317457e0038ba7a2b66
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/0701-0800/0701-Insert into a Binary Search Tree/0701-Insert into a Binary Search Tree.py
fe9dea06abb24db8df133f5a1db2ab1c7bbf15c4
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
617
py
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode: inode = TreeNode(val) if root is None: return inode ...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
c0a4b1ecee5eb7705fb4d6c81545e651d56f3071
d36c4c882089b9b81e6e3b6323eeb9c43f5160a9
/7KYU/Square Area Inside Circle/solution.py
dead9b201402be6e5751806d9e7f0d05e24b1f5d
[]
no_license
stuartstein777/CodeWars
a6fdc2fa6c4fcf209986e939698d8075345dd16f
d8b449a16c04a9b883c4b5e272cc90a4e6d8a2e6
refs/heads/master
2023-08-27T20:32:49.018950
2023-08-24T23:23:29
2023-08-24T23:23:29
233,281,814
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
import math def square_area_to_circle(size): radius = math.sqrt(size) / 2 return round((math.pi * (radius * radius)), 8)
[ "qmstuart@gmail.com" ]
qmstuart@gmail.com
ef14e05b00b14f120326d7133682265e3176e41e
93a613f09d564a1d45ecc01b54b73745ce2850b7
/majora2/migrations/0023_biosampleartifact_secondary_accession.py
0d98165508518f2dfdfd9b53251418ed78c4a31c
[]
no_license
pythseq/majora
fa17c77fa8a916c688fd2b40744d768dd851b99b
40b918d32b4061cddee5f7279f97e70eb894623d
refs/heads/master
2022-12-23T20:09:41.233844
2020-09-28T18:18:42
2020-09-28T18:18:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.2.10 on 2020-03-22 16:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('majora2', '0022_auto_20200322_1616'), ] operations = [ migrations.AddField( model_name='biosampleartifact', name='s...
[ "samstudio8@gmail.com" ]
samstudio8@gmail.com