blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
7ae75cce75c931b0226194e4d3dd39a169bde7b1
a281d09ed91914b134028c3a9f11f0beb69a9089
/contrib/great_expectations_semantic_types_expectations/great_expectations_semantic_types_expectations/expectations/expect_column_values_to_be_valid_leap_year.py
13c41ee859ae3f6a7b406d74c458c90b7b62a461
[ "Apache-2.0" ]
permissive
CarstenFrommhold/great_expectations
4e67bbf43d21bc414f56d576704259a4eca283a5
23d61c5ed26689d6ff9cec647cc35712ad744559
refs/heads/develop
2023-01-08T10:01:12.074165
2022-11-29T18:50:18
2022-11-29T18:50:18
311,708,429
0
0
Apache-2.0
2020-11-10T15:52:05
2020-11-10T15:52:04
null
UTF-8
Python
false
false
5,288
py
import calendar from typing import Optional from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.execution_engine import PandasExecutionEngine from great_expectations.expectations.expectation import ColumnMapExpectation from great_expectations.expectation...
[ "noreply@github.com" ]
CarstenFrommhold.noreply@github.com
7d0852eaf7b3d195f02e615a6ffdf6fccd9bb289
7ac83b2e55ef99418818ded006957d93453d7827
/common/urls.py
30ec02802d62ac0d41409c80934bd295f8caa1b7
[]
no_license
nileshnagarwal/NimbusApp
83a27b7f13adaca3110c6d6ffd007801b194f7a3
b76b9b0f3f3b70928c38856a24f963654f2139dc
refs/heads/master
2022-12-21T23:20:21.360526
2022-12-20T07:57:20
2022-12-20T07:57:20
98,737,208
0
0
null
2022-12-08T05:10:28
2017-07-29T14:20:56
Python
UTF-8
Python
false
false
271
py
""" URL for the Common Module. """ from django.conf.urls import url from .views import UserList, UserDetail from . import views urlpatterns = [ url(r'^common/user/$', views.UserList.as_view()), url(r'^common/user/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()), ]
[ "eternalshenron@gmail.com" ]
eternalshenron@gmail.com
6e472c6be3b61f3de89250729c63a813337d1345
a4dfbafdb2d1cc39534a481747fe9746ebb4ef7a
/tools/nbase_mtop_mp_train.py
7aa9c2d49e895e7dbb4839b4103457781f0c9b2b
[]
no_license
huangchuanhong/dist_face_pytorch
3f41045f662de0f9826bc5041bdd2b9abbcb9558
dc662b713564b2c3f5a61d4ad0e8a78e4aa54a84
refs/heads/master
2022-12-31T23:01:26.997504
2020-10-26T08:29:39
2020-10-26T08:29:39
264,177,084
0
0
null
null
null
null
UTF-8
Python
false
false
2,104
py
# Note: Can't not work properly. Don't use this import argparse import sys import torch import torch.distributed as dist sys.path.insert(0, '.') from src.config import Config from src.models import build_model from src.dataset import get_dataloader from src.apis import init_process, train_nbase_mtop_model from src.runn...
[ "huangchuanhong@xgrobotics.com" ]
huangchuanhong@xgrobotics.com
41a8b6238c9a6dad4a3c14b6f68425481bb13402
3a4549470cb0e6e55c98522ba08ce629d60960ea
/froide/foirequest/migrations/0006_auto_20171106_1503.py
d2aa53d83921bfee471eeac7dc52db4116013e6f
[ "MIT" ]
permissive
lanmarc77/froide
4e28d3e33017b3e776a7eb13d63c7b71bdb3bc68
bddc8bb27c8a7c2a959003dda724194948bc381a
refs/heads/main
2023-03-17T03:02:01.277465
2021-03-06T16:37:26
2021-03-06T16:37:26
345,137,125
0
0
MIT
2021-03-06T16:13:09
2021-03-06T16:13:09
null
UTF-8
Python
false
false
3,279
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-06 14:03 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
2b3ff4cb1f5f6c6fc02a5623a3d27fcdb0ced26e
099b57613250ae0a0c3c75cc2a9b8095a5aac312
/leetcode/linked list/2.求两个单链表之和.py
a981228cfe99ba87c7279626845f21f5df0a9c10
[]
no_license
MitsurugiMeiya/Leetcoding
36e41c8d649b777e5c057a5241007d04ad8f61cd
87a6912ab4e21ab9be4dd6e90c2a6f8da9c68663
refs/heads/master
2022-06-17T19:48:41.692320
2020-05-13T16:45:54
2020-05-13T16:45:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
""" Example: Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Output: 7 -> 0 -> 8 Explanation: 342 + 465 = 807. """ class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2:...
[ "yifu3@ualberta.ca" ]
yifu3@ualberta.ca
bb749cb48931e4d9c568f089156894c67d8f3bb1
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/executale_binaries/register-variants/vmovshdup_xmm_xmm.gen.vex.py
fa2ee6bfcd848eef8bfc9b87515d9c1912721347
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import angr proj = angr.Project('vmovshdup_xmm_xmm.exe') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
50ed1a9df9f34e83cb553775d3b3389d48cd6bd6
8d042bdce5db34177e5b66c29b4c9b075ce8ea14
/libraries/stable-baselines3/tests/test_sde.py
74853a0f9902457ecc073158ae44431ad06c07c8
[ "MIT" ]
permissive
sen-pai/Not-GAIL
5a342ce58b71595ddc2f71f13f21a690d6353b9b
abe23cf28c62d875774469e431858977631b5550
refs/heads/main
2023-06-18T11:07:03.185669
2021-06-07T21:58:36
2021-06-07T21:58:36
344,687,916
0
1
MIT
2021-06-07T21:58:37
2021-03-05T03:54:27
Python
UTF-8
Python
false
false
2,856
py
import pytest import torch as th from torch.distributions import Normal from stable_baselines3 import A2C, PPO, SAC def test_state_dependent_exploration_grad(): """ Check that the gradient correspond to the expected one """ n_states = 2 state_dim = 3 action_dim = 10 sigma_hat = th.ones(st...
[ "sharan_spai@protonmail.com" ]
sharan_spai@protonmail.com
bfe3081a086601209ab00768a1cdcc3767509fa8
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_program_run_info25.py
0672e25b5ef8878492a6af440d45643a66126835
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from xcp2k.inputsection import InputSection from xcp2k.classes._each211 import _each211 class _program_run_info25(InputSection): def __init__(self): InputSection.__init__(self) self.Section_parameters = None self.Add_last = None self.Common_iteration_levels = None self.File...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
88255fb4b6e756f34455d1878fc0fcfdbb8ea183
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_hobnob.py
15455298f442d845d9e521d65a4b3a3e2ac17f98
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
#calss header class _HOBNOB(): def __init__(self,): self.name = "HOBNOB" self.definitions = [u'to spend time being friendly with someone who is important or famous: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 =...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6e12c20b46f87afd9cc2177eeca5ceebcdbc1797
ec542b263f1dd798c9ca2071d39ed6e0264d3d84
/lovely_lucky_lambs.py
0dafe1cc4fd6f8c7515f8b012c0d11d9ca8de762
[]
no_license
Vutsuak16/foobar
7824eba03981de9d42bfa2841ce6ccfe50b9e55c
9a611963e364dac5feabd9362152965c3a50acfb
refs/heads/master
2021-05-13T18:42:50.654856
2018-01-11T18:42:14
2018-01-11T18:42:14
116,874,448
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
def answer(total_lambs): # your code here if total_lambs>2: most_generous=[1,2] least_generous=[1,1] else: return 0 flg1=0 flg2=0 while 1>0: if sum(most_generous)+2*most_generous[-1]<=total_lambs and most_generous[-2]+most_generous[-1]<=most_generous[-1]*2: ...
[ "vutsuak96@gmail.com" ]
vutsuak96@gmail.com
471d9ac3322fb6e6854ac04676f8083aa0144720
f7863c02970118d251846b896ddca4a7dff1066f
/hwt/hdl/frameTmplUtils.py
c15c724da1d3b7cb05ae34cb77efe97fdc46eb44
[ "MIT" ]
permissive
Nic30/hwt
6fea29e61422ed1c91ad924971b8f8e805d41b88
0c8e617fa7f56b261607c0acd9c977928e94276d
refs/heads/master
2023-09-04T06:44:31.103089
2023-08-23T13:05:21
2023-08-23T13:05:21
35,898,469
166
23
MIT
2020-07-30T15:16:54
2015-05-19T17:45:47
Python
UTF-8
Python
false
false
8,128
py
from typing import Tuple from hwt.doc_markers import internal from hwt.hdl.transPart import TransPart from hwt.hdl.transTmpl import OneOfTransaction @internal def iterSort(iterators, cmpFn): """ Sort items from iterators(generators) by alwas selecting item with lowest value (min first) :return: gene...
[ "nic30@seznam.cz" ]
nic30@seznam.cz
3e25944759969cf49a60f0784bc0a623697dabbe
9c3765dba0b249eb0a8da92076d2ae01291fc0e7
/no_cigar/cypy145.pyx
dddca75e74e2fc12e6291213820efb7eac7f995d
[]
no_license
saetar/pyEuler
3a021f95a1856775bef87b38c753049b04282b80
f0af7092e16c2109028b4b1aa5bed7a0057d3fe9
refs/heads/master
2020-03-21T12:05:15.430454
2018-06-15T03:50:50
2018-06-15T03:50:50
138,535,115
0
0
null
2018-06-25T02:40:43
2018-06-25T02:40:42
null
UTF-8
Python
false
false
1,601
pyx
#!/usr/bin/env python # -*- coding: utf-8 -*- # Jesse Rubin """ How many reversible numbers are there below one-billion? Problem 145 Some positive integers n have the property that the sum [ n + reverse(n) ] consists entirely of odd (decimal) digits. For instance, 36 + 63 = 99 and 409 + 904 = 1313. We will call such nu...
[ "jessekrubin@gmail.com" ]
jessekrubin@gmail.com
e345d0af089ded34da4cda080ebc8d5e29f4bf83
0c66e605e6e4129b09ea14dbb6aa353d18aaa027
/diventi/accounts/migrations/0040_auto_20190418_0813.py
93e16b536d8f7b5e775479cd3084dd2a03cf80d5
[ "Apache-2.0" ]
permissive
flavoi/diventi
58fbc8c947f387cbcc1ce607878a59a6f2b72313
c0b1efe2baa3ff816d6ee9a8e86623f297973ded
refs/heads/master
2023-07-20T09:32:35.897661
2023-07-11T19:44:26
2023-07-11T19:44:26
102,959,477
2
1
Apache-2.0
2023-02-08T01:03:17
2017-09-09T14:10:51
Python
UTF-8
Python
false
false
452
py
# Generated by Django 2.1.7 on 2019-04-18 06:13 import diventi.accounts.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0039_auto_20190415_0852'), ] operations = [ migrations.AlterModelManagers( name='diventiuser'...
[ "flavius476@gmail.com" ]
flavius476@gmail.com
70de4d3add69370602acfec8eae8065de82e3bef
7b991c5d0cea275a0d28ce80e8c207e78e4815a1
/code/downsampler.py
6adfd9f3bae056f4d7724cd62c5bed1db6f4235c
[]
no_license
PCJohn/dip-mem
4b4ee1a0e851e463dc742498fd60bec68a342575
52bb96d174193391f6daad59eec769671bd7c62c
refs/heads/master
2020-04-30T17:26:01.952517
2019-05-22T14:36:45
2019-05-22T14:36:45
176,979,655
0
0
null
null
null
null
UTF-8
Python
false
false
5,380
py
import numpy as np import torch import torch.nn as nn class Downsampler(nn.Module): ''' http://www.realitypixels.com/turk/computergraphics/ResamplingFilters.pdf ''' def __init__(self, n_planes, factor, kernel_type, phase=0, kernel_width=None, support=None, sigma=None, preserve_size=False): ...
[ "prithvichakra@gmail.com" ]
prithvichakra@gmail.com
9679ac0b13722f50fba6f5384c68b6e188c222fb
5b33b5a4a51a494e597886c6069fa833956ad628
/tutorial-5/ui/Ui_windows.py
838a3d18d6d4ff2e4e840d2cc84350ebd5461098
[]
no_license
YiddishKop/pyqt-tutorial-by-mitu
e5c62f6bdb7a40cd33d53b9646d43ac22c547991
1748fbce137376e25c1b5f1ae571c436ce2cadd2
refs/heads/main
2023-06-12T18:51:03.007512
2021-07-09T09:14:08
2021-07-09T09:14:08
383,703,066
0
0
null
null
null
null
UTF-8
Python
false
false
3,102
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'f:\YidWorkLap\pyqt-tutorial-by-mitu\tutorial-5\ui\windows.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know wh...
[ "yiddishkop@163.com" ]
yiddishkop@163.com
fd9327cce8394b281b2b3a5e5c1c4de2941ec636
cd5bfd8d8ca33af69442e328701cec5255479630
/WDSR/predict.py
07213cfb33616192175c55254111d5fbc1eee967
[]
no_license
dbofseuofhust/mmsr
d0617b1dc84a1e24c616d143d54d172ac20393be
17178a5f5f1ad3342b45d25c12144d0fa295acd4
refs/heads/master
2020-07-16T19:56:07.729466
2019-09-02T13:38:38
2019-09-02T13:38:38
205,857,439
4
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from PIL import Image from keras import backend as K from keras.losses import mean_absolute_error, mean_squared_error from keras.models import load_model from keras.optimizers import Adam import random import os import s...
[ "846503548@qq.com" ]
846503548@qq.com
88495b3bb1fbc9049ef9f4bd3166a118223d51bf
6bfa06b50632895a104e825448f041c30b172035
/fairseq/criterions/wav2vec_criterion.py
ceb30458bfa6811e8ea8f3cd6808a5a6414ad06e
[ "MIT" ]
permissive
yugao-uoft/I-BERT
808ddf7724c6aa4cac27fed16304a523c4f57087
1b09c759d6aeb71312df9c6ef74fa268a87c934e
refs/heads/ibert
2023-04-20T20:41:43.631295
2021-05-08T21:32:04
2021-05-08T21:32:04
497,460,232
1
0
MIT
2022-05-29T01:02:07
2022-05-29T01:02:06
null
UTF-8
Python
false
false
6,420
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn.functional as F from fairseq import metrics, utils from fairseq.criterions import FairseqCriterion,...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
26204949a42ec4458cc59b8623e81ad0f3da1ef2
fb41312a7cab11890e966ddd5cd546370ec4474a
/email-validation/server.py
3d96aba22a87f26a4aa8ba36e31d36f0f30f9869
[]
no_license
cd-chicago-june-cohort/flask-with-sql-john
81a0a1d0483764444aa3c070c65294a89df7eddf
b605cb71fba3d23b0bea1d4daf6463ef83413e80
refs/heads/master
2020-06-24T14:27:25.124485
2017-07-13T13:40:08
2017-07-13T13:40:08
96,940,071
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
from flask import Flask, render_template, redirect, request, session, flash from mysqlconnection import MySQLConnector import re EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') app = Flask(__name__) mysql = MySQLConnector(app, "emails") app.secret_key = "50923845709" @app.route("/") def i...
[ "jpdoherty90@gmail.com" ]
jpdoherty90@gmail.com
d97f631889e90810f4d35deb81ecbf36574eef0d
83316dd8a01070711fe8c42cd38d245da9a4711e
/testmethodology/traffic/stakunittest/test_SetTrafficEndpointTagsCommand.py
4a86fd189c344281ff3b669e4552d445b149960e
[]
no_license
CmWork/STAKCommands
fa46d561d0a85ac49c14f1b1fc6c014d2e0955bc
8b3fb68912116f7973fa9b3677d4e3d43c92f194
refs/heads/master
2020-05-02T00:57:20.940300
2015-07-10T04:32:37
2015-07-10T04:32:37
38,860,960
0
0
null
null
null
null
UTF-8
Python
false
false
4,750
py
from StcIntPythonPL import * import os import sys sys.path.append(os.path.join(os.getcwd(), 'STAKCommands')) from spirent.core.utils.scriptable import AutoCommand PKG = 'spirent.methodology.traffic' def test_set_traffic_endpoint_tags_command(stc): proj = CStcSystem.Instance().GetObject('Project') ctor = CSc...
[ "c@m.com" ]
c@m.com
3b4f4e58f3e806c97f635a7341bf2d3891775ae1
8600ea155f279e5a8dfe5a1926038511f6b6a7ea
/account_voucher/__terp__.py
b23c289a8f109ad5b41dee2ee45ce272a4777b36
[]
no_license
MarkNorgate/addons-EAD
c2fff89ab16fce3ba19fbe433ee5863705a6f4e5
840f28642b5d328e4b86839c413e5164622295a5
refs/heads/master
2020-04-23T22:11:00.164438
2015-07-22T12:24:53
2015-07-22T12:24:53
39,501,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
[ "mark.norgate@affinity-digital.com" ]
mark.norgate@affinity-digital.com
9c4d59e51a5060d5065837c867342c6b19d42294
6aadd60bb8f004937dc7b0066db03fcd2c4c6888
/script/raspicam_barcode_recognition_simplified.py
0a9f411022df75671ed98f04eb8aabed61a67bee
[]
no_license
KhairulIzwan/self_collect_machine
e4da345954084c0635c8ec2fc12959700b853ac6
59b9d54c48b87ed223089cbf3a04b82ca0407f27
refs/heads/master
2021-06-10T20:10:23.674407
2020-06-30T02:31:19
2020-06-30T02:31:19
254,345,873
0
1
null
2020-06-03T02:11:46
2020-04-09T10:54:37
Python
UTF-8
Python
false
false
4,391
py
#!/usr/bin/env python ################################################################################ ## {Description}: Code (Bar/QR) Recognition using Raspberry Pi Camera (raspicam) ################################################################################ ## Author: Khairul Izwan Bin Kamsani ## Version: {1}.{...
[ "wansnap@gmail.com" ]
wansnap@gmail.com
6d8a1cce00c48c4921181576d02ebcaf3ffd90ce
5930f323d96e7ed45c01fef63b100e1ad220f764
/tests/_tests_scripts/dl_z_docs_distributed_1.py
0eb6a68da885322ba39cde480e69ff14ef5e5314
[ "Apache-2.0" ]
permissive
saswat0/catalyst
8cb91c2392bccdbdd318544e6861e6fe6ac39b33
a35297ecab8d1a6c2f00b6435ea1d6d37ec9f441
refs/heads/master
2023-04-05T00:43:29.124864
2020-06-18T05:41:33
2020-06-18T05:41:33
272,268,902
2
0
Apache-2.0
2020-06-18T05:41:34
2020-06-14T19:24:04
null
UTF-8
Python
false
false
1,136
py
# alias for https://catalyst-team.github.io/catalyst/info/distributed.html#stage-1-i-just-want-distributed # noqa: E501 W505 # flake8: noqa # isort:skip_file import os import sys if os.getenv("USE_APEX", "0") != "0" or os.getenv("USE_DDP", "0") != "1": sys.exit() import torch from torch.utils.data import DataLo...
[ "noreply@github.com" ]
saswat0.noreply@github.com
e86dee995d73854e107741ab3de62f4c8dc6535d
afedb9a940f309ead33f1fb568083238cd4927d7
/nemo_text_processing/text_normalization/verbalizers/telephone.py
3920819adba4630df57ca9f90d21c97e26534c12
[ "Apache-2.0" ]
permissive
sergiogcharles/NeMo
1ce7b4972d708c5fd875bdf629d783296fdb1847
fcba7eb98f86ca862f4d03141738ecb1b62db046
refs/heads/main
2023-07-16T03:06:06.478682
2021-09-03T04:25:50
2021-09-03T04:25:50
382,719,035
1
0
Apache-2.0
2021-07-03T22:22:53
2021-07-03T22:22:53
null
UTF-8
Python
false
false
2,516
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
[ "noreply@github.com" ]
sergiogcharles.noreply@github.com
8db09319299c67ae1b5317d982bedb9532507bd7
0dd70b77acfc351f84b44b9049934cd0766f6e75
/CFS_django/wsgi.py
71f8f57577e1f7f8134b7a1c151e864d833a509a
[]
no_license
hunterhpm/CFS_django
5e95c29eb7f004af1e14f5fda56345e52058cdf9
6183d4e3b411a90483175c416da3f4d84af125c1
refs/heads/master
2023-02-01T17:33:56.714423
2020-12-17T14:53:42
2020-12-17T14:53:42
322,325,095
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for CFS_django project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "xayal.m92@gmail.com" ]
xayal.m92@gmail.com
3ac6fe9285c63f5da3ffe0d1bd1bc00e915bc58a
50396037c75a66ed93db819a87dc4f4588e09a85
/userprofile/migrations/0004_auto__del_field_about_food_preferance__add_field_about_food_preference.py
b888b4eb042f43579fc830d21be81b75920d9790
[ "BSD-3-Clause" ]
permissive
rif/conference-registration
61541f5c5c0343136e9055b0b58bbbee4237638c
2e83e98d68eff5c8ab6ae3a79db910e2e81c58ae
refs/heads/master
2020-07-11T22:14:03.530711
2011-08-20T08:30:21
2011-08-20T08:30:21
204,654,825
0
0
null
null
null
null
UTF-8
Python
false
false
7,318
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'About.food_preferance' db.delete_column('userprofile_about', 'food_preferance') ...
[ "radu@fericean.ro" ]
radu@fericean.ro
8a945e78f099f7762500d19cdae8eea83bdc39a5
28e16491dbddefeef482f515bb84f8cbf619929a
/scripts/cleanup_datasets/populate_uuid.py
495d97a622c8fc1886c5a5d9734f4d508529aa46
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hidelab/galaxy-central-hpc
a9e469829cdcfa4adf8fcbcc178534d5e2dccf0b
75539db90abe90377db95718f83cafa7cfa43301
refs/heads/master
2021-01-23T10:20:57.837042
2017-09-06T14:15:46
2017-09-06T14:15:46
102,609,249
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
#!/usr/bin/env python """ Populates blank uuid fields in datasets with randomly generated values Going forward, these ids will be generated for all new datasets. This script fixes datasets that were generated before the change. """ import sys, os, ConfigParser import galaxy.app from galaxy.util.bunch import Bunch im...
[ "sokratiskariotis@gmail.com" ]
sokratiskariotis@gmail.com
af211811bb73b1bd38a7d4bbc0f87d8923c55867
84c36e9067476a730d88f5ec799deabd5a46a44d
/Main/Timer.py
d99db57758d3eb32fb500370348e9068666a17a0
[]
no_license
AGou-ops/myPyQT5-StudyNote
8bbce76b778a55c31773313d137682c77d246aad
7e5eb426b6f30c301d040f6bc08f8a3c41d4a232
refs/heads/master
2022-11-06T00:05:25.603798
2020-06-20T01:59:45
2020-06-20T01:59:45
261,099,203
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
''' 动态显示当前时间 QTimer QThread 多线程:用于同时完成多个任务 ''' from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QListWidget, QGridLayout, QLabel from PyQt5.QtCore import QTimer, QDateTime import sys class ShowTime(QWidget): def __init__(self, parent=None): super(ShowTime, self).__init__(parent) ...
[ "suofeiyaxx@gmail.com" ]
suofeiyaxx@gmail.com
f32c1a713d8e431c07ad09be6f5430c91082155e
de33d07019f4be4439de4f07585a0906215ef562
/547. 朋友圈.py
8ba32a1ad4b3a328e610f36575d32d2473e12add
[]
no_license
Qinpeng96/leetcode
defbf7873fc07ed42fd34bb0c3e3282ff41ed266
e1dfd95c5bf09ffcd42934c1aca21a10337c3e7e
refs/heads/master
2021-07-13T10:53:32.109431
2020-08-19T09:33:36
2020-08-19T09:33:36
196,947,703
0
0
null
null
null
null
UTF-8
Python
false
false
6,511
py
""" [547. 朋友圈](https://leetcode-cn.com/problems/friend-circles/) 班上有 N 名学生。其中有些人是朋友,有些则不是。他们的友谊具有是传递性。如果已知 A 是 B 的朋友,B 是 C 的朋友,那么我们可以认为 A 也是 C 的朋友。所谓的朋友圈,是指所有朋友的集合。 给定一个 N * N 的矩阵 M,表示班级中学生之间的朋友关系。如果M[i][j] = 1,表示已知第 i 个和 j 个学生互为朋友关系,否则为不知道。你必须输出所有学生中的已知的朋友圈总数。 示例 1: 输入: [[1,1,0], [1,1,0], [0,0,1]] 输出: 2 说明:已知学生...
[ "Qinpeng96@users.noreply.github.com" ]
Qinpeng96@users.noreply.github.com
9c01625fc23cb1c1ca6048c4ac76e3a44acd8e6e
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/redshift_write_f/snapshot-acces_authorize.py
a35bbf7af7ea8e92b2b27904e17e6aa9050f58fa
[]
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
530
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 write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
74d2d45aecb376cb9174ade5ebdd3b37d4e6b6aa
536538af28cfe40e10ff1ce469cd0f81e8b3a8fe
/russian_doll_envelopes.py
8dcd89273ddec3047d5a5041798d88e63b961299
[]
no_license
ShunKaiZhang/LeetCode
7e10bb4927ba8581a3a7dec39171eb821c258c34
ede2a2e19f27ef4adf6e57d6692216b8990cf62b
refs/heads/master
2021-09-01T07:41:03.255469
2017-12-25T19:22:18
2017-12-25T19:22:18
104,136,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# python3 # You have a number of envelopes with widths and heights given as a pair of integers (w, h). # One envelope can fit into another if and only if # both the width and height of one envelope is greater than the width and height of the other envelope. # What is the maximum number of envelopes can you Russia...
[ "noreply@github.com" ]
ShunKaiZhang.noreply@github.com
e8a238f031f9cb47778cdc8ab9a810047d27e29c
d7c2cb54abfa228072d00b0cb1a8af32b1f4ad11
/dassl/engine/ssl/mixmatch.py
ed102362f81a587105d99e3867e099f7433923f1
[ "MIT" ]
permissive
zhiheLu/Dassl.pytorch
242666e8150750cc2aa64cb611cc2b49e250e731
ea92e19cd31908fdc3c19f78a03da436bacc5298
refs/heads/master
2022-11-30T23:06:53.853825
2020-08-06T07:36:26
2020-08-06T07:36:26
285,502,715
1
0
MIT
2020-08-06T07:23:36
2020-08-06T07:23:36
null
UTF-8
Python
false
false
3,117
py
import torch from torch.nn import functional as F from dassl.engine import TRAINER_REGISTRY, TrainerXU from dassl.modeling.ops import mixup from dassl.modeling.ops.utils import ( sharpen_prob, create_onehot, linear_rampup, shuffle_index ) @TRAINER_REGISTRY.register() class MixMatch(TrainerXU): """MixMatch: A...
[ "k.zhou@surrey.ac.uk" ]
k.zhou@surrey.ac.uk
d992c4edd38cd126433ec90770a369fc1d2bfdb0
a7cf2d5a062ccb93285f034baa472703599336fb
/lec20class/B.py
9cd31cbe4b266e103d0ab257037ae3157ce9f56d
[]
no_license
webturing/PythonProgramming_20DS123
5538535e039a87e20752549bb0fa75d32b022cf9
d971277b0401e342adad637ebfac5f88f321abe6
refs/heads/master
2023-02-16T17:02:07.385325
2021-01-20T09:53:28
2021-01-20T09:53:28
297,176,647
1
1
null
null
null
null
UTF-8
Python
false
false
515
py
class Leader: def __init__(self, _name, _count=0): self.name = _name self.count = _count def __str__(self): return '%s:%d' % (self.name, self.count) leader = [Leader("Li"), Leader("Zhang"), Leader("Fun")] # Ctrl+Alt+L n = int(input().strip()) for i in range(n): name = input().stri...
[ "zj@webturing.com" ]
zj@webturing.com
81087ca5184cd13ce454df229a3feb6aff24f6a0
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Atspi/AccessiblePrivate.py
dee0ae4823747b384f520d4fb77a9ca9f102dcf2
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,293
py
# encoding: utf-8 # module gi.repository.Atspi # from /usr/lib64/girepository-1.0/Atspi-2.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes of the ...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
9d266a5315211bd0bd87b53d7f36295e0bf14e62
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/34/usersdata/112/13460/submittedfiles/moedas.py
7ff28fa0df7f3abc12e73ab647725c7a5f29c960
[]
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
286
py
# -*- coding: utf-8 -*- from __future__ import division a=input('Digite o valor de a:') b=input('Digite o valor de b:') c=input('Digite o valor de c:') j=c//a h=c//b resta=c%a restb=c%b if c%a==0: print('a=%.d'%j) if c%b==0: print('b=%.d'%h) print('S') else: print('N')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
a2cabb3404738cce59707706ae4a5328c62b79e6
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/577607_converting_numbers_their_alphabetical_/recipe-577607.py
c7810a7631a3269005bbbcba03cce14ffa33148c
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
2,694
py
# this is program to convert mathematical number to alphabetical numbers # this can easily change to any language (but not for example japanese, i think!) by modifying the list below def translate(d): lst1=['one ','two ','three ','for ','five ','six ','seven ','eight','nine','ten','eleven','twelve ','thirteen ','fo...
[ "betty@qburst.com" ]
betty@qburst.com
132aefa09e8199899139f33681d3af4d2e20b3d9
316a07bd7ab47d447606d341c5d221d8318f65b9
/horizon/horizon/dashboards/syspanel/users/forms.py
82cdeb4397001b6efa63e6e6c750ab3d3589d13c
[]
no_license
kumarcv/openstack-nf
791d16a4844df4666fb2b82a548add98f4832628
ad2d8c5d49f510292b1fe373c7c10e53be52ba23
refs/heads/master
2020-05-20T03:10:54.495411
2013-06-16T23:44:11
2013-06-16T23:44:11
7,497,218
2
0
null
null
null
null
UTF-8
Python
false
false
7,891
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may...
[ "b37839@freescale.com" ]
b37839@freescale.com
91eda401ea8a1568d981e1adb7f7aeb0fe3a8861
e23108e2c18ef90c17bb7830130717601246fb68
/app1/views.py
c47cf1d66d4005da071dfab74d110c2c841289fe
[]
no_license
SDBranka/DojoSurvey
28ac68cbda3151d7e405aed241dda5144a4c11ec
e737b38422123c1b52805fdbcf1b47215793ab0e
refs/heads/main
2023-04-28T23:27:44.129598
2021-05-17T23:30:46
2021-05-17T23:30:46
368,113,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
from django.shortcuts import render, redirect, HttpResponse # Create your views here. def index(request): return render(request, 'index.html') def result(request): if request.method == 'POST': context = { "name": request.POST['name'], "location": request.POST['location'], ...
[ "sdbranka@me.com" ]
sdbranka@me.com
73d604e2aeef7966e0b90e234d483720fb98c3ad
f353f19174ea2fd8569c8f46bb2d99142fff919c
/List/Exercise-36.py
cbc7a66feea3df88564b6d7ac7c1593db58417d2
[]
no_license
self-study-squad/Python-examples
a283d9efe47d71d2e134e8fc2e919dccffe5108a
07de281fbcc9fb7f421b89a74ff24bafc78a5d4b
refs/heads/master
2022-12-28T01:35:03.927338
2020-10-09T06:41:16
2020-10-09T06:41:16
298,136,591
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
# Write a Python program to get variable unique identification number or string. x = 100 print(format(id(x),'x')) s = 'w3resource' print(format(id(s),'x'))
[ "longpham6595@gmail.com" ]
longpham6595@gmail.com
208c514c94c8db9d817fac1575c609a0e894f8c2
98beeffab0570eb7e4bd2785fc195658e18aa6dd
/SRC/engine/invariant.spy
a0dacd3914d1cb0aad45767e1d5abd0b6ce088d2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
shkeshavarz/OOF2
27f59bb04775b76ad250ecfd76118b3760647bba
0f69f535d040875354cd34e8bbedeae142ff09a3
refs/heads/master
2021-01-15T15:32:10.713469
2016-01-13T14:44:20
2016-01-13T14:44:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,933
spy
# -*- python -*- # $RCSfile: invariant.spy,v $ # $Revision: 1.11 $ # $Author: langer $ # $Date: 2011/04/29 20:22:42 $ # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities ass...
[ "lnz5@rosie.nist.gov" ]
lnz5@rosie.nist.gov
678168765a373d5511dbed8905dd9fea9c82e408
50a6f90c46ee83e667de08be9c74acbaa792dbc5
/filefi/014/debug.py
a26160b8b44257d795055306964954adc940cebd
[ "MIT" ]
permissive
cpausmit/Kraken
e8f51a46e5d181e855bb9d2276b66c67e5842888
e79a19f6a4570e10ae52e543a5af9b2a3414c965
refs/heads/master
2023-08-16T21:36:54.426014
2023-08-15T14:11:08
2023-08-15T14:11:08
75,231,636
0
2
MIT
2018-02-08T14:25:53
2016-11-30T22:09:47
Python
UTF-8
Python
false
false
1,936
py
# $Id: debug.py,v 1.3 2010/10/23 12:43:55 ceballos Exp $ import FWCore.ParameterSet.Config as cms process = cms.Process('FILLER') # import of standard configurations process.load('Configuration/StandardSequences/Services_cff') process.load('FWCore/MessageService/MessageLogger_cfi') process.load('Configuration/Standa...
[ "paus@mit.edu" ]
paus@mit.edu
10c29759258e337248e96025923cdab9b9cc53ea
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03472/s382365761.py
3755951cf1cfaba3d1496204dd827af074ddb4a5
[]
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
413
py
N,H = map(int,input().split()) AB = [list(map(int,input().split())) for _ in range(N)] a_sort = sorted(AB,key=lambda x: x[0],reverse=True) a_max = a_sort[0][0] tmp = [] for a,b in AB: if b > a_max: tmp.append(b) tmp.sort(reverse=True) cnt = 0 for i in tmp: H -= i cnt += 1 if H <= 0: p...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
21db9a0f68c02292038f23030497e719a8974e4c
d589c25d6b8338f1060cee01e657ebe13a3e0a41
/prog.py
8ec8e56c0f31ca85ee16c9a0739e9027fcb8781d
[]
no_license
AnatolyDomrachev/maksim
45dd6ca341432bc4f877842fd516670a35d498ef
2c87657f500aa19a390e9d63718d02a61898d586
refs/heads/master
2023-01-31T15:12:21.021831
2020-12-18T17:33:40
2020-12-18T17:33:40
300,565,877
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
import requests import time import json import sys import imp imp.reload(sys) url='http://35.189.233.152' for i in range(100): r = requests.get(url) print(i,r)
[ "you@example.com" ]
you@example.com
c422557510e2b0ed73b371376c36296aa751028f
96e6f4cacf6030b1f9310d26be9fb2d31c30aeaa
/gov_track_hk_web/legco/migrations/0022_auto_20160807_1311.py
fe55fac6a5f2b2832d1abce3ccabb0c3ce07ef6a
[]
no_license
g0vhk-io/g0vhk_legco_web
f9ae6355667d9c39aad7f66ad3fb0d1b12663d11
94304ffae4c9a84453517b4c4983c90ac16414f5
refs/heads/master
2023-01-09T07:19:56.108040
2018-09-20T22:43:52
2018-09-20T22:43:52
92,956,060
12
9
null
2022-12-29T10:25:15
2017-05-31T14:42:22
Python
UTF-8
Python
false
false
795
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-07 13:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('legco', '0021_auto_20160802_0918'), ] operations = ...
[ "howa.wong@gmail.com" ]
howa.wong@gmail.com
aceb7978213e6e1adc30b8789019cc2b555ae83e
fabf716f8e17cce18c114959479c574ee8ba6518
/demo/Kuramato_Sivashinsky.py
0a6dca22a08e672dd7286a74a63b7c5a78459063
[ "BSD-2-Clause" ]
permissive
volpatto/shenfun
ce4366126ee20b3149b0996477f23e0ffec0c7e8
5528b4eb992b471a2b54fc6cfd26183c3eda3792
refs/heads/master
2020-05-07T20:33:04.600852
2019-04-10T09:03:39
2019-04-10T09:03:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,706
py
r""" Solve Kuramato-Kuramato_Sivashinsky equation on [-30pi, 30pi]^2 with periodic bcs u_t = -div(grad(u)) - div(grad(div(grad(u)))) - |grad(u)|^2 (1) Initial condition is u(x, y) = exp(-0.01*(x^2 + y^2)) Use Fourier basis V and tensor product space VxV """ from sympy import symbols, exp, lambdify impor...
[ "mikaem@math.uio.no" ]
mikaem@math.uio.no
0053ee455ee17857b1797c4b793a80cbccbbc797
38e01d908569e2009966299028d7ec6680f8df2e
/mxonline/apps/courses/migrations/0008_course_teacher.py
372c8ad1e794dcea25f92c30979047f41bbaa64c
[]
no_license
Coder-Chandler/ARTPROJECT
fa1c6f6faf526231f5a86634b174eb81054ad1c1
0281b3bfb8368c502418dd599413cc4e3c5221f2
refs/heads/master
2021-10-11T00:47:34.942528
2019-01-20T09:31:00
2019-01-20T09:31:04
105,031,068
1
0
null
null
null
null
UTF-8
Python
false
false
637
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-08-11 15:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('organization', '0005_teacher_image'), ('courses', '000...
[ "ysiwgtus@gmail.com" ]
ysiwgtus@gmail.com
46520295d0778430e0543d732145b430dc9d54b3
ed230e3129ee72fb4777f7b62e7d997b1e72cb48
/coreapi/users/models.py
e4a7d68f6172b81af17235f60218a0e59d3e3b62
[]
no_license
dcopm999/modapi
d566653eb6e2ca7b02ddf616a9aecf178cfc5abf
2c9d2c601fdccee8996820cef680b9e9b094974a
refs/heads/master
2023-08-04T09:05:40.096143
2020-08-27T08:29:24
2020-08-27T08:29:24
289,923,439
0
0
null
2023-07-20T15:01:09
2020-08-24T12:36:46
Python
UTF-8
Python
false
false
567
py
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from sorl.thumbnail import ImageField class User(AbstractUser): # First Name and Last Name do not cover name patterns # around the globe. ...
[ "dcopm999@gmail.com" ]
dcopm999@gmail.com
4261afb9aa203568a8d1910fa0ef7e95c4656df0
49ee49ee34fa518b0df934081f5ea44a0faa3451
/crack-data-structures-and-algorithms/leetcode/reverse_words_in_a_string_II_q186.py
5ad0355f98c8a02e2c81fb1a3b138c62d04a56fa
[ "MIT" ]
permissive
kingsamchen/Eureka
a9458fcc7d955910bf2cefad3a1561cec3559702
e38774cab5cf757ed858547780a8582951f117b4
refs/heads/master
2023-09-01T11:32:35.575951
2023-08-27T15:21:42
2023-08-27T15:22:31
42,903,588
28
16
MIT
2023-09-09T07:33:29
2015-09-22T01:27:05
C++
UTF-8
Python
false
false
1,271
py
class Solution(object): def reverseWords(self, s): """ :type s: List[str] :rtype: None Do not return anything, modify s in-place instead. """ dst = 0 tok_begin = tok_end = 0 i = 0 while i < len(s): tok_begin = find_first_not_space(s, i) ...
[ "kingsamchen@gmail.com" ]
kingsamchen@gmail.com
5017d3d834a455533416c4002949615c763fb504
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/iam/_get_admin_users_by_role_id.py
b1f0ec813e25130b7c42f0a34b53524dc7dd6cd3
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,654
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Iam Service (6.2.0) # pylint: disable=duplicate-code # pylin...
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
a00519c79ec237c577450b8e21946f62ea6d9fa9
17edb3537087dffeabfd9694c71ddf878088713c
/django-master/django/contrib/flatpages/tests/urls.py
44975c168517a303a8d33e9c1cf6974a89d00fbf
[ "BSD-3-Clause" ]
permissive
BrianBGrant/DNDC
dbb9004c7cddbb34fb16ca94992fc76127c4b588
d0cdec5c5436f6fe1fd55d6bae093c21ccb27f6b
refs/heads/master
2020-04-15T19:43:33.351799
2014-10-02T16:48:44
2014-10-02T16:48:44
42,128,284
2
1
null
2015-09-08T17:34:42
2015-09-08T17:34:41
null
UTF-8
Python
false
false
231
py
from django.conf.urls import include, url # special urls for flatpage test cases urlpatterns = [ url(r'^flatpage_root', include('django.contrib.flatpages.urls')), url(r'^accounts/', include('django.contrib.auth.urls')), ]
[ "nrubin@appliedgeosolutions.com" ]
nrubin@appliedgeosolutions.com
1852907d5fcb65f51524392b9f19dea4f2b9ffa9
bf261a57b40e78f4141a5632343f8d1d3a3171cf
/espresso/tools/estimate_initial_state_prior_from_alignments.py
9f48da1efdf60fa6e0dcc8deb441ac150b651de9
[ "MIT" ]
permissive
aarora8/espresso
16cb22ef4e536316c28c6be771ce1e8ee2f0d3cb
4fdb0e881b5a9303cb068d36e9bfdb18261744b9
refs/heads/master
2023-02-24T04:10:11.041074
2020-12-20T07:25:11
2020-12-20T07:25:11
322,996,336
0
2
NOASSERTION
2021-01-20T14:06:48
2020-12-20T04:55:55
Python
UTF-8
Python
false
false
2,333
py
#!/usr/bin/env python3 # Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import logging import sys import numpy as np try: import kaldi_io except ImportError: raise ImportError("Please inst...
[ "freewym@gmail.com" ]
freewym@gmail.com
1852a8cbd586eca760c393bf8a70c3f3e3263c87
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/policy/policyevaluation_args.py
23fa86b7d12ba7f844f93400fcc608263a90140e
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
4f83a9586c1f3d9139c594263cf6824ff047d558
48f86b8671ce1a7ee79f3bb8c1af3de30235d0ba
/WGAN/main.py
1533ec2ef01f9132e525de18ebe49f00281c17f3
[ "MIT" ]
permissive
corenel/GAN-Zoo
c8014a59f7cc51db60aac74cb3d459fcae7cbe99
fd4498da35ace5a3d1696ff4fbec3568eddbe6a1
refs/heads/master
2021-01-15T19:23:11.892867
2017-08-23T06:24:44
2017-08-23T06:24:44
99,820,274
10
7
null
null
null
null
UTF-8
Python
false
false
5,459
py
#!/usr/bin/env python3 """Main code for WGAN.""" import os import torch import torch.nn as nn import torch.optim as optim import torchvision import params from data_loader import data_loader, get_data_iterator from models import get_models from utils import denormalize, init_random_seed, make_variable if __name__ =...
[ "xxdsox@gmail.com" ]
xxdsox@gmail.com
3fcbe11f166126c0187137ac0b28ae1ee78838ef
bd45e3070a4f2b577372b76aa2567d7cfe3df59b
/news/migrations/0002_auto_20210831_1706.py
ed063d1f0bbc619333d0a5d4708dec82554f1984
[ "MIT" ]
permissive
Koech-code/The-Moringa-Tribune
e875e1ab9fb5a06ed54e412292e76e838e3f4381
7dc2380ca28692a00a9b5330310cd7418d57fd7b
refs/heads/master
2023-07-19T08:42:29.149431
2021-09-09T10:56:19
2021-09-09T10:56:19
402,379,783
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# Generated by Django 3.2.6 on 2021-08-31 14:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0001_initial'), ] operations = [ migrations.CreateModel( name='tags', fields=[ ('id', models...
[ "nixon.koech@moringaschool.com" ]
nixon.koech@moringaschool.com
67a72888028890eefd005350674ca304c5237fa9
02bfa3b84a5c811c3fd4c293b14b0846bd6ab3b5
/Bloomberg/findSumFromArray.py
1af2ba4772eb9840df3097c7317054e42cd2b2d2
[]
no_license
Ronak912/Programming_Fun
9dde0842245b62748b479924921383de07b24d16
2a504d0ef230d09007b8a268c356055ced5ca6c0
refs/heads/master
2020-04-06T03:40:52.046819
2020-04-03T22:25:36
2020-04-03T22:25:36
42,281,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
# https://www.careercup.com/question?id=5684774451544064 # You are given an array of values, (not necessary integers or positives) and a value. You have to print all # the pairs whose sum is given value. Write a general method which can accept integers, float, doubles, long, or any other # thing where this make sense....
[ "ronak.928@gmail.com" ]
ronak.928@gmail.com
afd533eb06936420eee9c9506deae0b3304893f8
3784495ba55d26e22302a803861c4ba197fd82c7
/venv/lib/python3.6/site-packages/networkx/algorithms/communicability_alg.py
2cd2a4ae0149161f51d93bfa3c47c68289dd6a02
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
5,051
py
# -*- coding: utf-8 -*- """ Communicability. """ # Copyright (C) 2011 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Previously coded as communicability centrality # All rights reserved. # BSD license. import networkx as nx from networkx.ut...
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
33f00e634abcbe221d34944636a38e0c5540343e
9fbf6007183ad85ecffea514109a4d207f804c2e
/crm_campaign_blog/__openerp__.py
19e791d5964e039241d5897e327078eaa5c6f0ef
[]
no_license
qponline/odoo-marketing
e25be3d805a2bff42c6947030484123f36843eb3
8a9de63d6a8690d1911326f4c14a788810a86e44
refs/heads/master
2021-01-22T11:21:37.455476
2017-05-26T15:36:58
2017-05-26T15:36:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution, third party addon # Copyright (C) 2017- Vertel AB (<http://vertel.se>). # # This program is free software: you can redistribute it and/or modify # it under the terms of th...
[ "apollo_zhj@msn.com" ]
apollo_zhj@msn.com
0ace9d174f3f1231bb67a42d509e58e06a2c9ea7
a57805bcd26fedbdfb061125a902eb42537c1f3c
/utils/sphinx/prepare.py
eea16866fd06f570adf8eb43aafc098b48bd0244
[]
no_license
RandomStuffs22/docs-tools
4d35917aa0068d6623d8bd89f0d791e91e010180
8057323d2e400aca7b94cdf055ed8fa3a2a5101c
refs/heads/master
2021-01-14T14:06:45.074250
2014-02-28T22:52:48
2014-02-28T22:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,215
py
import os import itertools from fabfile.intersphinx import intersphinx_jobs from fabfile.make import runner from utils.jobs.dependency import dump_file_hashes from utils.jobs.errors import PoolResultsError from utils.output import build_platform_notification from utils.shell import command from utils.contentlib.manp...
[ "samk@10gen.com" ]
samk@10gen.com
d1fbc3b0ae15d6be4cfe6866a0205a4b1881537f
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5690574640250880_1/Python/rgs/c.py
398f44616c8806a3a0055e80660d70517af5daf8
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,293
py
#!/usr/bin/env python def solve(r, c, m): #print 'solve', r, c, m def rotate(board): return [map(lambda row: row[col], board) for col in range(len(board[0]))] if board else [] def solve_rec(r, c, m): #print "solve_rec", r, c, m if c == 1: b = min(m, r-1) return m - b, ([['.'] for _ in range(r-b)]) + (...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
c431de53285e3ad02c3cfc973b3e3c29f11f2239
20895d9d17214de5cf3fbf2b4880c94cc5d1fc48
/condor/go_save.py
94ce5bfe6d823bfb10b6289bcdea97abcb5af60e
[]
no_license
bpfrancis/milliQanSim
d058cafb7fcd082da1c3d4b5b68404b3dcccdff1
21435953c1a0f8de3c3b3604aa3b4696a27aa882
refs/heads/master
2021-10-14T09:12:43.891281
2019-02-03T19:56:07
2019-02-03T19:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,481
py
#!/usr/bin/env python import subprocess import os import shutil import sys jobNumber = int(sys.argv[1]) proc = str(sys.argv[2]) # Sample, mCP_UFO, JPsi, Y1S, Y2S, Y3S, cosmicmuons, am241 charges = [0.0010, 0.0015, 0.0022, 0.0034, 0.0051, 0.0076, 0.0114, 0.0171, 0.0256, 0.0384, 0.0575, 0.1000] #Full Study #charges = ...
[ "brian.patrick.francis@cern.ch" ]
brian.patrick.francis@cern.ch
d264e1ae75276575705ee75708225271ec3ffc9f
c8165c4bf663a7d6c4ef94659e75d418b16bcdeb
/day12/day12.py
aac2ef531eb1ce1f0747fefaec70a219919fc0a1
[]
no_license
sguberman/advent2017
97baea3618f690f946ee807506a0febaf972ef3c
d4df53da1a611eeb30c0f90ae2063b8283c55654
refs/heads/master
2021-09-01T22:16:12.043688
2017-12-28T21:34:12
2017-12-28T21:34:12
110,288,304
1
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
# -*- coding: utf-8 -*- """ Created on Tue Dec 12 09:32:06 2017 @author: Seth Guberman - sguberman@gmail.com """ def read_input(filename): graph = {} with open(filename) as f: for line in f: lhs, rhs = line.strip().split(' <-> ') graph[int(lhs)] = [int(x) for x in rhs.split(',...
[ "sguberman@gmail.com" ]
sguberman@gmail.com
468862d9306d339343dc4dbd53c730f3b35f8b44
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/classes/_rs_grid1.py
abafba78f0b68f557dba3970de962ad320d16242
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
from xcp2k.inputsection import InputSection class _rs_grid1(InputSection): def __init__(self): InputSection.__init__(self) self.Distribution_type = None self.Distribution_layout = None self.Max_distributed_level = None self.Lock_distribution = None self.Memory_facto...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e20f45817e69c90c6cd68f2548ef642a1e34a631
26f6313772161851b3b28b32a4f8d255499b3974
/Python/ArrayofDoubledPairs.py
8d96768739516bfa75a39210eac7aa8ce0162774
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
""" Given an array of integers A with even length, return true if and only if it is possible to reorder it such that A[2 * i + 1] = 2 * A[2 * i] for every 0 <= i < len(A) / 2. Example 1: Input: [3,1,3,6] Output: false Example 2: Input: [2,1,2,6] Output: false Example 3: Input: [4,-2,2,-4] Output: true Explanatio...
[ "here0009@163.com" ]
here0009@163.com
90a8a84bbea2ec839139f9ba1cca53de13cbdba9
234a9f5def0b6a9e8a95651fdc56d7735c47102f
/Python/OpenGL/Handling window reshape and the aspect ratio.py
e1ad29a7676ee80db52a68d224d243c5388d16f6
[]
no_license
wangrupin/True_Artificial_Intelligence
0116e18c2509cfba180866a0c5b200d448627326
c1bb5488a1ed9759f66f6d9bc5cc2ca5cabac4e7
refs/heads/master
2023-01-14T08:43:12.754324
2018-10-16T12:28:47
2018-10-16T12:28:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
# -*- coding: utf-8 -*- # @Time : 2018/1/25 20:30 # @Author : play4fun # @File : Handling window reshape and the aspect ratio.py # @Software: PyCharm """ Handling window reshape and the aspect ratio.py: """ from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * def initFun(): glClearCo...
[ "play4fun@foxmail.com" ]
play4fun@foxmail.com
d0a09d93a2d54bbb51edcc79ef9a526bd0eda6c1
dd449ad8388847779b265f49f2339c9681376c60
/torch/quick_101/torch101_numpy.py
36509de7f49c4c90ddf86cd8f70613e3cf553f8f
[]
no_license
whoji/training-ground
478d76a8c274050eb910b28729ca1d1cdb47eae9
b107cc47c4a04bb8868c410ab207bacab5a86e4c
refs/heads/master
2020-05-16T16:13:26.788156
2019-12-04T01:56:01
2019-12-04T01:56:01
183,154,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
# Data Generation np.random.seed(42) x = np.random.rand(100, 1) y = 1 + 2 * x + .1 * np.random.randn(100, 1) # Shuffles the indices idx = np.arange(100) np.random.shuffle(idx) # Uses first 80 random indices for train train_idx = idx[:80] # Uses the remaining indices for validation val_idx = idx[80:] # Generates trai...
[ "minli1985@gmail.com" ]
minli1985@gmail.com
5aabb652715c872855bae7e2673cabbee6b9c18c
40ee9c34367f4768f2e6758d0896d7f18745209b
/deploy/update-ecs.py
1e9a25d36b9eba5d87d4bae3976e1db6b796fcbc
[]
no_license
bridgecrew-perf4/django-ecs-terraform
4f8f78ac3269ef44563e3ec62e95d754112a31b8
804a2357ccc63032fa338907dc755bd592651fa2
refs/heads/main
2023-04-08T18:46:13.576100
2021-04-22T14:27:55
2021-04-22T14:27:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
import boto3 import click def get_current_task_definition(client, cluster, service): response = client.describe_services(cluster=cluster, services=[service]) current_task_arn = response["services"][0]["taskDefinition"] response = client.describe_task_definition(taskDefinition=current_task_arn) return...
[ "user@localhost.localdomain" ]
user@localhost.localdomain
3d4852311ea4258cf37b0d196d03cfafbd8b24a0
dcfcd43b4c00fe897866a1e1d530b0f50ed56116
/pacong/request_demo2.py
591e1cfe7e80bcdf41f7c852251ffe0ebc093666
[]
no_license
Jeremyljm/new
8a93f4422b26272fe4a2b68bf806c40879db2d51
8a34245c10923a09b9e1cb178ba7fb5368b01f53
refs/heads/master
2020-09-22T18:06:57.789590
2019-12-02T05:41:10
2019-12-02T05:41:10
225,294,099
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests # 发送post请求非常简单,直接调用‘request.post’方法就可以, # 如果返回的是json数据,那么可以调用'request.json()'来将json字符串转化成字典或者列表 data = { 'first': 'true', 'pn': '1', 'kd': 'python' } headers = { 'Referer':'https://www.lagou.com/jobs/list_python?city=%E5%85%A8%E5%9B%BD&c...
[ "178747324@qq.com" ]
178747324@qq.com
aa65a5c093b87981b65784baeb46b1d449815391
f5b49313358c3ec7f29e52170e92395fd4605302
/pyramid and steps/findSteps1.py
0b13e3ca2cc3808355f65559a00bcfbddf606e74
[]
no_license
Iam-El/Random-Problems-Solved
e98a25890cb839b5c88a603ec03998e050233a02
4a96a3406d431bf3277858d7424dfb048556b7cc
refs/heads/master
2022-10-04T14:52:40.943866
2020-06-06T03:26:19
2020-06-06T03:26:19
269,839,206
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
def findSteps(n): for i in range(0,n): stairs = ' ' for j in range(0,n): if j<=i: stairs=stairs+'#' else: stairs=stairs+' ' print(stairs) findSteps(5)
[ "elsyfernandes215@gmail.com" ]
elsyfernandes215@gmail.com
dca4c01063cb6d65d0963c6a60ad7dc28e40928d
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractKapsouratranslatesBlogspotCom.py
e9d7c8831131a155d070beb3ccc579351e2ff08f
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
574
py
def extractKapsouratranslatesBlogspotCom(item): ''' Parser for 'kapsouratranslates.blogspot.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'transla...
[ "something@fake-url.com" ]
something@fake-url.com
e6c34786fc6b3745275f23063d7b23bc75308341
652fcedab4be03e0bc1a7362d755f8b48c4d7245
/wheresyourtrash/apps/notifications/managers.py
e6edc2050b8b0d9381d5487df859735c15daafb0
[]
permissive
mainecivichackday/wheresyourtrash
2264ffe1249557acf8aec086709488c7938d9dca
eff6867c9e86a5baac3eb1e884c345954e44509d
refs/heads/master
2020-04-05T22:46:08.294406
2019-01-30T20:16:06
2019-01-30T20:16:06
60,999,283
1
2
BSD-3-Clause
2019-01-30T20:16:07
2016-06-13T01:47:54
JavaScript
UTF-8
Python
false
false
292
py
from django.db import models class TrashManager(models.Manager): """ Trash Manager for Trash model """ def __init__(self): super(TrashManager, self).__init__() def get_queryset(self): return super(TrashManager, self).get_queryset().filter(trashed=False)
[ "colin.powell@gmail.com" ]
colin.powell@gmail.com
5ffe272692e57c66023820ea7951094ffe10565a
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/arg/perspectives/new_split/common.py
3ebbc6f5ca6603dee841f0f7608088978c60f83a
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
1,701
py
import json import os from typing import Iterable, Dict, List from arg.perspectives.load import splits from arg.perspectives.qck.qck_common import get_qck_candidate_from_ranked_list from arg.qck.decl import QCKCandidate from cpath import data_path from list_lib import lmap from misc_lib import merge_dict_list from tre...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
8c847624e7500fe73dfba465378dd4863768404a
a6e908c3f256165c6c1f1afd4408a3bc4c26eec6
/acq4/devices/MultiClamp/RackTemplate_pyqt5.py
274b905d682973fd0360fdf6b6bc31c92b3177c7
[ "MIT" ]
permissive
aiephys/acq4
14f4eb5a8ad5ac95544ca2f7792d462bba74283e
b4ce514ae0dfa5327a8e70a500b765314d4339c3
refs/heads/develop
2021-05-03T10:49:28.536474
2019-05-31T18:12:04
2019-05-31T18:12:04
69,374,483
0
4
MIT
2019-11-14T19:41:37
2016-09-27T16:03:35
Python
UTF-8
Python
false
false
4,104
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'acq4/devices/MultiClamp/RackTemplate.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): ...
[ "luke.campagnola@gmail.com" ]
luke.campagnola@gmail.com
1f9d606f2cfc3a87ef012ecfed0686fd444a8141
209e1a90ac3ad1a07653d7f7c1f740b3e0b68b6a
/nagare/publishers/standalone_publisher.py
c633bd88479bad1adbd22fa1f040ed310b63565e
[]
no_license
apoirier/test
444c1fd10fc39d58475cf538aaa7c3fd75d7903b
20283cd695e7177ea2d01b370b391ca6fb5a308a
refs/heads/master
2016-09-02T03:03:39.158703
2012-05-03T12:07:34
2012-05-03T12:07:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
#-- # Copyright (c) 2008-2012 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. #-- """The HTTP multi-threaded publisher""" import time from paste import httpserver from nagare im...
[ "alain.poirier@net-ng.com" ]
alain.poirier@net-ng.com
db920c0af702a40bd67a5dc58330d9af4509de08
00fc47594af196da2b57477deb380552e564dea7
/tests/tasks/mongodb.py
76dab7288884e80b8aa071197798a4d0644dc15a
[ "MIT" ]
permissive
apploitech/mrq
b97c2136b8b405a4784395acedb02ff8d913f49e
e63021606fb1dc839165c6b203e807119bffa2ec
refs/heads/master
2023-06-27T09:44:44.457392
2023-06-07T14:32:18
2023-06-07T14:32:18
172,127,544
2
0
MIT
2023-06-13T19:17:24
2019-02-22T20:03:37
Python
UTF-8
Python
false
false
381
py
from mrq.task import Task from mrq.context import connections class MongoTimeout(Task): def run(self, params): res = connections.mongodb_jobs.eval(""" function() { var a; for (i=0;i<10000000;i++) {  for (y=0;y<10000000;y++) { a = Math.max(y); } ...
[ "sylvain@sylvainzimmer.com" ]
sylvain@sylvainzimmer.com
8636d5d69be2491668e9bec2945382bfa5410fe7
be96bc4264c39b5a641a7eeb9b40fa1108d03761
/src/python/tool/autorigger_v02_obsolete/__obsolete_rig_system/goe_builds/project/characters/skeleton/build_hi/skeleton.py
338ba1d38423d4186c18136c304717001117a8dd
[]
no_license
EmreTekinalp/Public
39f13023846aa9ba7a2e61686aaa07f0042e13ff
a3c08d75e1ec396e0545b1ccb57ba8abdd2fb441
refs/heads/master
2021-01-20T20:18:28.636400
2017-08-10T07:18:04
2017-08-10T07:18:04
58,516,793
0
1
null
null
null
null
UTF-8
Python
false
false
1,039
py
''' @author: Emre @date: Thu 20 Nov 2014 08:47:40 PM PST @mail: ENTER YOUR EMAIL ADRESS HERE @brief: add additional code inside this module ''' from goe_builds.project.characters.skeleton.build_hi.data import obj from goe_functions import tools reload(obj) def parent_and_child(): #--- this method setup...
[ "etekinalp@outlook.com" ]
etekinalp@outlook.com
94825b91ee545bbcca9234d9656260ab1bdb463d
b99bbc50ab1d039948ccf853963ae044a97498fb
/src/api/symbols/urls/latest.py
172fa9e497700dd22010fadd7597226e11fd670f
[]
no_license
fan1018wen/Alpha
26899cc0eb6761bf6bd8089e7d12716c9e7ae01e
c50def8cde58fd4663032b860eb058302cbac6da
refs/heads/master
2021-05-12T12:54:15.747220
2017-10-11T10:58:51
2017-10-11T10:58:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# coding: utf-8 from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from symbols.views.charts import LatestTableDataView, LatestTableDataListView urlpatterns = [ url(r'^latest$', LatestTableDataView.as_view()), url(r'^latest_list$', LatestTableDataListView.as_view()...
[ "mengqiang@1b2b.cn" ]
mengqiang@1b2b.cn
42bb29218c33ad4b40643aad676a5ac3f064a2d8
5c1ec474c579ad1280a2f6f71aaa5a9191f82f32
/src/accounts/middleware.py
b466efbd58cce514f16eef4c423cdb7bb8e6b9fa
[ "MIT" ]
permissive
Talengi/phase
bcc51837e6131fd65308728aa79380c37305d1a7
60ff6f37778971ae356c5b2b20e0d174a8288bfe
refs/heads/master
2022-12-09T15:42:14.459215
2021-06-28T08:12:21
2021-06-28T08:12:21
9,164,756
8
7
NOASSERTION
2022-12-08T01:18:49
2013-04-02T07:28:30
Python
UTF-8
Python
false
false
571
py
# -*- coding: utf-8 -*- from django.contrib.auth.models import AnonymousUser from categories.models import Category class CategoryMiddleware(object): """Add category data to every request.""" def process_request(self, request): user = getattr(request, 'user') if not isinstance(user, Anonym...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
ebf4d53b9c4e0b4d598e3442c7e29f4f2920939d
0a28bcde2499e6a41e16d88ed62cd2e80a5b464d
/hb_quant/huobi/utils/print_mix_object.py
894dc43895232966ab71e7327c1f3b2d9c1583fd
[ "MIT" ]
permissive
wenli135/Binance-volatility-trading-bot
2cfe66007294b13a89b16d1622d50ce1615f1d66
75a03ad61df0e95492128fb6f1f419d4dc256ab3
refs/heads/main
2023-06-13T06:40:43.855256
2021-07-01T02:03:25
2021-07-01T02:03:25
373,853,320
0
0
MIT
2021-06-04T13:38:26
2021-06-04T13:38:26
null
UTF-8
Python
false
false
5,948
py
import sys import time BASIC_DATA_TYPE = (int, str, float) BASIC_DATA_TYPE_BOOL = (bool) TYPE_BASIC = "type_basic" TYPE_BOOL = "type_bool" TYPE_OBJECT = "type_object" TYPE_LIST = "type_list" TYPE_DICT = "type_dict" TYPE_UNDEFINED = "type_undefined" class TypeCheck: @staticmethod def is_list(obj): re...
[ "wenli@quchaogu.com" ]
wenli@quchaogu.com
e543420c4259d4772ae6a047eb134cc03fe10de8
822cceb604f4c0fa96d8bb24104168d3953fc2b6
/src/deep_rlsp/envs/gridworlds/tests/batteries_test.py
c78574849e5e0d3906b243a7809d011d92eb82bb
[ "MIT" ]
permissive
mcx/deep-rlsp
e921aeaf822a1c0173b8816795addc4b16bd0f9c
81941693aba2aa9157ca96e96567f4e3cb95fbc3
refs/heads/master
2023-04-18T11:29:53.142429
2021-05-04T17:14:08
2021-05-04T17:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
import unittest from deep_rlsp.envs.gridworlds.batteries import BatteriesState, BatteriesEnv from deep_rlsp.envs.gridworlds.tests.common import BaseTests, get_directions class TestBatteriesSpec(object): def __init__(self): """Test spec for the Batteries environment. G is a goal location, B is a ...
[ "dev@davidlindner.me" ]
dev@davidlindner.me
a6eedc396a8b54af5f8fbc70af73ffe841ff2ea3
4323ef02073a8e3c9e6aceba738aef5fc72c3aa6
/Testes com Pygame/Lab14_spell_check.py
1f8b914c3c0b5445b3ee5a6e14798765db5fe9e2
[ "MIT" ]
permissive
fotavio16/PycharmProjects
e1e57816b5a0dbda7d7921ac024a71c712adac78
f5be49db941de69159ec543e8a6dde61f9f94d86
refs/heads/master
2022-10-19T15:45:52.773005
2020-06-14T02:23:02
2020-06-14T02:23:02
258,865,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
''' Programa de busca sequencial e binária ''' import re # This function takes in a line of text and returns # a list of words in the line. def split_line(line): return re.findall('[A-Za-z]+(?:\'[A-Za-z]+)?', line) # Leitura do arquivo 'dictionary.txt' num array dictionary_list = [] file = open("dictionary.txt"...
[ "fotaviofonseca@gmail.com" ]
fotaviofonseca@gmail.com
341b875f6ad0b7e5c45f88e7e6ac4b30bfab335f
cd4e09820a618230105b72aa9dd3cfde3cefb80e
/collaboration/views.py
77d8b93d74fce235d0a7113f58cd2c4b8d80d06b
[]
no_license
Pinehas/etcapp_1.0
820e3833045bbc23ad0c8d36e7f8524f4ea024bb
1e6de26aaa4a3bbd78fc4fdf7ac09376ab9d8b5d
refs/heads/master
2023-04-01T23:39:29.724897
2021-04-07T23:05:30
2021-04-07T23:05:30
355,704,499
0
1
null
null
null
null
UTF-8
Python
false
false
4,446
py
from django.shortcuts import render from .models import * from django.contrib import messages from django.http import HttpResponse # Create your views here. def home(request): return render(request, 'collaboration/main.html') def insert_conference(request): if request.method=="POST": if request.POST.g...
[ "wmaster468@gmail.com" ]
wmaster468@gmail.com
f53f966bb520110bd1c3ddb9bfe713812283ff9e
d31ae3dd632958a5a2caee091b10301dde2e7aef
/django_qna/usermodule/models.py
8871909d9f4a6ca3146e0e393791763a6d64db33
[]
no_license
datapsyche/django_qna
6fff55718db2a9b09004dd6e4ce2410b14af5a01
7cd4226c84372879bb6427555afcd8eaafa197ae
refs/heads/master
2023-08-05T20:24:38.445655
2020-05-03T12:09:01
2020-05-03T12:09:01
260,871,092
0
0
null
2021-09-22T19:04:41
2020-05-03T09:42:47
Python
UTF-8
Python
false
false
194
py
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class QuizUser(AbstractUser): score = models.IntegerField(null=True, default=0)
[ "jithinjkumar@gmail.com" ]
jithinjkumar@gmail.com
3607397a40c451570d6fd634069adc2439a57410
1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b
/2020/guess_number_higher_or_lower_ii.py
846601b93f8cbc12ae1b4cf6c9ac8bc7c908c60b
[]
no_license
eronekogin/leetcode
ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c
edb870f83f0c4568cce0cacec04ee70cf6b545bf
refs/heads/master
2023-08-16T10:35:57.164176
2023-08-14T11:25:33
2023-08-14T11:25:33
163,679,450
0
0
null
2021-09-09T12:04:44
2018-12-31T15:33:06
Python
UTF-8
Python
false
false
1,933
py
""" https://leetcode.com/problems/guess-number-higher-or-lower-ii/ """ class Solution: def getMoneyAmount(self, n: int) -> int: """ First of all, this question is to find the minimum cost you need to have in order to win this game. Then suppose dp[i][j] is the minimum cost we need...
[ "“mengyu.jiang@gmail.com" ]
“mengyu.jiang@gmail.com
8536cc7132c671337cf7bc547654ed7a08a643f1
4a8ebe9bb447d6ea736f7b350cafbf5b72258f4c
/myapp/migrations/0002_remove_book_yearpublished.py
38fb3c81226b586893ecd628e5ccf1607092321c
[]
no_license
mohammedshoaibdeveloper/Graphql-Django-Api
ee74dbbadd2f382b8b09576f9dee1b5eeda38c58
c66e4ab9a53c104f1fbc009f8ad16ac6c5cd5468
refs/heads/master
2023-08-26T12:00:47.659645
2021-10-28T11:36:42
2021-10-28T11:36:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
# Generated by Django 3.2.8 on 2021-10-23 12:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='book', name='yearpublished', ), ]
[ "shoaibbilal101@gmail.com" ]
shoaibbilal101@gmail.com
650555e328a49beea77a9b45a80f9b2ccd71b637
d594f3926f6379ef7c382c608cb211f507240420
/csunplugged/at_home/migrations/0002_auto_20200506_2051.py
ca65d0ecef11a6a871e483e909b6f306b8d85f32
[ "LicenseRef-scancode-secret-labs-2011", "MIT", "OFL-1.1", "LGPL-2.0-or-later", "AGPL-3.0-only", "CC-BY-4.0", "Apache-2.0", "BSD-3-Clause", "CC-BY-SA-4.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uccser/cs-unplugged
0b9151f84dd490d5b90771a3706327a623d39edc
363e281ff17cefdef0ec61078b1718eef2eaf71a
refs/heads/develop
2023-08-25T08:45:29.833025
2023-08-22T02:58:35
2023-08-22T02:58:35
66,315,075
200
41
MIT
2023-09-14T02:15:40
2016-08-22T23:16:40
Python
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-05-06 20:51 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('at_home', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
[ "jackmorgannz@gmail.com" ]
jackmorgannz@gmail.com
768e2b5db98fd07b2b8640a2fd52fe1c516f4646
209c876b1e248fd67bd156a137d961a6610f93c7
/python/paddle/fluid/tests/unittests/collective/collective_allgather_api.py
a69e6c59e0edc3de31f3b00d37f00c369c04de4f
[ "Apache-2.0" ]
permissive
Qengineering/Paddle
36e0dba37d29146ebef4fba869490ecedbf4294e
591456c69b76ee96d04b7d15dca6bb8080301f21
refs/heads/develop
2023-01-24T12:40:04.551345
2022-10-06T10:30:56
2022-10-06T10:30:56
544,837,444
0
0
Apache-2.0
2022-10-03T10:12:54
2022-10-03T10:12:54
null
UTF-8
Python
false
false
2,952
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
Qengineering.noreply@github.com
7ce935dff7b90031d9ac7e55982abb8be0bf2a5a
b0e7597e95bb8067dfd9e32cdbc8a0aee23ac75f
/tagging/memm.py
739f606767982fb348fa2cb3a9e95b2890d2907c
[]
no_license
famaf/PLN_2017
f94de63013850ea5ab43e99e154123ef6856cb5f
540cbea09b8e0d609e423c2d8dad192cd3a8e00c
refs/heads/master
2021-09-13T23:51:03.649372
2018-05-06T03:42:04
2018-05-06T03:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,289
py
# http://feature-forge.readthedocs.io/en/latest/feature_evaluation.html from featureforge.vectorizer import Vectorizer # Vectorizador # http://scikit-learn.org/stable/modules/generated/ # sklearn.pipeline.Pipeline.html from sklearn.pipeline import Pipeline # Pipeline # Clasificadores from sklearn.linear_model impor...
[ "ferreyramario7@gmail.com" ]
ferreyramario7@gmail.com
f163f737f3b4fcaeb6bb31afd4812595475cc860
54ab0f79f5d68f4732ca7d205f72ecef99862303
/torch/nn/utils/_per_sample_grad.py
3dee953d61710b9ca77fe43cc3df8161de1cad3d
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
csarofeen/pytorch
a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc
e8557ec5e064608577f81e51ccfe7c36c917cb0f
refs/heads/devel
2023-04-30T02:42:13.558738
2023-03-14T00:50:01
2023-03-14T00:50:01
88,071,101
35
10
NOASSERTION
2023-06-21T17:37:30
2017-04-12T16:02:31
C++
UTF-8
Python
false
false
5,719
py
import functools import torch from torch.nn.utils.stateless import functional_call from torch.nn.utils._expanded_weights.expanded_weights_impl import ExpandedWeight from torch.utils._pytree import tree_flatten # dependency on `functional_call` means that this can't be exposed in utils # without creating circular dep...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
e71dc7a6f2ba00c6fe9bb0e508086e78643a0947
b5530bd292c00592ac716402408c48e567d5e883
/math/0x00-linear_algebra/101-the_whole_barn.py
6cc0e8920ad98a5476a744f8a52e5e4654c617b4
[]
no_license
cmmolanos1/holbertonschool-machine_learning
fceef34bc0133cde86f166ae1cbb62a0c449f013
5aff923277cfe9f2b5324a773e4e5c3cac810a0c
refs/heads/master
2023-01-24T04:05:32.883858
2020-12-14T19:16:12
2020-12-14T19:16:12
255,338,268
1
0
null
null
null
null
UTF-8
Python
false
false
2,344
py
#!/usr/bin/env python3 """n-dimensional Matrix addition""" def shape_mat(mat): """Calculates the shape of a given matrix. Args: mat (list): matrix to know the shape. Returns: list: shape x,y,z...n. """ if type(mat[0]) is not list: return [len(mat)] else: retur...
[ "926@holbertonschool.com" ]
926@holbertonschool.com
bb1f03f785a39320a6fb1b6b2cd727098c3ab338
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/faif_python-patterns/python-patterns-master/behavioral/chaining_method.py
02f9527fa0f80674f1ccf3c0c558769186ad6b8d
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
684
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function class Person(object): def __init__(self, name, action): self.name = name self.action = action def do_action(self): print(self.name, self.action.name, end=' ') return self.action class Actio...
[ "659338505@qq.com" ]
659338505@qq.com
47e61b6c85653def34127099c26087a991199264
c18a63e2e37712025794bc7d0bb824ca3a8cde51
/DockerManager/apps.py
135b96b9548a2eb6a3e1205094f4cd3db3627b5c
[]
no_license
wuqiangchuan/Xproxxx
9202767573a3f0bfc1b00b6069eaf6ef9bc25907
6403bde2bc091faab55cca5ac9fff62b13d6a0cb
refs/heads/master
2021-01-01T17:48:55.335991
2017-07-20T10:00:52
2017-07-20T10:00:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from __future__ import unicode_literals from django.apps import AppConfig class DockermanagerConfig(AppConfig): name = 'DockerManager'
[ "root@localhost.localdomain" ]
root@localhost.localdomain
0b4bc79345873e7d034fd8a32541604f43e9d0fd
e7ce273f404f82fd8672c97e50b386509c8f9870
/OOP/Inheritance/Restaurant/food/cake.py
39aca389c9aa3483b4b50d036c38b3a03736d9aa
[]
no_license
rzlatkov/Softuni
3edca300f8ecdcfd86e332557712e17552bc91c3
a494e35bff965b2b9dccc90e1381d5a1a23737a1
refs/heads/main
2023-07-02T12:49:59.737043
2021-08-13T20:47:07
2021-08-13T20:47:07
319,088,872
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
from Restaurant.food.dessert import Dessert class Cake(Dessert): GRAMS = 250 CALORIES = 1000 PRICE = 5 def __init__(self, name): super().__init__(name ,Cake.PRICE, Cake.GRAMS, Cake.CALORIES)
[ "nozzller@gmail.com" ]
nozzller@gmail.com
f640a39d47e3ae5c4c0821adad9f21b0fb6e1ee0
e410f02ff98c6df7dc5c4a7a16abb7f6bf4d8d22
/notebooks/solutions/05A_knn_with_diff_k.py
4395df85311af7733f109402d13564e95c1223a6
[ "CC0-1.0", "LicenseRef-scancode-proprietary-license" ]
permissive
jlgorman/scipy-2016-sklearn
ddbad98358f2718278f20f7588403a7c06e50154
39568d726e0676fde2a6a53e99d71368868934e7
refs/heads/master
2021-01-13T10:56:23.982670
2018-04-05T13:35:30
2018-04-05T13:35:30
72,294,779
0
0
CC0-1.0
2018-04-05T13:35:31
2016-10-29T16:02:56
Jupyter Notebook
UTF-8
Python
false
false
1,138
py
from sklearn.datasets import load_iris from sklearn.cross_validation import train_test_split iris = load_iris() X = iris.data y = iris.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, ...
[ "mail@sebastianraschka.com" ]
mail@sebastianraschka.com
2a28311948a1c7014d0d4071d840a0e2c2caccd5
8cd9ceb3e49201426a135076c77081c42242ca0d
/research/apps/publications/authors_alias.py
bec2d1e0ce1747db5275efefe41d27c409fd2b0a
[]
no_license
research-core/core-research
57b7b6a60af6d9249dd7d5bc62ae3c056500c0ac
3311745bbfdb102ab4255d9ef1cf87e900e77d0f
refs/heads/master
2020-06-29T00:21:51.023340
2019-08-26T17:12:00
2019-08-26T17:12:00
200,383,310
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
from confapp import conf from pyforms.basewidget import segment from pyforms_web.widgets.django import ModelAdminWidget from research.models import AuthorAlias class AuthorsAliasListWidget(ModelAdminWidget): """ """ UID = 'authors-alias' TITLE = 'Authors alias' MODEL = AuthorAlias #########...
[ "ricardojvr@gmail.com" ]
ricardojvr@gmail.com
966c280474db231d3a4ff2ada81c9d382a4ac29f
409b85320b7187f857d0da2e6b5a2a99bb915bb4
/sporco/mpiutil.py
2e0c3e003c381148b03d5f8f35d714b3aa10c054
[ "BSD-3-Clause" ]
permissive
vishalbelsare/sporco
4aaf20579d04a600623d9821cf8c45890e85a552
7748e52192d566fe449d01189e9dc6cf4053282d
refs/heads/master
2022-09-22T10:13:08.033794
2022-02-18T02:03:42
2022-02-18T02:03:42
158,176,895
0
0
BSD-3-Clause
2022-08-24T19:22:53
2018-11-19T07:06:03
Python
UTF-8
Python
false
false
6,536
py
# -*- coding: utf-8 -*- # Copyright (C) 2017-2021 by Cristina Garcia-Cardona <cgarciac@lanl.gov> # Brendt Wohlberg <brendt@ieee.org> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE...
[ "brendt@ieee.org" ]
brendt@ieee.org
8215cfcc593d44e5bd875805ce24b8161bc315a4
28bb1dda3010ab719ec537bcc63a5ed1491d148d
/sites with exercises/codewars/human redable time format.py
8ff065ef481e948cd9efe04153d8b83344aa1d45
[]
no_license
dawidsielski/Python-learning
86db2ff782aab13ff6dc44b1ce9295fc7c186e20
4aabf4d63906fb1d2379bbd401e9ac7484766198
refs/heads/master
2021-01-13T10:35:20.913601
2018-02-24T11:52:06
2018-02-24T11:52:06
76,497,517
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
""" Your task in order to complete this Kata is to write a function which formats a duration, given as a number of seconds, in a human-friendly way. The function must accept a non-negative integer. If it is zero, it just returns "now". Otherwise, the duration is expressed as a combination of years, days, hours, minute...
[ "dawid.sielski@outlook.com" ]
dawid.sielski@outlook.com
bde5ef6b606298bc696dd4f0ad49648fda309c91
d29c9f7bcb95acebe4a1747f2a6d42f53fabb513
/lmdb_search.py
58190a1bbaf2216aebc44af32a21ed77f1cc6c88
[ "MIT" ]
permissive
JFF-Bohdan/item_lookup
887621e20384fa52cfd2cf8f09054bf914731ab9
cf98c94d7b212a81ef499e8160f855fc3e9015ce
refs/heads/main
2023-03-09T09:13:57.165981
2021-02-14T21:03:59
2021-02-14T21:03:59
338,594,807
2
0
null
null
null
null
UTF-8
Python
false
false
2,054
py
import sys import time import humanize import lmdb from loguru import logger from shared.consts import LMDB_DATABASE_FILE from shared.lmdb_support import serialize_tuple_of_integers from shared.memory_usage import get_current_memory_usage def is_passport_expired_lmdb( env, passport_series: int, ...
[ "dbn@aminis.com.ua" ]
dbn@aminis.com.ua
6f5635ea6c0c15087d3fa48ab4537bbcdc434a00
2118f244be2e09508e3c89dee432d4a75343b430
/Math Input/riemann.py
cd9da24ed250c7de029b449acaff831d8a9024bd
[]
no_license
RamiJaloudi/Python-Scripts
91d139093a95f9498a77b1df8ec2f790c4f4dd4c
37e740a618ae543a02c38dc04a32ef95202ff613
refs/heads/master
2020-04-29T14:55:41.108332
2019-03-18T05:42:06
2019-03-18T05:42:06
176,212,014
0
0
null
null
null
null
UTF-8
Python
false
false
2,745
py
''' # Part 1 from math import sin, pi def Rsum(a,b): for i in range(1001): s = 0 delx = float((b-a)/1000) g = i*delx h = (i+1)*delx y_i = float(sin(a+g)) y_ii = float(sin(a+h)) s += ((0.5/3.14159265359)/ 3.14159265359) * (y_i + y_ii) * delx return s pr...
[ "rjaloudi@gmail.com" ]
rjaloudi@gmail.com
7ede9c20d003d37372f5b4f0b6eb22cbf1f54e3e
5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e
/1035.py
3555e35845c706bb07cf0f6180e3dbb6544444a3
[]
no_license
junyang10734/leetcode-python
035b12df3f7d9fc33553140d1eb0692750b44f0a
eff322f04d22ffbc4f9b10e77f97c28aac5c7004
refs/heads/master
2023-07-22T11:16:38.740863
2023-07-14T00:22:00
2023-07-14T00:22:00
189,197,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
# Uncrossed Lines # DP # runtime: faster than 53.05% class Solution1: def maxUncrossedLines(self, A: List[int], B: List[int]) -> int: m, n = len(A), len(B) dp = [[ 0 for i in range(n)] for j in range(m)] for i in range(m): for j in range(n): if i == 0 a...
[ "junyang2019@outlook.com" ]
junyang2019@outlook.com
a67e43abcb99373c5202643a9787c1ca35beaf38
4f7c0ad2f3762e245606387eddc41932758ed64f
/ubelt/util_repr.pyi
8370e097d8c052b63cede195dd217b10ca7c75c9
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Erotemic/ubelt
e64e480a7811ae2eb3c98c3d00f38b7576c3c128
f667a356094570a40d1bb89b49000c7d9c959171
refs/heads/main
2023-09-03T17:13:16.487558
2023-07-09T20:59:46
2023-07-10T14:03:05
80,464,421
708
60
Apache-2.0
2023-07-10T20:56:50
2017-01-30T21:14:57
Python
UTF-8
Python
false
false
359
pyi
from typing import Type from typing import Tuple from typing import Callable from typing import Any def urepr(data: object, **kwargs) -> str: ... class ReprExtensions: def __init__(self) -> None: ... def register(self, key: Type | Tuple[Type] | str) -> Callable: ... def lookup(sel...
[ "erotemic@gmail.com" ]
erotemic@gmail.com
b02854f6294690fb8e9d624d2227de372c63875e
3d91b4f3ac42056b1a8205b1f5a62b5ca05ded43
/todo_project/todo_app/views.py
a54a5fbef9f44be3c724e25dd92c86dfc876e0b7
[]
no_license
olgayordanova/Python_Web
be34027a7755d5c178164995edb25f173a7fcdb4
3dfc6df65bffb109d5e26e9d1a496158b196c62f
refs/heads/main
2023-05-31T03:54:29.515864
2021-07-09T11:29:14
2021-07-09T11:29:14
373,501,975
1
0
null
null
null
null
UTF-8
Python
false
false
212
py
from django.shortcuts import render from todo_app.models import Todo def index(req): todos = Todo.objects.all() context = {'todos': todos} return render(req,'index.html', context=context)
[ "noreply@github.com" ]
olgayordanova.noreply@github.com