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
c53ec5397ec182007a22d88243b2d4ec32a3f966
d6ca0b326f1bd0ce381c6db611f6331096bf4187
/examples/example_20_using_deap_manual_runs.py
ab46bba8dfec0020018669d017e35953cbda71ea
[ "BSD-3-Clause" ]
permissive
SmokinCaterpillar/pypet
aa35355d70e8f44be015313494376d993f645d80
3d454ac65f89e7833baaf89510f73c546e90d8f6
refs/heads/develop
2023-08-08T16:01:54.087819
2023-02-14T14:59:32
2023-02-14T14:59:32
12,901,526
89
22
BSD-3-Clause
2023-07-24T00:46:12
2013-09-17T17:06:00
Python
UTF-8
Python
false
false
6,723
py
""" An example showing how to use DEAP optimization (http://pythonhosted.org/deap/). DEAP can be combined with *pypet* to keep track of all the data and the full trajectory of points created by a genetic algorithm. Note that *pypet* adds quite some overhead to the optimization algorithm. Using *pypet* in combination ...
[ "robert.meyer@ni.tu-berlin.de" ]
robert.meyer@ni.tu-berlin.de
a607cfd0c82f0951367c489f47dad4d25eb49d58
00829e1ff78f73dab073a201d68139960c1d1922
/tools/toolset/tool/rigging/pipline_tool/ui/his/ui_create_character.py
42c99cc1874dedb0e213f77abca01d3414e1a31e
[]
no_license
liangyongg/Beam_Tools
a021ceb4187107508536c46726da5b9629ffd1cf
21b5d06e660f058434e589ae4f672f96296b7540
refs/heads/master
2018-11-04T04:43:02.523654
2018-08-26T12:33:09
2018-08-26T12:33:09
115,005,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,908
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_create_character.ui' # # Created: Thu Apr 26 11:29:46 2018 # by: pyside-uic 0.2.15 running on PySide 1.2.4 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_Form(object): def set...
[ "hhhh" ]
hhhh
ce74a238c917af6de5cfc93964163002750f06d8
59de7788673ade984b9c9fbc33664a7cbdba67d3
/res/scripts/client_common/shared_utils/__init__.py
9b417b171ce7cf3e50a53c5b6006973b705af2f6
[]
no_license
webiumsk/WOT-0.9.15-CT
3fa24ab37a6c91b7073034afb2f355efa5b7fe36
fbd194fbaa6bdece51c7a68fc35bbb5257948341
refs/heads/master
2020-12-24T21:27:23.175774
2016-05-01T13:47:44
2016-05-01T13:47:44
57,600,180
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,366
py
# 2016.05.01 15:25:53 Střední Evropa (letní čas) # Embedded file name: scripts/client_common/shared_utils/__init__.py import weakref import itertools import types import BigWorld from debug_utils import LOG_ERROR, LOG_WARNING ScalarTypes = (types.IntType, types.LongType, types.FloatType, types.BooleanType) + types.S...
[ "info@webium.sk" ]
info@webium.sk
01bc8dd81cafcbbf52dd9b8525c0fd40f828b6f4
274521d5ccfbaebb97cdfbfa340d951eee7c9efa
/Python/PythonProgrammingLanguage/Encapsulation/encap_env/bin/jsonschema
116515a0218c94456db568d63ab738fffe5c5f5e
[ "MIT" ]
permissive
nitin-cherian/LifeLongLearning
ef8e1ed61e4bf8b6ae4a0ae642c559ab47be84b4
84084792058358365162c645742c70064a2d5fd6
refs/heads/master
2021-01-21T10:38:41.797326
2018-08-23T01:28:10
2018-08-23T01:28:10
91,701,351
6
0
null
null
null
null
UTF-8
Python
false
false
323
#!/home/nitin/Learn/Repositories/Github/LifeLongLearning/Python/PythonProgrammingLanguage/Encapsulation/encap_env/bin/python # -*- coding: utf-8 -*- import re import sys from jsonschema.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main(...
[ "nitin.cherian@gmail.com" ]
nitin.cherian@gmail.com
76ba202c34534ea332d0d9c2b7c22175514cb943
bf331831c2c532d76b91c11127cc4c76cf9f0031
/166/D/ans_errorneous.py
eac398768204dd7b212a8fb9e6f37ee62331d50c
[]
no_license
mugenen/Codeforces-Solution
519899d658a52dc87bfdba81110e9851ccf3b6de
f69874ad46acc511f4485dc29249f7010f562ea9
refs/heads/master
2021-01-22T04:49:48.986989
2013-02-25T12:36:10
2013-02-25T12:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
import sys import collections import bisect import math class Trie: class Node: def __init__(self, x, bros = None, child = None): self.data = x self.bros = bros self.child = child def get_child(self, x): child = self.child while child: ...
[ "8monkey.theorem@gmail.com" ]
8monkey.theorem@gmail.com
627649476ff37a030466b373ef750b7e153b0eb0
498fcf34fa4482be5c9fefc488666e60edcf46c7
/supervised_learning/0x01-classification/17-deep_neural_network.py~
90473c634dabec13840cc70707d19fee907312fb
[]
no_license
MansourKef/holbertonschool-machine_learning
7dbc465def04c311c1afb0e8b8903cbe34c72ad3
19f78fc09f0ebeb9f27f3f76b98e7a0e9212fd22
refs/heads/main
2023-03-12T16:18:08.919099
2021-03-05T09:42:09
2021-03-05T09:42:09
317,303,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
#!/usr/bin/env python3 """module""" import numpy as np class DeepNeuralNetwork: """Deep Neural Network""" def __init__(self, nx, layers): """Constructor""" if not type(nx) is int: raise TypeError("nx must be an integer") if nx < 1: raise ValueError("nx must be...
[ "2798@holbertonschool.com" ]
2798@holbertonschool.com
0c98c3fa06970c85f3b2a81e02355551274fcf41
5b22437902bffa0f62b375d56bfb2b4485ef43f0
/src/video_inpainting/padded_masked_video_tar_dataset.py
93491de023c768894243ad89932a5aa1d0875600
[ "MIT", "CC-BY-SA-3.0", "CC-BY-SA-4.0" ]
permissive
JohnsonzxChang/devil
eafa09f5258b4f33eda9564077814c6e63473a0f
296115cd5f4952c7dc65bbcaaf2d1d5c55ef5d35
refs/heads/public
2023-07-03T12:07:58.917440
2021-08-10T00:06:38
2021-08-10T00:06:38
555,846,483
1
0
MIT
2022-10-22T13:22:43
2022-10-22T13:22:42
null
UTF-8
Python
false
false
1,437
py
import tarfile from itertools import cycle from .padded_masked_video_dataset import PaddedMaskedVideoDataset class PaddedMaskedVideoTarDataset(PaddedMaskedVideoDataset): def __init__(self, frames_dataset_path, masks_dataset_path): self._frames_dataset_tar = tarfile.open(frames_dataset_path, 'r') ...
[ "szetor@umich.edu" ]
szetor@umich.edu
dbe01cfd78374273c1c4be47f16e8c86a9962fcb
13d222bc3332378d433835914da26ed16b583c8b
/src/pemjh/challenge52/main.py
b1407abc5c0d32694b4aaf0241a641dcaad75fcd
[]
no_license
mattjhussey/pemjh
c27a09bab09cd2ade31dc23fffac07374bea9366
2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99
refs/heads/master
2023-04-16T03:08:59.390698
2023-04-08T10:54:00
2023-04-08T10:54:00
204,912,926
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
""" Challenge052 """ def get_sorted_string(unsorted): """ >>> get_sorted_string(54326) '23456' >>> get_sorted_string("aBayU") 'BUaay' """ return "".join(sorted(str(unsorted))) def main(): """ challenge052 """ root = 0 found = False while not found: ...
[ "matthew.hussey@googlemail.com" ]
matthew.hussey@googlemail.com
fcf6d5b203f22c6e42690390171431383fde3627
9b328903c7ce1ddfc957c6db4a5fef265bce1dad
/preprocess.py
2d04c659dfe88bfdce2082cc1a99285c36834611
[]
no_license
matatabinoneko/viral_tweet_generation
4a610b0327d7ce0e8e2b94eec0f82aa9f1c35ca1
1e26de293420dbed6f50f161b3210c9d14e3b2d4
refs/heads/main
2023-03-12T16:11:14.187622
2021-03-02T00:11:47
2021-03-02T00:11:47
330,305,509
0
0
null
null
null
null
UTF-8
Python
false
false
4,466
py
''' ツイートの前処理を行う ''' import argparse import logzero from logzero import logger import logging from os import path from typing import List from filtering_type import EmoticonFilter import json import MeCab from collections import defaultdict import re logger.setLevel(logging.INFO) mecabTagger = MeCab.Tagger("-Ochasen...
[ "matatabinoneko0721@gmail.com" ]
matatabinoneko0721@gmail.com
caa4886993b2a6034b738129474f78353d70e2af
c427d9142df033af2b509412153dae35706ede61
/recognition/pytorch_crnn/models/layers.py
fbaa09d9385382391ff58e1b8a380ebc4e74d249
[]
no_license
brahimbellahcen/ocr_toolkit
0b68776fe20b05f48807f856fffac752e3e08e66
b4516d4193132eb48f821926dd6ef5d368f53899
refs/heads/master
2022-11-13T10:21:14.083497
2020-06-26T15:31:38
2020-06-26T15:31:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
import torch import torch.nn as nn import torch.nn.functional as F class blockCNN(nn.Module): def __init__(self, in_nc, out_nc, kernel_size, padding, stride=1): super(blockCNN, self).__init__() self.in_nc = in_nc self.out_nc = out_nc self.kernel_size = kernel_size self.padd...
[ "selcukcaglar08@gmail.com" ]
selcukcaglar08@gmail.com
39aeb6e973594342d29c7e0c62856e9bdb055bea
e5ee4f343d9523129298e1cd989b52a142028cfe
/samples/contrib/azure-samples/databricks-pipelines/databricks_cluster_pipeline.py
4cbd45e50b4cab9d62b7e153d21fb6660ecc37ea
[ "Apache-2.0" ]
permissive
joaoalvarenga/pipelines
67c5b2c906134be8d4814a0851e4b60dfa4adf44
493c3d4e980b94a963a257247c6eb2d970b3dafa
refs/heads/master
2020-12-08T18:22:52.433779
2020-01-10T05:00:34
2020-01-10T05:00:34
233,059,234
1
0
Apache-2.0
2020-01-10T14:03:36
2020-01-10T14:03:35
null
UTF-8
Python
false
false
1,780
py
"""Create a cluster in Databricks. Then submit a one-time Run to that cluster.""" import kfp.dsl as dsl import kfp.compiler as compiler import databricks def create_cluster(cluster_name): return databricks.CreateClusterOp( name="createcluster", cluster_name=cluster_name, spark_version="5.3....
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
5b46996c84345b6406c48c03241e97ddfdbd1ac8
d066f7fe739fb78f74ec2de8ccbfefdd4270f60f
/appimagebuilder/__init__.py
5b4148a08e2776e617d6700c316eba5fc4629b93
[ "MIT" ]
permissive
AppImageCrafters/appimage-builder
666e75363a74f615cdb3673b3ca9d51a6d292a49
f38699ef3644fa5409a5a262b7b6d99d6fb85db9
refs/heads/main
2023-08-17T06:34:54.029664
2023-06-03T17:51:04
2023-06-03T17:51:04
218,847,680
270
54
MIT
2023-09-06T17:04:18
2019-10-31T19:44:17
Python
UTF-8
Python
false
false
651
py
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, cop...
[ "contact@azubieta.net" ]
contact@azubieta.net
15d2b575651bdea86b38c0e958fcaf83eaae4442
760fbf0e4675212a89dbba28ef771bf7ff7a0d91
/Leetcode2019/145. 二叉树的后序遍历.py
06d8fc7c4c1096758d26866d0f867745ac54876d
[]
no_license
chixujohnny/Leetcode
1a420e318005140a2be036ab7c3fcd054b4ae011
3faa41556f13f45a08b49d4dcd371ed590f9cb14
refs/heads/master
2021-06-19T14:44:28.464335
2021-01-11T08:16:26
2021-01-11T08:16:26
155,142,704
1
0
null
null
null
null
UTF-8
Python
false
false
563
py
# coding: utf-8 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def postorderTraversal(self, root): """ :type root: TreeNode :rtype: List[int] ...
[ "1390463349@qq.com" ]
1390463349@qq.com
7dcbcaa847c475cb4d1f139f4cd8eb41abab09cb
2f989d067213e7a1e19904d482a8f9c15590804c
/lib/python3.4/site-packages/django/contrib/contenttypes/apps.py
e5708adc99840e3b4a4bc3212d26d134a8462203
[ "MIT" ]
permissive
levabd/smart4-portal
beb1cf8847134fdf169ab01c38eed7e874c66473
2c18ba593ce7e9a1e17c3559e6343a14a13ab88c
refs/heads/master
2023-02-18T05:49:40.612697
2022-08-02T09:35:34
2022-08-02T09:35:34
116,001,098
0
1
MIT
2023-02-15T21:34:01
2018-01-02T10:00:07
Roff
UTF-8
Python
false
false
693
py
from django.apps import AppConfig from django.contrib.contenttypes.checks import check_generic_foreign_keys from django.core import checks from django.db.models.signals import post_migrate, pre_migrate from django.utils.translation import ugettext_lazy as _ from .management import ( inject_rename_contenttypes_oper...
[ "levabd@gmail.com" ]
levabd@gmail.com
59e22f98d350ea5b45fcfb9fc47ea110043bdec0
9556f7e1d81a305d71a66b9768eba199e396d733
/Thread/venv/bin/pip
698fcef12df25482e9901a7aecb433703142f6b8
[]
no_license
gitgaoqian/Python
301a2823b50ec754a2c1a3f47c39ae8b0b8e6890
164f5271044b235d256a9bbe0a34caacf1e81fc8
refs/heads/master
2023-01-08T21:23:59.640828
2020-11-01T13:06:21
2020-11-01T13:06:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
394
#!/home/ros/pycharm/MyFiles/thread/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(...
[ "734756851@qq.com" ]
734756851@qq.com
01b2be76c7a39b05d6db36b19dba8018456848d3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_125/ch22_2020_03_02_20_28_19_768242.py
6c3da9295a0c587ec5b4d1b65f83ce4882ba77e4
[]
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
143
py
dias = int(input('quantos cigarros voce fuma por dia ? ')) anos = int(input('há quantos anos voce fuma?' )) print ((anos*365*24*60)*dias*144)
[ "you@example.com" ]
you@example.com
dba2f8e1a2489ee8595497efbce2fbe54822fbb2
c8a04384030c3af88a8e16de4cedc4ef8aebfae5
/stubs/pandas/tests/indexes/test_setops.pyi
3493fb22582660788efeadee60d6a7bc60cb4307
[ "MIT" ]
permissive
Accern/accern-xyme
f61fce4b426262b4f67c722e563bb4297cfc4235
6ed6c52671d02745efabe7e6b8bdf0ad21f8762c
refs/heads/master
2023-08-17T04:29:00.904122
2023-05-23T09:18:09
2023-05-23T09:18:09
226,960,272
3
2
MIT
2023-07-19T02:13:18
2019-12-09T20:21:59
Python
UTF-8
Python
false
false
660
pyi
# Stubs for pandas.tests.indexes.test_setops (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. # pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name # pylint: disable=relative-beyond-top-level from typing import Any COMPATIBLE_INCONSISTENT_PAIRS: Any ...
[ "josua.krause@gmail.com" ]
josua.krause@gmail.com
cc6016e65e7b3e125b87d996e95b98ff5f2a1e52
c17ca7a7824056f7ad58d0f71abc25670b20c1fc
/spirit/urls/admin/__init__.py
1bc65e9f0daf9e9e944ad49a9811b0f1d6942c43
[ "Apache-2.0" ]
permissive
Si-elegans/Web-based_GUI_Tools
cd35b72e80aa400105593c5c819355437e204a81
58a9b7a76bc46467554192a38ff5329a94e2b627
refs/heads/master
2023-01-11T09:11:21.896172
2017-07-18T11:10:31
2017-07-18T11:10:31
97,445,306
3
1
Apache-2.0
2022-12-26T20:14:59
2017-07-17T07:03:13
JavaScript
UTF-8
Python
false
false
536
py
#-*- coding: utf-8 -*- from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^$', 'spirit.views.admin.index.dashboard', name='admin'), url(r'^index/', include('spirit.urls.admin.index')), url(r'^category/', include('spirit.urls.admin.category')), url(r'^comment/flag/', ...
[ "gepelde@vicomtech.org" ]
gepelde@vicomtech.org
1d8542da9fe05431ce0785b0c97e19b60e7aec39
e15ec378360536d5215bf0f0a8fa9ab8a41ff6cc
/ch06/p6-3-1.py
344f657d4d90d4170ca1d407f4091c37e6166324
[]
no_license
michlin0825/book-mP21926
2ece5685ded2c913f51c830fd6f3280b8394646f
5c4ebd828e593efd5fc7ba40bbcf606babd52640
refs/heads/main
2023-01-02T05:48:49.832014
2020-10-12T02:22:21
2020-10-12T02:22:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
from selenium import webdriver from bs4 import BeautifulSoup import time url = 'https://www.cwb.gov.tw/V8/C/W/OBS_County.html?ID=menu' web = webdriver.Chrome('chromedriver.exe') web.implicitly_wait(60) web.get(url) html = web.page_source web.quit() soup = BeautifulSoup(html, 'html.parser') target = soup.select('#Count...
[ "skynet.tw@gmail.com" ]
skynet.tw@gmail.com
0c826b71c27b17e526b9807cbca19ce674539404
b57d337ddbe946c113b2228a0c167db787fd69a1
/scr/py00468notices.py
c8f23c8ddfd5182e7ed018cb580fa0c212a0c0c1
[]
no_license
aademchenko/ToEE
ebf6432a75538ae95803b61c6624e65b5cdc53a1
dcfd5d2de48b9d9031021d9e04819b309d71c59e
refs/heads/master
2020-04-06T13:56:27.443772
2018-11-14T09:35:57
2018-11-14T09:35:57
157,520,715
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
from toee import * from utilities import * import _include from co8Util.TimedEvent import * from combat_standard_routines import * from py00439script_daemon import get_f, set_f, get_v, set_v, tpsts, record_time_stamp def san_use( attachee, triggerer ): if (attachee.name == 11063): game.quests[110].state = qs_menti...
[ "demchenko.recruitment@gmail.com" ]
demchenko.recruitment@gmail.com
4981a7e806be3173914d83131e900e93b70cefac
c89f5856fe74cff49a9d96dde9ed0117109e3845
/A-bit-of-py/exceptions_raise.py
18c685701366068a4acd2f51c1194d541cbb8930
[]
no_license
sinoclover/python
b2b3f435d15840ec16a34c62d50308bdfb9d6c3e
02f5347bc8219f1df52486077adf0017fe6d5211
refs/heads/master
2020-08-27T22:14:20.672846
2019-12-01T13:27:42
2019-12-01T13:27:42
158,791,898
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
# encoding=UTF-8 class ShortInputException(Exception): '''一个由用户定义的异常类''' def __init__(self, length, atleast): Exception.__init__(self) self.length = length self.atleast = atleast try: text = input('Enter something --> ') if len(text) < 3: raise ShortInputException(len(t...
[ "zzxy123007@163.com" ]
zzxy123007@163.com
4fc31a6ff5a7263512d12b5b20ad20f35c45dff3
2c510687bdc03fbb8383130e68cc796bfef1088c
/3_basic_ds/exercises.py
328dff7335a429dab792cb7b5a6f8adc62aeda37
[]
no_license
jimjshields/pswads
59758a0972fe71ca6f77305ff8ab86673d9b5d46
9568622805e24416f4a227cbecc1ef4927fa7ba3
refs/heads/master
2016-09-06T12:37:53.254464
2015-02-17T02:13:00
2015-02-17T02:13:00
30,149,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
# Chapter 3 Programming Exercises # Skip all pre-/post-/infix questions; not worth the time. # Also skip any 'experiment' questions. Maybe come back to them. # 5. Implement the Queue ADT, using a list such that the rear of the queue is at the end of the list. class Queue(object): """Represents a queue ADT. The rear ...
[ "jim.j.shields@gmail.com" ]
jim.j.shields@gmail.com
e103e52c8d1db2ceda089eb62bb3d134391fee80
102a33464fd3a16ceedd134e9c64fea554ca5273
/apps/config/models.py
39260020ed66b83fc8e77d4bf08ecae9ee053a6b
[]
no_license
pythonguru101/django-ecommerce
b688bbe2b1a53c906aa80f86f764cf9787e6c2fe
f94de9c21223716db5ffcb86ba87219da88d2ff4
refs/heads/master
2020-07-24T14:57:02.047702
2020-06-10T06:06:23
2020-06-10T06:06:23
207,961,132
1
0
null
null
null
null
UTF-8
Python
false
false
2,658
py
# encoding: utf-8 from django.db import models from django.utils.translation import ugettext as _ class ConfigAbstractManager(models.Manager): def get_config(self): try: return self.get(pk=1) except self.model.DoesNotExist: return {} class ConfigAbstract(models.Model): ...
[ "pythonguru101@gmail.com" ]
pythonguru101@gmail.com
fa27bce37bd4a31c0734171d2f4b56a9949bad56
d52413173437ba73ecdf822ca895e659f00a8ce7
/kiwibackend/application/module/artifact/migrations/0003_auto_20151209_1606.py
66ae6b692b0125f17dbbc5170a7fce62dbc9ac44
[]
no_license
whiteprism/mywork
2329b3459c967c079d6185c5acabd6df80cab8ea
a8e568e89744ca7acbc59e4744aff2a0756d7252
refs/heads/master
2021-01-21T11:15:49.090408
2017-03-31T03:28:13
2017-03-31T03:28:13
83,540,646
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('artifact', '0002_auto_20150914_0908'), ] operations = [ migrations.AddField( model_name='artifact', ...
[ "snoster@163.com" ]
snoster@163.com
cb1b755acd76f9db92cf7cb4a054a194126f2c56
2cf87feeebfe128d6c60067e82e5b28b3a84ae45
/aracle/data/make3dslices.py
a5b16c308b96da0c083019c4adf28e64496bd654
[ "MIT" ]
permissive
jiwoncpark/aracle
b536fbea39480b7af96daff1a9c51d2a7f131866
20aabe27ce65b738b77192242dc89eda612f945e
refs/heads/master
2020-06-03T15:21:35.386628
2019-11-12T17:49:34
2019-11-12T17:49:34
191,626,657
1
1
null
null
null
null
UTF-8
Python
false
false
4,320
py
import drms #pip install drms, astropy, sunpy , skvideo import numpy as np import astropy.units as u import shutil import os import datetime import matplotlib.pyplot as plt import skvideo.io from astropy.io import fits from matplotlib.pyplot import imshow from PIL import Image from sunpy.map import Map from datetime im...
[ "jiwon.christine.park@gmail.com" ]
jiwon.christine.park@gmail.com
97176f4b2cf2a2706ba0989eee781b449a4cf6b0
14cdc1353affd01ec9f96c31cd51549d82364b2c
/test/IECore/OptionsTest.py
f257f594de42cc75781eb2db60bfa267e5f96a44
[]
no_license
dsparrow27/cortex
f787cdcc271388986cd24ee27b48999ae71ef194
5e985efa860aec22a0c8ec6cebf9e682f65eca73
refs/heads/master
2021-08-19T06:30:36.881268
2017-11-23T08:26:13
2017-11-23T08:26:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,627
py
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of sou...
[ "thehaddonyoof@gmail.com" ]
thehaddonyoof@gmail.com
49716fffe1d3d747365e83abe99f48f2a62222a2
be5c86e8fe3f5836b7d2097dd5272c72b5b28f15
/binary-search/Python/0374-guess-number-higher-or-lower.py
bca7b49cffd223314f15f7da64b8be501150cf07
[ "Apache-2.0" ]
permissive
lemonnader/LeetCode-Solution-Well-Formed
d24674898ceb5441c036016dc30afc58e4a1247a
baabdb1990fd49ab82a712e121f49c4f68b29459
refs/heads/master
2021-04-23T18:49:40.337569
2020-03-24T04:50:27
2020-03-24T04:50:27
249,972,064
1
0
Apache-2.0
2020-03-25T12:26:25
2020-03-25T12:26:24
null
UTF-8
Python
false
false
523
py
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 def guess(num): pass class Solution(object): def guessNumber(self, n): left = 1 right = n while left < right: mid = (left + ...
[ "121088825@qq.com" ]
121088825@qq.com
7fe354c98d8d01ba22505c5e5c51b733782f34d6
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/googlecloudsdk/api_lib/ml/vision/util.py
d48320c61c682ef73501c2c44fe8ff497a756db5
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jordanistan/Google-Cloud-SDK
f2c6bb7abc2f33b9dfaec5de792aa1be91154099
42b9d7914c36a30d1e4b84ae2925df7edeca9962
refs/heads/master
2023-09-01T01:24:53.495537
2023-08-22T01:12:23
2023-08-22T01:12:23
127,072,491
0
1
NOASSERTION
2023-08-22T01:12:24
2018-03-28T02:31:19
Python
UTF-8
Python
false
false
2,070
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "jordan.robison@gmail.com" ]
jordan.robison@gmail.com
14dfa0a6647e1c79cd33c076529270c16b054056
09933dafbbc12fe20c405362850ffbf315b01a58
/src-tag-ent/gen_data.py
fbddab6277c97047553db17485a2206acc0a6875
[]
no_license
johndpope/advrelation
1ce1fd4ffc0b7abbea2762c3a8941b469c4f7cf5
bc77dcfa8669d612aded6a053fff6766798bed14
refs/heads/master
2020-03-22T22:55:48.664711
2018-03-03T04:43:11
2018-03-03T04:43:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,447
py
import tensorflow as tf import config as config_lib from inputs import dataset, semeval_v2 tf.logging.set_verbosity(tf.logging.INFO) config = config_lib.get_config() semeval_text = semeval_v2.SemEvalCleanedTextData( config.semeval_dir, config.semeval_train_file, config.semeval_test_file) # length statistics s...
[ "lzh00776@163.com" ]
lzh00776@163.com
c4fd4774aaf0e10c3720251b62ae4f7fd5eca3ae
437428a48278b4e9bc04e1b8acbb33199f409376
/modules/exploit/unix/cctv/goahead_password_disclosure.py
ae2a949fa5f2033187282244644b19db5808d163
[ "MIT" ]
permissive
happylaodu/HatSploit
06d18ba2590456241ba61273d9f3d662a8bb26ec
9d53f3db85ce38483c6e7d16570ac233c5dd93cf
refs/heads/main
2023-04-30T20:18:37.090185
2021-06-02T20:23:08
2021-06-02T20:23:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,399
py
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2021 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
[ "enty8080@gmail.com" ]
enty8080@gmail.com
ec20e0f130c9b07be9f40df8385ecc71d1678676
1b3fc35ada474601a76de3c2908524336d6ca420
/day07/作业/tencent/tencent/settings.py
d96bd9dfc78cc95ce6fafa6d33a2745ee7a9c4af
[]
no_license
dqsdatalabs/Internet-worm
db3677e65d11542887adcde7719b7652757a3e32
62f38f58b4fa7643c482077f5ae18fff6fd81915
refs/heads/master
2022-01-16T14:29:52.184528
2018-12-25T08:46:08
2018-12-25T08:46:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,079
py
# -*- coding: utf-8 -*- # Scrapy settings for tencent project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topic...
[ "aaa1058169464@126.com" ]
aaa1058169464@126.com
a7eaaf704b1ca43d729d3db96987a74947dc2a7e
ac42f1d918bdbd229968cea0954ed75250acd55c
/admin/dashboard/openstack_dashboard/dashboards/admin/networks/urls.py
4cd1b60079c3d722609128d7ad46956075f117f1
[ "Apache-2.0" ]
permissive
naanal/product
016e18fd2f35608a0d8b8e5d2f75b653bac7111a
bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7
refs/heads/master
2020-04-03T22:40:48.712243
2016-11-15T11:22:00
2016-11-15T11:22:00
57,004,514
1
1
null
null
null
null
UTF-8
Python
false
false
2,206
py
# Copyright 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "rajagopalx@gmail.com" ]
rajagopalx@gmail.com
3ca35f3537a824472f63b7833626c34abcf1e3e6
befafdde28c285c049b924fa58ce6240a4ae8d3c
/python_solution/Backtracking/40_CombinationSumII.py
3c2f5d5b703d0d38f2bbe30c891c104f20adad1e
[]
no_license
Dimen61/leetcode
3364369bda2255b993581c71e2b0b84928e817cc
052bd7915257679877dbe55b60ed1abb7528eaa2
refs/heads/master
2020-12-24T11:11:10.663415
2017-08-15T14:54:41
2017-08-15T14:54:41
73,179,221
4
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
class Solution(object): def combinationSum2(self, candidates, target): """ :type candidates: List[int] :type target: int :rtype: List[List[int]] """ enable_lst = [False for i in range(target+1)] enable_lst[0] = True candidates.sort() f...
[ "dimen61@gmail.com" ]
dimen61@gmail.com
8c951a4ff5799e9f19a66c7679c2cbb6760522b1
593ecc21a7164ec293f23d75423e71ab3d9f3c54
/LC29.py
4851f8eb59c6ba7f464b3e832b78b17bb3b30c3a
[]
no_license
luckmimi/leetcode
e297c11960f0c72370523e5594d789bc4d55cf7c
2257c6202e823a5cd71b630441c430f1bd08a896
refs/heads/master
2022-07-11T22:36:02.634148
2022-06-30T22:57:20
2022-06-30T22:57:20
214,880,666
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
class Solution: def divide(self, dividend: int, divisor: int) -> int: sign = -1 if (dividend < 0) ^ (divisor < 0) else 1 a = abs(dividend) b = abs(divisor) res = 0 while b<= a: mul = 1 tmp = b while a >= (tmp <<1): ...
[ "noreply@github.com" ]
luckmimi.noreply@github.com
5fd1184dce2377d92e2ff473b987d718c97bf42f
5bd3122d230471b048429f5e9c49a0b39c8a54fc
/Atcoder_contests/ARC/R102A.py
5e0b5a9bf32372b1adfd5381f0b6c1bc75432986
[]
no_license
nao1412/Competitive_Programing_Codes
e230e2fa85027e41c5ee062083801bb299effe9b
98c29b5ba75e75502cf27fcf365a7aedcd6c273c
refs/heads/main
2023-06-05T18:45:59.733301
2021-06-23T15:02:25
2021-06-23T15:02:25
374,061,897
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
import sys sys.setrecursionlimit(10**7) # 再帰回数を増やす import math def I(): return int(input()) def LI(): return list(map(int, input().split())) def MI(): return map(int, input().split()) def S(): return input() def LS(): return list(map(str, input().split())) def H(n): return [input() for i in range(n)] mod = 10**9 + 7 d...
[ "naoya_greeeen_0720@icloud.com" ]
naoya_greeeen_0720@icloud.com
b78816d355385165c2d46725802b6c6001eae314
b1c99061474c4e2f2653f6f3d83931c949c58b13
/Basic/chapter3/ReplaceTest.py
1f7aca0428b31758f691b5eb62156031c05dd93f
[]
no_license
hyperaeon/python
df75346040a5ccc588e21b0d761493c59e1a4fe3
21d10ef7af3227d29092a6720666c0db8e418ec4
refs/heads/master
2016-09-14T08:58:53.794960
2016-04-26T05:34:56
2016-04-26T05:34:56
57,100,745
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
__author__ = 'hzliyong' cookie = '_da_ntes_uid=3LhpAfObU48aiOR0b28yZYXv;' cookie = cookie.replace(';','') print(cookie) list type = 'a' if type == 'a': list = 'type a' if type == 'b': list = 'type b' print(list)
[ "hzliyong@corp.netease.com" ]
hzliyong@corp.netease.com
b7b297c84c0c3d1db89a06f2929ee93d987e0691
eab1abf41e3e1bd276258be7aedfb4f2dfcc1b1e
/web/mydjango/geoapp/admin.py
3d75606cf3e3ff9b2630865dc8782c03b65cc335
[]
no_license
javiermaly/docker-python3-django2-postgres-postgis-geodjango-nginx
1732e0df8d1bd4624b3385ac6757b48060814814
8ea5f2c9ed90013bab76b468d44e7cbabf8122f6
refs/heads/master
2021-11-25T14:47:09.901801
2018-03-26T01:03:39
2018-03-26T01:03:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from django.contrib import admin from .models import GeoAlgo @admin.register(GeoAlgo) class GeoAlgoAdmin(admin.ModelAdmin): list_display = ['nombre'] search_fields = ['nombre']
[ "andres@data99.com.ar" ]
andres@data99.com.ar
3c0948318554ab6edf9a4f53a5192b3d04e696dd
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vnet_gateway/_list_learned_routes.py
789b238597180231c9dcdc90049d592a0ae04769
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
6,877
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # # Code generated by aaz-dev-tools # --------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
e7d33cb382cca997ef56c3849ba3489bc73be785
fd90b8efa1daaec44b54797e549e0f738f4a5897
/jianzhioffer/16. 数值的整数次方.py
b6c886f4358eab1f50ae4aa820f45932b011e28a
[]
no_license
ddz-mark/LeetCode
2a622eeb655398ca9ebd9feee93a52cd114a77c4
d557faf87374ad8c65634ee9d9e572b88a54913a
refs/heads/master
2021-07-12T06:58:57.162657
2021-04-18T13:25:03
2021-04-18T13:25:03
244,403,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,809
py
# 实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。 # # 示例 1: # # 输入: 2.00000, 10 # 输出: 1024.00000 # 示例 2: # # 输入: 2.10000, 3 # 输出: 9.26100 # 示例 3: # # 输入: 2.00000, -2 # 输出: 0.25000 # 解释: 2-2 = 1/22 = 1/4 = 0.25 # 思路一:优化方法,将指数分为奇数和偶数,偶数的话可以 x=x*x # 判断奇偶的方法:对于(m+n) & 1,若结果为0,则(m+n)是偶数;若结...
[ "dudaizhong@126.com" ]
dudaizhong@126.com
a30be694eca63a88eff2b727822bab6367cf71fe
d0dfd680e92e9b32f24e6e034571ad4323a58103
/src/yeahml/information/write_info.py
e25421e67c2746d55a8337851f10397129d59851
[ "Apache-2.0" ]
permissive
yeahml/yeahml
6d1523d01300532f19c54d8e9c320420df66ee5c
b51faff6625db5980151a4a5fac7bb49313df5c1
refs/heads/master
2023-08-11T16:49:41.181953
2020-11-14T20:33:58
2020-11-14T20:33:58
137,613,449
4
1
Apache-2.0
2023-06-02T18:45:48
2018-06-16T22:11:19
Python
UTF-8
Python
false
false
1,138
py
import json import pathlib from typing import Any, Dict def write_build_information( model_cdict: Dict[str, Any], meta_cdict: Dict[str, Any] ) -> bool: full_exp_path = ( pathlib.Path(meta_cdict["yeahml_dir"]) .joinpath(meta_cdict["data_name"]) .joinpath(meta_cdict["experiment_name"]) ...
[ "jackbburdick@gmail.com" ]
jackbburdick@gmail.com
f60472dc9f2c47ee9077d7de07554b3dae6f0215
5c72f7709e501bd0ca3c5dc1e1f21cfffda13582
/rebench/model/measurement.py
40af4d69df6564115af83afce35a6769e7585c55
[]
no_license
lhoste-bell/ReBench
74ccb400aa5f262b56659afac3b7db873bd6a8d2
0f5c678b045b5208e9a2bed01629c780bef52da5
refs/heads/master
2021-01-17T07:57:14.440676
2016-05-23T19:25:58
2016-05-23T19:25:58
60,706,933
0
0
null
2016-06-08T15:06:26
2016-06-08T15:06:25
null
UTF-8
Python
false
false
2,563
py
# Copyright (c) 2009-2014 Stefan Marr <http://www.stefan-marr.de/> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, cop...
[ "git@stefan-marr.de" ]
git@stefan-marr.de
ce4e263dde23b1fdcc64494a2f9403ddfdfb1d07
f5f40cee05de885ee059bcf4760e16f3f01ed23c
/ims/exceptions.py
c359b0a8626603fd8084e35af12b1dcce84a8c5e
[]
no_license
MarsWizard/imagebank
68693207d71024bd0cdc608984d80fc0c7b6f751
916a9f087194052e77751fd8d52c930e77a7b04d
refs/heads/master
2021-04-17T16:57:55.356760
2020-10-20T05:34:23
2020-10-20T05:34:23
249,460,889
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
ERROR_OBJECT_NOT_FOUND = 10001 PARAMETER_REQUIRED = 10002 INVALID_IMAGE_FILE = 10003 class ImsException(BaseException): def __init__(self, error_code, error_msg): self.error_code = error_code self.error_msg = error_msg class InvalidImageFile(ImsException): def __init__(self): ...
[ "pbleester@gmail.com" ]
pbleester@gmail.com
477f89560ab67fce9dddcc436863915129dc25bd
707bd0e873ae25146f1341b40d8efbf5134025af
/unifypage/migrations/0004_auto_20161021_0933.py
781e95f7baa886a438135233d4469070f9415423
[]
no_license
yosmangel/djangoLn2x
76acd748adfddb5b21ad3e0342e3d7eb19b81bc9
24d068458e8271aacfa98d762c0dc117e65d41cf
refs/heads/master
2021-04-27T07:55:36.488176
2017-06-01T17:48:26
2017-06-01T17:48:26
122,641,881
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-21 08:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('unifypage', '0003_auto_20161020_1746'), ] operations = [ migrations.RemoveF...
[ "yosmangel_yk@hotmail.com" ]
yosmangel_yk@hotmail.com
f2b7180d176b4eec46c3794ea9526f5ec48beb91
228ebc9fb20f25dd3ed2a6959aac41fd31314e64
/google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py
3405e5f21603a2bae9a6b0b1b8a675b832545a71
[ "Apache-2.0" ]
permissive
orionnye/python-aiplatform
746e3df0c75025582af38223829faeb2656dc653
e3ea683bf754832340853a15bdb0a0662500a70f
refs/heads/main
2023-08-03T06:14:50.689185
2021-09-24T03:24:14
2021-09-24T03:24:14
410,091,957
1
0
Apache-2.0
2021-09-24T20:21:01
2021-09-24T20:21:00
null
UTF-8
Python
false
false
7,763
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
orionnye.noreply@github.com
2f320639bf0c7b231d588ce8050002ed8d7f888e
eb52ecd946dc6c2e4d7bd63a27bbfbc587ccbe79
/doc/source/conf.py
7da23a679516396f631dd434f1640595a4a9aab4
[ "Apache-2.0" ]
permissive
dtroyer/osc-choochoo
5ee7b124b7c53c44aac5651dde950e11778e1653
57119ab84528933da9cbcd57dcd4f5b842a58186
refs/heads/master
2021-09-08T00:06:58.580823
2018-03-03T19:20:07
2018-03-03T19:36:37
103,709,841
1
1
Apache-2.0
2018-03-03T13:28:05
2017-09-15T23:34:08
Python
UTF-8
Python
false
false
2,903
py
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
[ "dtroyer@gmail.com" ]
dtroyer@gmail.com
eeca7667162158e4c128fc7a5beedc8e432f8d53
4882e66d296cb0e5dab21de1170e13f8c54a6c9c
/Exercicios/2-ex7.py
0e2b488de4c6e268228bb55c516ec4f10b0faca2
[]
no_license
felipemanfrin/NLP
d6eac822fc919f93a1146c004540f62fe9c83086
45424ca49504d5f11e13f8d97829a0d5a9926bc2
refs/heads/master
2023-01-21T12:16:56.081979
2020-12-02T21:20:30
2020-12-02T21:20:30
268,633,901
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
import spacy from spacy.matcher import Matcher from spacy.matcher import PhraseMatcher nlp = spacy.load('en_core_web_sm') matcher = PhraseMatcher(nlp.vocab) pattern = ['swimming vigorously'] phrase_patterns = [nlp(text) for text in pattern] matcher.add('SwimmingVigorously', None, *phrase_patterns) with open('../UPDATE...
[ "felipemanfrin@gmail.com" ]
felipemanfrin@gmail.com
57af349162a6ec2e90c73196d07d293ccd657ef7
e97c5e5beb22444b7eabd743a35493ab6fd4cb2f
/nbs/15_gsa_gls/20-null_simulations/20_gls_phenoplier/profiling/py/01_03-gls-profiling-new_code.py
419a1aae91420228e40cf2683fc7fa6979628e86
[ "BSD-2-Clause-Patent" ]
permissive
greenelab/phenoplier
bea7f62949a00564e41f73b361f20a08e2e77903
b0e753415e098e93a1f206bb90b103a97456a96f
refs/heads/main
2023-08-23T20:57:49.525441
2023-06-15T06:00:32
2023-06-22T16:12:37
273,271,013
5
2
NOASSERTION
2023-06-20T20:35:45
2020-06-18T15:13:58
Jupyter Notebook
UTF-8
Python
false
false
1,943
py
# --- # jupyter: # jupytext: # cell_metadata_filter: all,-execution,-papermill,-trusted # formats: ipynb,py//py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.8 # kernelspec: # display_name: Python 3 (ip...
[ "miltondp@gmail.com" ]
miltondp@gmail.com
09b56da17b552a715728664e0d4b355d51787a27
179140ef3ac111af7645636b5408894a3b61094f
/camera_trap_classifier/data/tfr_encoder_decoder.py
2cf32feeda4cd2d78f8897e135b88d0269e7e2f9
[ "MIT" ]
permissive
YunyiShen/camera-trap-classifier
1d9bc3431ed31a00edfcd8fa4323fcf110ecc514
95f5f2db1c61f401e2408b8a9bfb6c069fa1a98e
refs/heads/master
2020-12-04T06:42:24.552725
2020-01-03T23:01:44
2020-01-03T23:01:44
231,662,686
0
0
MIT
2020-01-03T20:47:03
2020-01-03T20:47:02
null
UTF-8
Python
false
false
7,590
py
""" Class To Encode and Decode TFRecords""" import logging import tensorflow as tf from camera_trap_classifier.data.utils import ( wrap_int64, wrap_bytes, wrap_dict_bytes_list, wrap_dict_int64_list, _bytes_feature_list, _bytes_feature_list_str) from camera_trap_classifier.data.image import dec...
[ "will5448@umn.edu" ]
will5448@umn.edu
93ee6822569c5b7e9169ffac1e02ef95e6d5c928
412b0612cf13e9e28b9ea2e625975f3d9a2f52b6
/2017/18/double_computer.py
15e82c468b7a8a9ed25058bcadfb08c381a40aa1
[]
no_license
AlexClowes/advent_of_code
2cf6c54a5f58db8482d1692a7753b96cd84b6279
d2158e3a4edae89071e6a88c9e874a9a71d4d0ec
refs/heads/master
2022-12-24T19:02:07.815437
2022-12-23T17:35:53
2022-12-23T17:35:53
225,618,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
from collections import defaultdict import operator from queue import Queue def prog(program, program_id, snd_queue, rcv_queue): registers = defaultdict(int) registers["p"] = program_id value = lambda x: registers[x] if x.isalpha() else int(x) instruction_pointer = 0 while 0 <= instruction_pointer...
[ "alexclowes@gmail.com" ]
alexclowes@gmail.com
08f3bcef3f8cd09135340a9e0b5b59eba23f21d6
a6cba5b8b36f3f4ef80d7351725da0bc8ddbfad4
/NM/cp/main.py
e362e92e7130e9ddfb28811f5a86ec2d6613187c
[]
no_license
tutkarma/mai_study
7de61a406c7c5701ea9bbea7da687cc147653e53
39359eb8b5701c752d1f4e8e0b26911e50df12ab
refs/heads/master
2023-03-15T18:28:05.814809
2022-01-18T08:40:39
2022-01-18T08:40:39
103,191,526
38
99
null
2023-03-04T02:20:21
2017-09-11T21:46:56
Jupyter Notebook
UTF-8
Python
false
false
5,366
py
import argparse import json from utils import save_to_file from mpi4py import MPI import numpy as np def read_data(filename, need_args): init_dict = {} with open(filename, 'r') as json_data: data = json.load(json_data)[0] # ! for arg in need_args: if arg not in data: ...
[ "tutkarma@gmail.com" ]
tutkarma@gmail.com
575d02aa9fb79160437e642f6d8501b4b1d3b89c
0f556b9d4e250df73bf1e0929dbd4afad51e82fe
/person/3/person.py
18a8f9d43f414810584c840c8d787016b5ca9207
[]
no_license
unabl4/PythonCodeClub
0ef1cb4d145860a4fda528c2eea513d0ba6b8327
72d5887342c1e0b304307a0e0ac9eb78f0202c35
refs/heads/master
2021-04-30T04:42:03.266029
2019-02-18T22:09:12
2019-02-18T22:09:12
121,541,065
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
from datetime import date class Person: def __init__(self, first_name, last_name, birth_date): self.first_name = first_name self.last_name = last_name self.birth_date = birth_date def age(self): return int((date.today()-self.birth_date).days // 365.25) def full_name(self): ...
[ "unabl4@gmail.com" ]
unabl4@gmail.com
3705d6628ca7f9c0175c12c5e79138b0bc3be4c0
1eee2c9c105148904d0fb47cee227cfd20241b76
/alpha/alpha_beats_28.py
5bfdccc7f1e53b5628dc5209c82fea3bfca59b63
[]
no_license
fred-hz/zeta
be9f6f466b75767cc1a45a4004d1c84e5d559b6b
e7b631447fff6e58928d6ac15702338b7cc8e3e7
refs/heads/master
2021-09-05T01:03:31.387379
2018-01-23T04:15:58
2018-01-23T04:15:58
118,187,345
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
from alpha.alpha_base import AlphaBase import numpy as np import util class AlphaBeats_28(AlphaBase): def initialize(self): self.delay = int(self.params['delay']) self.is_valid = self.context.is_valid self.alpha = self.context.alpha self.cps = self.context.fetch_data('adj...
[ "zibo_zhao@berkeley.edu" ]
zibo_zhao@berkeley.edu
5f042357ce4755b0b73969f346665bf0304b6569
7d8a4d58fc4c5a73ce8c85e513253a86d6290d3b
/script.module.eggscrapers/lib/eggscrapers/modules/workers.py
0699f6d316130d4fa9ee280485fcae4f73959dcd
[]
no_license
bopopescu/icon
cda26d4463d264b7e2080da51f29d84cc48dfb81
e385a6225dd11b7fea5a11215d655cf5006bb018
refs/heads/master
2022-01-12T19:00:04.951604
2019-07-10T05:35:44
2019-07-10T05:35:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
# -*- coding: utf-8 -*- ''' Eggman Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progra...
[ "kodi15887@gmail.com" ]
kodi15887@gmail.com
9500aa334d1daba13d7d173c5f462b375f143dd5
d063684dd03293eb0f980568af088d26ab087dbe
/debadmin/migrations/0075_auto_20191108_1225.py
dd5f3b44bf87cdc1a4bd8999b7965e71e5bee1f2
[]
no_license
abhaysantra/debscientific
ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2
88ec65616fd24052bbdbba8b00beba85493f5aea
refs/heads/master
2020-11-26T22:09:33.820247
2019-12-20T07:58:43
2019-12-20T07:58:43
229,213,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# Generated by Django 2.2.6 on 2019-11-08 06:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('debadmin', '0074_auto_20191107_1914'), ] operations = [ migrations.AddField( model_name='order_details', ...
[ "abhay.santra@gmail.com" ]
abhay.santra@gmail.com
8f06edb067427872d40d29ef97e33cffafcc5c31
56b36ddf920b5f43e922cb84e8f420f1ad91a889
/Leetcode/Leetcode-Minimum Area Rectangle.py
bac5a430a77fc7b720b63b147c68a99ab884d1bd
[]
no_license
chithien0909/Competitive-Programming
9ede2072e85d696ccf143118b17638bef9fdc07c
1262024a99b34547a3556c54427b86b243594e3c
refs/heads/master
2022-07-23T16:47:16.566430
2020-05-12T08:44:30
2020-05-12T08:44:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
from collections import defaultdict class Solution: def minAreaRect(self, points) -> int: if len(points) <= 3: return 0 x= defaultdict(set) for xC, yC in points: x[xC].add(yC) m = float('inf') for p1 in points: for p2 in points: if p1[0...
[ "ntle1@pipeline.sbcc.edu" ]
ntle1@pipeline.sbcc.edu
7a5f37ad2f3ff8cf53a9b3b4ca81d5f74320aa45
649078315f93e2d76fad95c59f234701ef055cb8
/test/test_baseSubscriber.py
820a50160e7e984fa738df7e2c5d59094e7878bd
[ "MIT" ]
permissive
jaebradley/nba_player_news
207f4555f662c9187e9ab931774a0863556529f8
35ac64c369c33f1232fa76bd5bcc1c0704d868bb
refs/heads/master
2022-11-22T08:25:08.993567
2017-06-14T00:36:52
2017-06-14T00:36:52
89,762,719
2
0
MIT
2022-11-11T17:00:18
2017-04-29T04:06:01
Python
UTF-8
Python
false
false
353
py
from unittest import TestCase from nba_player_news.data.subscribers import BaseSubscriber class TestBaseSubscriber(TestCase): subscriber = BaseSubscriber(subscription_channel_name="foo") def expect_process_message_to_not_be_implemented(self): self.assertRaises(NotImplementedError, self.subscriber.p...
[ "jae.b.bradley@gmail.com" ]
jae.b.bradley@gmail.com
46dfde8b2041244d6ae133d01572576d6944bc71
98f7bb1314330138f0cb9901e764f6da8cd5605b
/5_python基础/3_字典.py
15720e3b4ac0d7bcd22295c0e97684183fa0bb02
[]
no_license
1071183139/biji
c964e197ea0845dbfdd98213743130668770f929
02c2e6f69ceb557448b959c44723b4bf498e90c9
refs/heads/master
2022-12-17T06:46:27.920479
2019-10-26T12:02:54
2019-10-26T12:02:54
217,701,979
0
0
null
2022-12-07T23:55:02
2019-10-26T11:57:28
Python
UTF-8
Python
false
false
2,053
py
# 根据键访问值 info = {'name': '班长', 'id': 100, 'sex': 'f', 'address': '地球亚洲中国北京'} # print(info['name']) # print(info['names']) # 键不存在会报错 # get 获取 设置默认值 不存在不会报错 # print(info.get('id')) # print(info.get('ids','没有这个键')) # 常见的操作 (修改,增减,删除) # 修改元素 # new_id=input('请输入元素') # info['id']=new_id # print(info1) # ...
[ "1071183139@qq.com" ]
1071183139@qq.com
fa14b434145cd963ca27a6eef951a8dff89d13d1
62bbfb6c50bba16304202aea96d1de4990f95e04
/dependencies/pulumi_aws/secretsmanager/secret_policy.py
81618991d5edb3f606dbf67e2ea3567c4dac6497
[]
no_license
adriell/lambda-autoservico-storagegateway
b40b8717c8de076e61bbd422461c7d624a0d2273
f6e3dea61b004b73943a5438c658d3f019f106f7
refs/heads/main
2023-03-16T14:41:16.821675
2021-03-11T03:30:33
2021-03-11T03:30:33
345,865,704
0
1
null
null
null
null
UTF-8
Python
false
false
5,885
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
[ "adriel@infoway-pi.com.br" ]
adriel@infoway-pi.com.br
553f3d89c11483b36ae1a20c082db45382ae9e15
3b786d3854e830a4b46ee55851ca186becbfa650
/SystemTesting/pylib/nsx/vsm/edge/edge_sslvpnconfig_schema/edge_sslvpnconfig_layout_configuration_schema.py
68a4bace81fb3982ea88b3dfde93326a01c98ec6
[]
no_license
Cloudxtreme/MyProject
d81f8d38684333c22084b88141b712c78b140777
5b55817c050b637e2747084290f6206d2e622938
refs/heads/master
2021-05-31T10:26:42.951835
2015-12-10T09:57:04
2015-12-10T09:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import base_schema class SSLVPNConfigLayoutConfigurationSchema(base_schema.BaseSchema): _schema_name = "layoutConfiguration" def __init__(self, py_dict=None): """ Constructor to create SSLVPNConfigLayoutConfigurationSchema object @param py_dict : python dictionary to construct this obj...
[ "bpei@vmware.com" ]
bpei@vmware.com
c47ab8e7d986152e8f436c75f1e649796e2231bb
054bc8696bdd429e2b3ba706feb72c0fb604047f
/python/utils/CheckInRange/CheckInRange.py
b984a85c12b190cb26df2a3aebfbf2bf794a9fde
[]
no_license
wavefancy/WallaceBroad
076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f
fbd00e6f60e54140ed5b4e470a8bdd5edeffae21
refs/heads/master
2022-02-22T04:56:49.943595
2022-02-05T12:15:23
2022-02-05T12:15:23
116,978,485
2
3
null
null
null
null
UTF-8
Python
false
false
2,555
py
#!/usr/bin/env python3 """ Keep/Remove records in range. @Author: wavefancy@gmail.com Usage: CheckInRange.py -r file -c int [-e] CheckInRange.py -h | --help | -v | --version | -f | --format Notes: 1. Read content from stdin, and output result to stdout. 2. Column inde...
[ "wavefancy@gmail.com" ]
wavefancy@gmail.com
82a535bcf1ac49a0530f8b1435d3329a2280a09b
118124f2e903dab8a425c6d99e7ac8fa6f559aa4
/devel/py-repoze.xmliter/files/patch-setup.py
ccbbb76a7d9156aabc0ee41314c870b7f15170f0
[]
no_license
mneumann/DPorts
30b3abfdf58b63698bc66c8614073e3366b5fd71
d511cdf563ed8133ea75670bfa6e3e895495fefd
refs/heads/master
2020-12-26T00:46:41.527700
2015-01-27T14:54:22
2015-01-27T14:54:22
28,131,197
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
--- setup.py.orig 2014-09-21 15:40:44 UTC +++ setup.py @@ -43,7 +43,7 @@ setup(name='repoze.xmliter', author_email="repoze-dev@lists.repoze.org", url="http://www.repoze.org", license="BSD-derived (http://www.repoze.org/LICENSE.txt)", - packages=find_packages(), + packages = ['repoze', 're...
[ "nobody@home.ok" ]
nobody@home.ok
024d663ec6247259c4849e881e211d74a27a846a
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Generators/PowhegControl/examples/processes/MC15.101010.PowhegPythia8EvtGen_A14NNPDF23_VBF_W_example.py
0eed1637cfa4f4c7d9a0b3470d317a5272088e7b
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration #-------------------------------------------------------------- # EVGEN configuration #-------------------------------------------------------------- evgenConfig.description = "POWHEG+Pythia8 VBF W production with A14 NNPDF2.3 tune." evgenConfig...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
7d77907d67969dbeb7a841f56e36294174ac81b0
2e2cb71a102c144427f3a3d4c3f2717472e1a2ac
/SPD.py
6257cf5234470ceb1b82217a8de233f0b56533d4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pdhung3012/RegGNN
740af76d90740c38f6be502ed6f9495b6d59a4a8
a383562121d205f7bb86751242882b7e815eee3f
refs/heads/main
2023-07-08T13:43:41.903844
2021-08-16T07:55:31
2021-08-16T07:55:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,128
py
''' Tools for computing topological features in Riemannian space. Code taken from https://morphomatics.github.io/, created by Felix Ambellan and Martin Hanik and Christoph von Tycowicz, 2021. ''' import numpy as np import numpy.random as rnd import numpy.linalg as la from scipy.linalg import logm, expm_frechet from...
[ "islem.rekik@gmail.com" ]
islem.rekik@gmail.com
4d4bf41cfc6668556e18405c2b1da9e6f85f8787
e0e96b8d26cd12c16a3e4a6265b6bceb11c4b1f0
/17day/updtest.py
2d6ca62c4a6dff1d92723fc2cea303250088b3cf
[]
no_license
superwenqistyle/2-2018python
4419bc4ae4700e5b7839c4974106e03fc33e85f8
76e5ea72413abfa774ad61b3bdff76eba0c5e16c
refs/heads/master
2020-03-13T11:08:50.860361
2018-05-22T11:17:39
2018-05-22T11:17:39
131,096,306
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from socket import * from threading import Thread from time import ctime Id="" port=0 updSocket=None def send(): while True: message=input("请输入内容:") updSocket.sendto(message.encode("gb2312"),(Id,port)) def receive(): while True: content=updSocket.recvfrom(1024) print("%s-%s\n请输入内容:"%(content[0].decode("gb2...
[ "1623515120@qq.com" ]
1623515120@qq.com
1626df6646682430eb9d47c57614e0fc6c70476f
194124b184101bbeb18c00482a1f60a6dd32eebf
/blog/migrations/0002_category.py
a811ab55f0b35be64c8208579dfff5eb7e36a19a
[]
no_license
fc-wsd/s4-instablog
2fc758461f09fe124b28d86d29d4df429ef72040
8e38b07fe7dae0378fda228f2cfa7752f93254c9
refs/heads/master
2021-01-10T12:13:09.293036
2015-12-12T06:13:34
2015-12-12T06:13:34
45,733,935
2
2
null
null
null
null
UTF-8
Python
false
false
660
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
[ "kay@hannal.net" ]
kay@hannal.net
01b828d2865b4a3207556680e892c62aa6f28e15
2b468b1d22ecc5668529255676a1d43936829074
/codes/personal_backend/tuoen/abs/service/product/__init__.py
43853f724363e33396251d2f10c21af53b191a1a
[]
no_license
MaseraTiGo/4U
5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c
f572830aa996cfe619fc4dd8279972a2f567c94c
refs/heads/master
2023-07-26T09:44:21.014294
2023-07-13T03:43:34
2023-07-13T03:43:34
149,217,706
0
0
null
2020-06-05T20:38:16
2018-09-18T02:34:29
Python
UTF-8
Python
false
false
3,304
py
# coding=UTF-8 ''' Created on 2016年7月22日 @author: Administrator ''' import hashlib import datetime import json import random from django.db.models import Q from tuoen.sys.core.exception.business_error import BusinessError from tuoen.sys.utils.common.split_page import Splitor from model.models import ProductModel f...
[ "344627181@qq.com" ]
344627181@qq.com
919890dfa27b2785488ab4ec815c2d7c9bf0faa7
9cac3bc1c61f4de32251072e49c50b0543450490
/examples/find_available_seattlegeni_vessels.py
412176990dffaec0800a9c6acb8ef925e3c14bd2
[ "MIT" ]
permissive
SeattleTestbed/experimentmanager
40b036028809fa77dcdec804d58853f679e326de
31c52f35fba1e367b1177b3a95ae65b4dd0e1a1c
refs/heads/master
2020-12-25T17:34:49.713296
2017-05-15T11:37:36
2017-05-15T11:37:36
20,136,879
0
5
null
2016-08-29T09:00:07
2014-05-24T18:43:36
Python
UTF-8
Python
false
false
4,356
py
""" This script will look up all active nodes that are part of a testbed managed by SeattleGENI and determine which vessels on those nodes are available. This information could be used in various ways, one of them being to gather information about those node locations, such as latency from a certain location, and decid...
[ "USER@DOMAIN" ]
USER@DOMAIN
871588cf841884f7fc798cea219e466dad82e5ed
c123cb27fbb807acbc4a8bc6148e539dc8c3c3a3
/view/Ui_CadastrePageReportDialog.py
bf2daf3ef71c709552d9ebe8c80c5b11dea33fb7
[]
no_license
ankhbold/lm3_mgis
0b1e5498adc3d556b7ea0656ae9fdc02c47fc0f7
a2b4fbdcf163662c179922698537ea9150ba16e5
refs/heads/master
2020-08-06T20:17:49.049160
2019-10-08T05:35:05
2019-10-08T05:35:05
213,139,587
0
0
null
null
null
null
UTF-8
Python
false
false
6,886
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\work\LAND_MANAGER\lm2\view\CadastrePageReportDialog.ui.' # # Created by: PyQt5 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf...
[ "aagii_csms@yahoo.com" ]
aagii_csms@yahoo.com
25622946d4cc694e63901dc2980ec2fa9f1ae137
57c62abd33f8b508e357ca8631a160ce85a7f340
/ggNtuplizer/test/crab_submit/jobs/FullXsection_GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8/crab_FullXsection_GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8.py
4470aec7aea4019d8df76db06409c83c17dfeaf4
[]
no_license
jainshilpi/aNTGC_ggNtuplizer
8973ce3cdab293317fd928679b14038f03c10976
7153d73fbee35969dad0d85c6517e577a0546566
refs/heads/master
2022-09-18T07:39:40.246699
2020-04-20T13:03:20
2020-04-20T13:03:20
267,979,045
1
1
null
2020-05-30T00:09:36
2020-05-30T00:09:36
null
UTF-8
Python
false
false
2,178
py
from CRABClient.UserUtilities import config, getUsernameFromSiteDB import sys config = config() #**************************submit function*********************** from CRABAPI.RawCommand import crabCommand from CRABClient.ClientExceptions import ClientException from httplib import HTTPException def submit(config): t...
[ "abrar.discloses@gmail.com" ]
abrar.discloses@gmail.com
f806b32b55a9145c4c04c121ccedc5edfff7e060
632d7759536ed0726499c2d52c8eb13b5ab213ab
/Data/Packages/mdpopups/tests/validate_json_format.py
0afbb2d170664281507ba611c0927e38799d1ae9
[ "MIT" ]
permissive
Void2403/sublime_text_3_costomize
e660ad803eb12b20e9fa7f8eb7c6aad0f2b4d9bc
c19977e498bd948fd6d8f55bd48c8d82cbc317c3
refs/heads/master
2023-08-31T21:32:32.791574
2019-05-31T11:46:19
2019-05-31T11:46:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,661
py
""" Validate JSON format. Licensed under MIT Copyright (c) 2012-2015 Isaac Muse <isaacmuse@gmail.com> """ import re import codecs import json RE_LINE_PRESERVE = re.compile(r"\r?\n", re.MULTILINE) RE_COMMENT = re.compile( r'''(?x) (?P<comments> /\*[^*]*\*+(?:[^/*][^*]*\*+)*/ # mu...
[ "guan2296107714@126.com" ]
guan2296107714@126.com
e191dcd55943188856e0aa6d20abcb3ae22cd4d2
c5698844e4c5cd6428d25f5a97a2f4ad069df251
/twitter/publicar desde python/read.py
a394d4c896e493b5d9f689dc1751a7b77d468356
[]
no_license
jrartd/Python-tools
1ade026dcc9b3987bb7a6af130403895a8456d3c
361031a2d108e048d267bf386a8a703359a81321
refs/heads/master
2022-12-21T23:38:53.038535
2018-02-09T18:18:10
2018-02-09T18:18:10
114,409,529
0
1
null
2022-12-12T09:18:07
2017-12-15T20:41:15
HTML
UTF-8
Python
false
false
458
py
from twitter import * access_token = "712533602102284288-QGxqYcFiQlGZGTaoNIgHgq2KZxqZeeH" access_token_secret = "rlH5ItRHtlguzChQbIvLDo1yYCu47liEtq8fdVgeOZpb9" consumer_key = "VWe4b0p7vRcVS06gbJyS83dIS" consumer_secret = "PjkoSJ4YxPXo4V9Uk7bazq4y507e6zBr96q7u2OlJeP1aVZd7w" texto_tweet = input("Ingrese el texto a twitt...
[ "you@example.com" ]
you@example.com
a1590dd5a7d854d633c6cc4a59cd757b06b26e95
84c4474a88a59da1e72d86b33b5326003f578271
/saleor/graphql/app/mutations/app_retry_install.py
64faee9ee45caa39c2e77961854e66c1815f20c1
[ "BSD-3-Clause" ]
permissive
vineetb/saleor
052bd416d067699db774f06453d942cb36c5a4b7
b0d5ec1a55f2ceeba6f62cf15f53faea0adf93f9
refs/heads/main
2023-07-20T02:01:28.338748
2023-07-17T06:05:36
2023-07-17T06:05:36
309,911,573
0
0
NOASSERTION
2020-11-04T06:32:55
2020-11-04T06:32:55
null
UTF-8
Python
false
false
2,274
py
import graphene from django.core.exceptions import ValidationError from ....app import models from ....app.error_codes import AppErrorCode from ....app.tasks import install_app_task from ....core import JobStatus from ....permission.enums import AppPermission from ....webhook.event_types import WebhookEventAsyncType f...
[ "noreply@github.com" ]
vineetb.noreply@github.com
0573b6563ad45c09808049f4fdd2f87ff082fce9
ba157236151a65e3e1fde2db78b0c7db81b5d3f6
/String/longest_group_positions.py
f01ef3284224992f2d915fed2ff79a7296bfda75
[]
no_license
JaberKhanjk/LeetCode
152488ccf385b449d2a97d20b33728483029f85b
78368ea4c8dd8efc92e3db775b249a2f8758dd55
refs/heads/master
2023-02-08T20:03:34.704602
2020-12-26T06:24:33
2020-12-26T06:24:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
class Solution(object): def largeGroupPositions(self, s): ans = [] i = 0 for j in range(len(s)): if j == len(s) - 1 or s[j] != s[j+1]: if j-i+1 >= 3: ans.append([i,j]) i = j+1 return ans """ :type s: str ...
[ "spondoncsebuet@gmail.com" ]
spondoncsebuet@gmail.com
2a947f6dde626fc5c7a608db41b0b51fbd6eafdb
8d5ba6747531cbd43d63d32265fd608f9081c3b7
/.venv/lib/python2.7/site-packages/indico/core/db/sqlalchemy/custom/unaccent.py
b4838177828f13481121fa0984a94d46e9307b19
[]
no_license
Collinsnyamao/indico
0e433b78803afae5b1ac90483db1f3d90ce2fddb
32adf8123e266eb81439b654abc993b98e0cd7f2
refs/heads/master
2020-03-18T04:55:40.386595
2018-06-02T13:45:47
2018-06-02T13:45:47
134,314,163
1
0
null
null
null
null
UTF-8
Python
false
false
3,436
py
# This file is part of Indico. # Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN). # # Indico is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (a...
[ "collins.nyamao@strathmore.edu" ]
collins.nyamao@strathmore.edu
6371e03f7e86aed6d39e751ba81d7471c80155ef
7d2f933ed3c54e128ecaec3a771817c4260a8458
/venv/Lib/site-packages/requests/packages/urllib3/__init__.py
f669e1f517d93579a48a00c7ca81b40ac6d206c5
[]
no_license
danielmoreira12/BAProject
c61dfb1d0521eb5a28eef9531a00e744bfb0e26a
859f588305d826a35cc8f7d64c432f54a0a2e031
refs/heads/master
2021-01-02T07:17:39.267278
2020-02-25T22:27:43
2020-02-25T22:27:43
239,541,177
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
# urllib3/__init__.py # Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt) # # This module is part of urllib3 and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ urllib3 - Thread-safe connection pooling and re-using. """ __author__ = 'Andrey Petrov (a...
[ "danielmoreira12@github.com" ]
danielmoreira12@github.com
f48b6acd7862cead47ba1fafc6a3ebd6557b73be
303bac96502e5b1666c05afd6c2e85cf33f19d8c
/solutions/python3/993.py
d918d769447829914b6898f916ac2d314071b6a7
[ "MIT" ]
permissive
jxhangithub/leetcode
5e82f4aeee1bf201e93e889e5c4ded2fcda90437
0de1af607557d95856f0e4c2a12a56c8c57d731d
refs/heads/master
2022-05-22T12:57:54.251281
2022-03-09T22:36:20
2022-03-09T22:36:20
370,508,127
1
0
MIT
2022-03-09T22:36:20
2021-05-24T23:16:10
null
UTF-8
Python
false
false
430
py
class Solution: def isCousins(self, root: TreeNode, x: int, y: int) -> bool: def dfs(node, parent, depth, mod): if node: if node.val == mod: return depth, parent return dfs(node.left, node, depth + 1, mod) or dfs(node.right, node, depth + 1, mo...
[ "cenkay.arapsagolu@gmail.com" ]
cenkay.arapsagolu@gmail.com
869d4de40b4774adacf3db6705df1c3d7a5ab419
cb2411c5e770bcdd07b170c2bc07f5e0cc72fc86
/Greedy/55. Jump Game.py
6ad22c17c7c535c3c1f269e0caf4426d60a13b2f
[]
no_license
roy355068/Algo
f79cf51662832e33664fc1d2479f79405d586e2e
14febbb5d8504438ef143678dedc89d4b61b07c9
refs/heads/master
2021-05-11T04:32:11.434762
2018-01-30T00:01:26
2018-01-30T00:01:26
117,941,600
0
0
null
null
null
null
UTF-8
Python
false
false
1,905
py
# Given an array of non-negative integers, you are initially positioned at the first index of the array. # Each element in the array represents your maximum jump length at that position. # Determine if you are able to reach the last index. # For example: # A = [2,3,1,1,4], return true. # A = [3,2,1,0,4], return fal...
[ "bochengl@andrew.cmu.edu" ]
bochengl@andrew.cmu.edu
add36c49f08156fa9f65d5e079441f0e3c7f56f7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03168/s086851558.py
7143c7be26364089fb75fade50516b0a34c2696e
[]
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
511
py
import sys def input(): return sys.stdin.readline().rstrip() def main(): n=int(input()) P=list(map(float,input().split())) dp=[[0]*(n+1) for _ in range(n)]#コインi(0-)までで,j枚が表 dp[0][0]=1-P[0] dp[0][1]=P[0] for i in range(1,n): for j in range(i+2): if j==0: dp[i][...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7d442a07bfb8f720507da67a316b7bfbddefbabe
e29b450bf924b983023db41a0cdea97cde129880
/reversible/sinkhorn.py
da994a5c781f3dbf5244c34a45a3d33e8ec14a12
[]
no_license
afcarl/generative-reversible
b9efedad155d9c08f0f299f0b861ff6ff53607cf
e21b0846c654e0e041562f715bc5ddd90dde0e07
refs/heads/master
2020-03-21T03:29:34.655671
2018-05-26T18:53:54
2018-05-26T18:53:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,783
py
import torch as th from reversible.gaussian import get_gauss_samples from reversible.util import log_sum_exp, ensure_on_same_device, var_to_np def sinkhorn_to_gauss_dist(outs, mean, std, **kwargs): gauss_samples = get_gauss_samples(len(outs), mean, std) return sinkhorn_sample_loss(outs, gauss_samples, **kwar...
[ "robintibor@gmail.com" ]
robintibor@gmail.com
89f7995781d60bb6ec3ed228079f873bf72f7ce1
f47df27f960b3c5abebf16145026d20fc81f062b
/dheeranet/views/home.py
9d2568894366f760bc5e482240240503dcf65e9a
[]
no_license
dheera/web-dheeranet
34eec0591872d01afd441ce97a4853c95fde18a8
1faceb4d54d91ae1b7ee3f7e449ee3f224600b08
refs/heads/master
2021-01-22T06:32:12.403454
2017-04-10T20:55:33
2017-04-10T20:55:33
20,196,792
5
3
null
null
null
null
UTF-8
Python
false
false
487
py
from flask import Blueprint, render_template, abort, request from jinja2 import TemplateNotFound from dheeranet import static_bucket from dheeranet.cache import s3_get_cached import json, datetime home = Blueprint('home', __name__,template_folder='../template') @home.route('/') def show(): home_items = json.loads(s...
[ "dheera@dheera.net" ]
dheera@dheera.net
c2ad9a49e4e23ffa98d960a2818b4175b1dece93
b5029b5710f72010690c5e57fe5c045dcff2701c
/books_authors_app/migrations/0001_initial.py
9f233b82732ee72e3c171a7a7c24c182c0d25b6d
[]
no_license
Jallnutt1/first_django_project
2d059ed815227cf5c72af67e4e4074e95edf1508
200b98623292e806a407badf1cb9311e25bd561d
refs/heads/main
2023-04-04T00:50:19.183891
2021-04-13T18:56:03
2021-04-13T18:56:03
357,659,099
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
# Generated by Django 2.2 on 2021-04-09 00:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(aut...
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
d0fa78d37064bf03251c9c6edf18a378195106d5
6196bd8f9226042b4c8e171313e273d1875c3ee4
/up_down_chain/up_down_chain/app/Subseribe/migrations/0002_bidsusersetting_mid.py
d2f23630662918aa99b11057208f625ad32ce97c
[]
no_license
wang18722/Up_down_chain
87230f057dadea95ab8b2760ca756afe00675b26
3c18d5d5727db1562438edea66ef15f54b378e33
refs/heads/master
2022-12-27T09:04:49.976753
2019-07-01T01:19:12
2019-07-01T01:19:12
225,579,284
0
0
null
2022-12-08T01:23:21
2019-12-03T09:22:22
Python
UTF-8
Python
false
false
694
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-06-24 05:29 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): initial = True dependencies = [ migrati...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
2ab9c6aae658796991d04ae8393361738813a7fb
b6233af6a39e7ab500743d6b2ac7d52f68ae3be2
/15/00/2.py
b738c43f76091d7e37910b5e9ab030f6c459d903
[ "CC0-1.0" ]
permissive
pylangstudy/201712
9754526e1d8f1c0519fcce98bc7df803f456cc4e
f18f1251074729c4a3865b113edc89ec06b54130
refs/heads/master
2021-09-02T06:08:08.278115
2017-12-30T23:04:55
2017-12-30T23:04:55
112,670,974
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
import socket, array def send_fds(sock, msg, fds): return sock.sendmsg([msg], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, array.array("i", fds))])
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
2245d137d3c96c0d0184ca4ce3a2b2930945227a
e0980f704a573894350e285f66f4cf390837238e
/.history/news/models_20201124125236.py
70a66f359a9f8e8b4fff11e3efb6146fd18c69f7
[]
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
160
py
from django.db import models from wagtail.contrib.forms.models import AbstractEmailForm # Create your models here. class NewsPage(AbstractEmailForm): te
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
d85e0b393ae8d8ee90e85e1f7704da446a52d993
5e9eba022385185a2c84d60fffe6cdf04421ed1b
/academicos/views.py
e44f4be6e8ae947cd6a615b5209a4e6d14064e29
[]
no_license
lizceth/proyecto-eventos
4a6de50ee7ae7705fb7a81cb4fdbdbe2c9ed9516
b408149a463d130da72bb555237814cc5bb2dbfa
refs/heads/master
2020-06-02T18:21:08.415503
2014-10-14T22:35:26
2014-10-14T22:35:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,361
py
from django.contrib.auth.models import User from django.shortcuts import render, render_to_response, get_object_or_404 from academicos.models import Coordinador, Escuela, Facultad from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from asistentes.models import Persona ...
[ "shanny.liz13@gmail.com" ]
shanny.liz13@gmail.com
c5d9cf121b69761030d0050d73f56d251f3b3b8d
a57eb85856cc93a389b815276765a06019d6f8d4
/manage.py
a187e1a5e09bc71ad51ec80483e4c11d9cced0d9
[ "MIT" ]
permissive
astrofrog/multistatus
205f6ad9a06995bc4b418f6d0de222c4dacfcb79
f63042c9e85cb4e58e3768a65f4684be07e432d1
refs/heads/master
2021-01-10T21:05:40.370555
2014-12-09T10:24:48
2014-12-09T10:24:48
22,805,918
0
1
null
2014-12-09T10:23:13
2014-08-10T09:39:38
Python
UTF-8
Python
false
false
257
py
#!/usr/bin/env python3.4 import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "multistatus.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
10d541866288a328b07bc1a9602e1afcbb87583f
994461efa08e71403b2a1c0598391fddf3b44b87
/june-leetcoding-challenge/d5-random-pick-with-weight.py
65d47a61d6766e106ff6b66178910de5a81e3489
[]
no_license
pkdism/leetcode
26f16f9211ddfdef8e0fe74c9268e6a48da64717
589652ae727331d1f962d22a020fc6ae09bfcea4
refs/heads/master
2020-12-11T15:48:01.116731
2020-08-16T18:31:03
2020-08-16T18:31:03
233,889,125
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
""" Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proportion to its weight. """ import random class Solution: def __init__(self, w: List[int]): self.w = w self.n = len(self.w) self.arr = [] ...
[ "pawan.dwivedi94@gmail.com" ]
pawan.dwivedi94@gmail.com
488eedf2868298347e8fd761a86a7501687b5a22
cc6e8b20a64940f2ad83be6a03134e8b105514e7
/webviz/viz/migrations/0001_initial.py
71fcb033e7e32232e310b0dfc022cfe73f08c521
[ "MIT" ]
permissive
JagritiG/django-webviz
50654c4fe76b1653f64e404c45d674d5d179e236
213489bb3a70019ca9cff5d127fd6d0c06bc61d6
refs/heads/main
2023-04-27T01:21:04.195996
2021-05-16T22:30:04
2021-05-16T22:30:04
353,126,658
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# Generated by Django 3.1.7 on 2021-03-30 18:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Csv', fields=[ ('id', models.AutoField(auto...
[ "jagritigoswami84@gmail.com" ]
jagritigoswami84@gmail.com
f197241de30622889b167ecb7dc068406820dbc8
6061ebee9fbce8eb5b48ed7ccd2aecb196156598
/modulo07-funcoes/exercicios/exercicio04.py
5ebbfcd3edf545e7ffdc636929ca0276708ef06c
[]
no_license
DarioCampagnaCoutinho/logica-programacao-python
fdc64871849bea5f5bbf2c342db5fda15778110b
b494bb6ef226c89f4bcfc66f964987046aba692d
refs/heads/master
2023-02-24T11:45:29.551278
2021-01-26T22:02:49
2021-01-26T22:02:49
271,899,650
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
def aumento(numero, valor): resultado = numero * valor / 100 return resultado + numero resultado = aumento(100, 50) print(resultado)
[ "campagnacoutinho67@gmail.com" ]
campagnacoutinho67@gmail.com
b936c098695eb03ec4c9abb82e78537b33edc5f3
b7a2a80843fa5141ffb9c7b4439f1d2ac713af30
/UT2_Morsen.py
f0f71ad6765a17297467d402ad1566da64d52c4e
[]
no_license
wunnox/python_grundlagen
df1bc2b9b1b561bd6733ccc25305e799a48e714e
fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0
refs/heads/master
2023-05-01T12:19:23.208445
2023-04-16T11:29:01
2023-04-16T11:29:01
222,099,539
2
3
null
2019-12-19T10:56:43
2019-11-16T12:57:54
Python
UTF-8
Python
false
false
450
py
#!/usr/local/bin/python3 #################################################### # # Uebung UT2_Morsen.py: # Erstellen Sie ein Programm, welches anhand einer # Morsetabelle einen Text in Morsecode ausgibt. # Verwenden Sie hierzu das Modul UT2_Morsecodes.py # #################################################### import UT2...
[ "peter.christen@cssgmbh.ch" ]
peter.christen@cssgmbh.ch
1c3ea9c37220f04f5ec059b8d964947f7d2508f6
c31e69b763e1b52d3cefa4f5a49432ae966f22d0
/day29/mySpider/mySpider/settings.py
4e3e3faf4c4eeff43f7ccf6f99bfd3381a22506f
[]
no_license
lvah/201901python
cbda174a3c97bc5a2f732c8e16fc7cf8451522d2
7bffe04a846f2df6344141f576820730a7bbfa6a
refs/heads/master
2022-12-13T09:49:29.631719
2019-04-06T09:48:33
2019-04-06T09:48:33
165,477,671
3
0
null
2022-12-08T04:57:01
2019-01-13T07:23:44
HTML
UTF-8
Python
false
false
3,413
py
# -*- coding: utf-8 -*- # Scrapy settings for mySpider project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topi...
[ "976131979@qq.com" ]
976131979@qq.com
f8bf11e12bc1581ed30ac99f941e2bf0f33f766b
80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019
/data/HackerRank-ProblemSolving/Counting Valleys.py
8dd7bd82fe261f99bf7584a8856d457b1d55009b
[]
no_license
Ritvik19/CodeBook
ef7764d89b790e902ede5802f36d5ca910d8a50e
2b4ed7938bbf156553d6ba5cba6216449528f0fc
refs/heads/master
2021-07-04T08:25:52.478719
2020-08-08T06:54:14
2020-08-08T06:54:14
138,744,302
3
0
null
null
null
null
UTF-8
Python
false
false
523
py
#!/bin/python3 import math import os import random import re import sys def countingValleys(n, s): count = 0 topography = 0 for _ in s: if _ == 'D': topography -= 1 else: topography += 1 if topography == 0: count += 1 return count i...
[ "rastogiritvik99@gmail.com" ]
rastogiritvik99@gmail.com
ffd754dfcd3f8ce81ed63d9d1957b3c012840687
f63d8037abd95550bbf19820bbbf63fe004ea027
/apps/auth/models.py
e887c3348f0f68c9ec65dc5781584c4c4638ab2f
[]
no_license
lsdlab/flask_socketio_celery
6595e0fdc6534e4c3988b2e895194ba6f2302c53
84870110641feb8e49d9f45271894a66e202b7ec
refs/heads/master
2020-03-24T20:54:47.793077
2018-08-01T04:33:54
2018-08-01T04:33:54
143,003,268
0
1
null
2018-08-24T01:54:32
2018-07-31T11:08:36
Python
UTF-8
Python
false
false
2,521
py
import datetime as dt from flask_login import UserMixin from apps.database import (Column, Model, SurrogatePK, db, reference_col, relationship) from apps.extensions import bcrypt class Role(SurrogatePK, Model): """A role for a user.""" __tablename__ = 'auth_roles' name = Colum...
[ "lsdlab@icloud.com" ]
lsdlab@icloud.com
89588f1507285e3312add597434439152e7280fa
7a3696072a511acc4974bb76004b315a35a106b7
/SS-GCNs/SS-GMNN-GraphMix/GraphMix-clu/trainer.py
0a339f94160ac998022247c886c38f0cec71a1bd
[ "MIT" ]
permissive
xyh97/graph_representation
859e9f2ff911058db251fd6547098968960c6739
e6967073a951cd029651389d4b76606f9cef7f6c
refs/heads/main
2023-03-23T00:55:52.763740
2021-03-19T17:15:40
2021-03-19T17:15:40
343,223,074
3
0
null
null
null
null
UTF-8
Python
false
false
7,909
py
import math import random import numpy as np import torch from torch import nn from torch.nn import init from torch.autograd import Variable import torch.nn.functional as F from torch.optim import Optimizer bce_loss = nn.BCELoss().cuda() softmax = nn.Softmax(dim=1).cuda() class_criterion = nn.CrossEntropyLoss().cuda()...
[ "xiangning@cs.ucla.edu" ]
xiangning@cs.ucla.edu
fa3e535aaacaa3dafcb031f0333a8778da9d2e30
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/1531.py
9246536e333923658ae3a6c8448940cb36f0d831
[]
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,052
py
def check(x, mn, mx): global pairs pcheck = [] x = str(x) if len(x) == 1: pass if len(x) == 2: if x[0] != x[1]: first = x[::-1] if int(first) > int(x): pcheck.append(int(first)) if len(x) == 3: second = x[1:]+x[0] third = x[-1]+x[0:-1] if second != x and second[0] != '0' and in...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d44c38b442f4ea146ddaa3080d9f72ed2c617fa8
025c1cc826722d558d43854f3e319917e199d609
/infra_macros/macro_lib/convert/container_image/compiler/compiler.py
6cfddefcce8817aa2d14a9321c253ab846c2820a
[ "BSD-3-Clause" ]
permissive
martarozek/buckit
73440be29a2ce64084016fc395a5a8cc9bc1e602
343cc5a5964c1d43902b6a77868652adaefa0caa
refs/heads/master
2020-03-26T06:07:35.468491
2018-08-12T17:34:04
2018-08-12T17:45:46
144,590,545
0
0
null
null
null
null
UTF-8
Python
false
false
4,345
py
#!/usr/bin/env python3 ''' This is normally invoked by the `image_layer` Buck macro converter. This compiler builds a btrfs subvolume in <--subvolumes-dir>/<--subvolume-name>:<subvolume-version> To do so, it parses `--child-feature-json` and the `--child-dependencies` that referred therein, creates `ImageItems`, so...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
3de5136de3696c4e49370d8ef3420a67e721f6b3
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_149/82.py
0c7ae5570829193e068ba4471f6d4bad7fb4b56a
[]
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
279
py
#!/usr/bin/env python import itertools def solve(a): ans=0 while a: x=min(a) i=a.index(x) del a[i] ans+=min(i,len(a)-i) return ans for t in xrange(1,1+int(raw_input())): n=int(raw_input()) a=map(int,raw_input().split()) ans=solve(a) print"Case #%d:"%t, print ans
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8cfbe05b9aeb068e2eea79df986d823110f9c019
899bac17acf97252a33d91af076ff1f16b975210
/eduiddashboard/scripts/decode_session.py
787b570f274e635d56156b7461f3b6945ebfead4
[]
no_license
isabella232/eduid-dashboard
91a209f7833f26a7949cecec60df2e501a82f840
99cffaa90f41b13ec34f9d057f19630c644df6ee
refs/heads/master
2023-03-16T05:19:36.184687
2018-07-27T12:27:53
2018-07-27T12:27:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
# -*- coding: utf-8 -*- import sys import pprint from pyramid.paster import bootstrap from eduid_common.session.session import SessionManager import logging logger = logging.getLogger(__name__) __author__ = 'ft' """ Read and decode a session from Redis. Supply the token (id starting with lower-case 'a') from an ex...
[ "fredrik@thulin.net" ]
fredrik@thulin.net
ea2f5c0278cf81ce6a961011b597677d80605caa
c6588d0e7d361dba019743cacfde83f65fbf26b8
/x12/5030/240005030.py
e169346e38e95704c267b8fa6401b8abee37c150
[]
no_license
djfurman/bots-grammars
64d3b3a3cd3bd95d625a82204c3d89db6934947c
a88a02355aa4ca900a7b527b16a1b0f78fbc220c
refs/heads/master
2021-01-12T06:59:53.488468
2016-12-19T18:37:57
2016-12-19T18:37:57
76,887,027
0
0
null
2016-12-19T18:30:43
2016-12-19T18:30:43
null
UTF-8
Python
false
false
1,585
py
from bots.botsconfig import * from records005030 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'MZ', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGN', MIN: 1, MAX: 1}, {ID: 'N1', MIN: 0, MAX: 99999, LE...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
c70a779cc10fd3ba3fe7aca2d9736f9bcb91c53f
d594f3926f6379ef7c382c608cb211f507240420
/csunplugged/tests/utils/errors/test_ThumbnailPageNotFoundError.py
b73009b6a4421c213fecea7a8dec041baac543c4
[ "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
958
py
"""Test class for ThumbnailPageNotFoundError error.""" from django.test import SimpleTestCase from utils.errors.ThumbnailPageNotFoundError import ThumbnailPageNotFoundError from unittest.mock import Mock class ThumbnailPageNotFoundErrorTest(SimpleTestCase): """Test class for ThumbnailPageNotFoundError error. ...
[ "jackmorgannz@gmail.com" ]
jackmorgannz@gmail.com