blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
207a167347f95a1410cc0b3d18fbe9d8facf0f7c
ed0f9eb0c1cb4858d91ef7e2d435db307f23a5a5
/dist/manage/django/contrib/admin/filters.py
260a7ef60a5f27faa21bf595ab4174d15e45e595
[]
no_license
hjlhehehe123/ATC_Data
81b4622e7279aa9cc2013db8cc5a71d33561e768
ad35e61afb8e87d8bab2d2b3aeea08e9409d56c0
refs/heads/master
2023-07-13T16:23:45.951584
2021-08-20T12:37:34
2021-08-20T12:37:34
256,994,694
1
1
null
null
null
null
UTF-8
Python
false
false
19,541
py
""" This encapsulates the logic for displaying filters in the Django admin. Filters are specified in models with the "list_filter" option. Each filter subclass knows how to display a filter for a field that passes a certain test -- e.g. being a DateField or ForeignKey. """ import datetime from django.contrib.admin.op...
[ "1598214715@qq.com" ]
1598214715@qq.com
01f52cd21189eb15dd960b408e13c860f7fb4c07
06604399c457d6ec05fa5d5ae458632e2606ec98
/test/dynamo/test_misc.py
ecc6b58ed15e60bacf404993edec092d1aec999d
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
yncxcw/pytorch
6f262f7613caef4c2ce18c85662db9adc6a2a81a
a3b72ee354031004edd9b951d0efcdd4508fd578
refs/heads/master
2023-07-20T21:38:00.718093
2023-07-13T03:54:17
2023-07-13T03:54:17
234,432,318
0
0
NOASSERTION
2020-01-16T23:34:42
2020-01-16T23:34:41
null
UTF-8
Python
false
false
195,459
py
# Owner(s): ["module: dynamo"] import abc import collections import copy import dataclasses import dis import enum import logging import math import operator import os import sys import traceback import typing import unittest import unittest.mock as mock import warnings import weakref from unittest.mock import patch i...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
7bcf641d35d5803e3a09acdb8776d9a11ac344a1
2cc1097ec2941158be3466ec9a3ad54a02e92c83
/gutenbergToTei.py
1870403c73e0f362c5dce4af4d4ddfba0a4fcf6e
[]
no_license
mpetyx/gutenbergToTei
418583a6905be6aaf3776cc02daaa5d6668675d7
c8fd98fb832672a521e51403756f9d077fcceca6
refs/heads/master
2020-05-20T03:08:13.510126
2013-12-16T12:19:59
2013-12-16T12:19:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,427
py
# gutenbergToTei.py # # Reformats and renames etexts downloaded from Project Gutenberg. # # Software adapted from Michiel Overtoom, motoom@xs4all.nl, july 2009. # # Modified by Matthew Jockers August 17, 2010 to encode result into TEI based XML # import os import re import shutil remove = ["Produced by","End of the...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
642c4c69096cef5756541a7d1f80cb48a9371758
a0717328fdb8537251e8cccce25103c4fc97b172
/web/backend/source/db/__init__.py
3c4adec769160c35d229bf20e3f885df8a9e454f
[]
no_license
rodobre/smarthack
bee6c4d9b81cc1af3036dde9b81178cfa7e05bd1
0a76c089ec23610fd78e396bf7aa5d8c793882ef
refs/heads/master
2020-09-01T14:22:22.478647
2019-11-03T08:10:09
2019-11-03T08:10:09
218,978,545
1
0
null
null
null
null
UTF-8
Python
false
false
527
py
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from redis_collections import Dict import redislite # database stored in a file (simplest way) # TODO: change engine type if needed db_uri = "sqlite:///database.sql" engine = create_engi...
[ "mihailferaru2000@gmail.com" ]
mihailferaru2000@gmail.com
462ef27593e49abb81fe553a729e9576409f91dc
53edf6b0f4262ee76bb4e3b943394cfeafe54865
/simulation_codes/_archived/PARTICLE_PUSHER_ONLY/simulation_parameters_1D.py
d14165a1507cd90571778a68494c7b5c588fb283
[]
no_license
Yoshi2112/hybrid
f86265a2d35cb0a402ba6ab5f718717d8eeb740c
85f3051be9368bced41af7d73b4ede9c3e15ff16
refs/heads/master
2023-07-07T21:47:59.791167
2023-06-27T23:09:23
2023-06-27T23:09:23
82,878,960
0
1
null
2020-04-16T18:03:59
2017-02-23T03:14:49
Python
UTF-8
Python
false
false
16,313
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 22 11:00:58 2017 @author: iarey Changing so that values are calculated here, but main inputs come from files That way I'd only have to change the input file, rather than manually changing every single value on each run. Makes doing pearl-studies much easier. This script...
[ "joshua.s.williams@uon.edu.au" ]
joshua.s.williams@uon.edu.au
17283d50974695ebd93d2e2f98cdaf3efb4724f5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03438/s143987298.py
8d742e71452282deac9bebdbc846d1dab746618c
[]
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
448
py
ma = lambda :map(int,input().split()) lma = lambda :list(map(int,input().split())) tma = lambda :tuple(map(int,input().split())) ni = lambda:int(input()) yn = lambda fl:print("Yes") if fl else print("No") import collections import math import itertools import heapq as hq ceil = math.ceil n = ni() A = lma() B = lma() D...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f0e447ddffc1c9a7edeeb540fb89de63cea9b26c
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/PyQt5/QtWidgets/QStyleOptionTabWidgetFrame.py
6fc9ddbe4f0b04937109786e7e89b57e0c786274
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
# encoding: utf-8 # module PyQt5.QtWidgets # from F:\Python\Python36\lib\site-packages\PyQt5\QtWidgets.pyd # by generator 1.147 # no doc # imports import PyQt5.QtCore as __PyQt5_QtCore import PyQt5.QtGui as __PyQt5_QtGui import sip as __sip from .QStyleOption import QStyleOption class QStyleOptionTabWidgetFrame(QSt...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
ce485319554c320f209c63112d8997942295f3fe
6119d11cc09c3604b4dd50f590126573d49f32e2
/illiad_article_handler_app/tests.py
1f61a9cc6b32d9cf0b524765ff676e5dc9556160
[]
no_license
Brown-University-Library/illiad_article_handler_project
393ed1bdda373e10d4ed3a6b886ef3d19ebea726
730d87eab14d826a86c572896a99dd124f785e9b
refs/heads/main
2023-08-03T03:22:07.049285
2021-09-22T14:18:37
2021-09-22T14:18:37
402,741,433
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
import logging # from django.test import TestCase (test commit) from django.test import SimpleTestCase as TestCase ## TestCase requires db, this doesn't log = logging.getLogger(__name__) # class Url_Test( TestCase ): # """ Checks redirect output. """ # def test_redirect(self): # """ Checks that...
[ "birkin.diana@gmail.com" ]
birkin.diana@gmail.com
05b29d6292aae1d9423128712bab8fcdecadc505
1508b3e3f56e750e38db4334343beedcbb2f9c95
/224/ex161.py
26d116055d1d730ea0be6d10164c80f4d857bc77
[]
no_license
kellyseeme/pythonexample
3bb325e31c677160c1abd6c3f314f7ef3af55daa
3eab43cdfa5c59a0f4553de84c9de21e5ded44bb
refs/heads/master
2021-01-21T13:52:43.076697
2016-05-30T06:32:37
2016-05-30T06:32:37
51,348,486
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
#!/usr/bin/env python from sys import argv script,filename = argv txt = open(filename) print txt.read()
[ "root@python.(none)" ]
root@python.(none)
cbea9fe9444f660a8102289ab002207f5f9e2d8c
be429a1e5e4903616a4532c1bf238df20fea75c0
/6.8/671.二叉树中第二小的节点.py
092fde588c9f0ce330899c0d7faf5c961c923a0c
[]
no_license
pythonnewbird/LeetCodeSolution
ccc8cc17df4cea3109d84b0c347ae91c1bc33a28
2447f760f08fb3879c5f03d8650e30ff74115d3d
refs/heads/master
2020-03-19T05:06:06.681429
2018-07-01T12:39:09
2018-07-01T12:39:09
135,899,944
4
0
null
null
null
null
UTF-8
Python
false
false
654
py
# 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 findSecondMinimumValue(self, root): """ :type root: TreeNode :rtype: int """ ...
[ "21637007@zju.edu.cn" ]
21637007@zju.edu.cn
0bd52df15944ef40fba1a939026b011255408281
7400b1c16c81bba23e0e54c0aa77c116bd814761
/.env/lib/python3.7/site-packages/aws_cdk/aws_autoscaling/__init__.py
f0eebbe22f45e429e9c8b83840ac07c4e48f2da6
[]
no_license
vbloise3/hi_avail_cdk
917be953809d5964200cf533233c8de224a88019
210052b02d5f63cba80d825a73d75035767ea709
refs/heads/master
2021-07-24T21:04:45.992216
2020-12-28T01:37:26
2020-12-28T01:37:26
231,833,778
0
0
null
null
null
null
UTF-8
Python
false
false
383,782
py
""" ## Amazon EC2 Auto Scaling Construct Library <!--BEGIN STABILITY BANNER-->--- ![Stability: Stable](https://img.shields.io/badge/stability-Stable-success.svg?style=for-the-badge) --- <!--END STABILITY BANNER--> This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project. ### ...
[ "vbloise3@gmail.com" ]
vbloise3@gmail.com
96f26415c59c3f5d4cc5ad55a367af99e8cd7b23
75569ed16c90c7e4081e4ef3e5caafe8a622830f
/tests/basics/class-super.py
6a87b2fd00c817af2924ff7e056f1ce7aab3b18f
[ "MIT" ]
permissive
aitjcize/micropython
22b153e88d2f2c8c44c92ac9b9eeee0396ed385a
203bc98804dd8ad60476b531f29b6658dcffadcf
refs/heads/master
2020-05-20T17:56:26.304832
2014-04-15T11:52:59
2014-04-15T11:52:59
18,765,665
1
0
null
null
null
null
UTF-8
Python
false
false
181
py
class Base: def meth(self): print("in Base meth") class Sub(Base): def meth(self): print("in Sub meth") return super().meth() a = Sub() a.meth()
[ "pfalcon@users.sourceforge.net" ]
pfalcon@users.sourceforge.net
34934364d6e50c0f4baf9fbc1cb465d2decbba84
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa2/sample/ast_coverage-249.py
2b992ce35be39fd106d6df923513d9ec2dd95fb2
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
count:int = 0 def foo(s: str) -> int: return len(s) class bar(object): p: bool = True def baz(self:"bar", xx: [int]) -> str: global count x:int = 0 y:int = 1 def qux(y: int) -> object: nonlocal x if x > y: x = -1 for x in x...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
c1847152d25bfcdf25efa91b2c9419a6b9daf9e7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03128/s188279652.py
ab5fe02baf01861864082c97175ad115cba641b4
[]
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
1,290
py
# coding: utf-8 import sys sr = lambda: sys.stdin.readline().rstrip() ir = lambda: int(sr()) lr = lambda: list(map(int, sr().split())) # まずは桁数を増やす→数字の大きい順に並べる N, M = lr() A = lr() matches = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6] A = [(matches[a], a) for a in A] A.sort(key = lambda x: x[1], reverse=True) A.sort(key = lambda x...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2e0bd584fcf28fe9b5595a1f73d664b89e5ffe7b
76a4ef48394cee091c00152de627342fa3b561a2
/flask/login/bootstrap/wtforms_widget.py
355554469b965e356923cf2fca2e4cd2a4d2cb26
[]
no_license
fossabot/beecell
4e6c80b1e53dcbe7c4eb7f4f8db47ecc89418818
ca6326d7770c51c76df398e6e33a4a5508259bd6
refs/heads/master
2020-03-21T20:49:56.382728
2018-06-28T14:25:16
2018-06-28T14:25:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,870
py
''' Created on Jan 18, 2014 @author: darkbk ''' from __future__ import unicode_literals from cgi import escape from wtforms.compat import text_type, string_types, iteritems __all__ = ( 'CheckboxInput', 'FileInput', 'HiddenInput', 'ListWidget', 'PasswordInput', 'RadioInput', 'Select', 'SubmitInput', 'TableWidg...
[ "marco.panepinto@outlook.com" ]
marco.panepinto@outlook.com
a38abf71e517cf272bf68a584acc8f5119e80b68
ce083128fa87ca86c65059893aa8882d088461f5
/python/python-salad-bdd/.venv/lib/python2.7/site-packages/zope/testbrowser/cookies.py
9497507a71805ddce1f97e07dcf446042a5ad949
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
13,917
py
############################################################################## # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
3523e3922bad5ab5629c6103291d277ac1c2f3a6
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_11129.py
f39d83392e18135ef51184fa254691203b79401e
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
# Python Package Import Error--Python Doesn't Recognize Package import parser
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
292d385070572bf7f16310dfa66e9e0cbca0ef5c
59fb17c240b261040026d713a6ac9c97d6a9f265
/gym/gym/utils/colorize.py
ac7ea10f6f91bb8e623c462fa4a32657fde70f0a
[ "MIT" ]
permissive
dmeger/TeachingImitation
3fb97499e76929959913266f127154f6ae5a8e99
5f4dba7e49987924c3d55cd27579cad4c71ef7a4
refs/heads/master
2023-03-28T13:25:01.307382
2021-04-06T15:07:08
2021-04-06T15:07:08
355,223,500
2
0
null
null
null
null
UTF-8
Python
false
false
768
py
"""A set of common utilities used within the environments. These are not intended as API functions, and will not remain stable over time. """ color2num = dict( gray=30, red=31, green=32, yellow=33, blue=34, magenta=35, cyan=36, white=37, crimson=38 ) def colorize(...
[ "david.meger@gmail.com" ]
david.meger@gmail.com
a73ca2447eb10abc6d70d53b6c07766887780a87
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_navahos.py
2d6837a91058d376c49ef6307b7b9b61348d2dda
[ "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
222
py
#calss header class _NAVAHOS(): def __init__(self,): self.name = "NAVAHOS" self.definitions = navaho self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['navaho']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
08b66af75db565b43692361530227c0edc3a2a89
04b4198a006d4527432ca8de8bf92cc5f9ded3de
/logistic.py
3a73d7e510fa01243e5e4603d0add8223f4868de
[]
no_license
chenzhengsi1988/try
4986623077a1bed6f40c3ed0327f1e96eea4a6ef
5c448a6da317cd0853ec24db108a3e7237a2153e
refs/heads/master
2021-09-06T17:49:06.923387
2018-02-09T08:49:49
2018-02-09T08:49:49
111,104,573
0
0
null
null
null
null
UTF-8
Python
false
false
2,716
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Nov 15 11:20:58 2017 @author: zsc """ from __future__ import print_function, division import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn from sklearn.cross_validation import train_test_split im...
[ "you@example.com" ]
you@example.com
13dffa6919ac9b8c70595168f8ee24846398cf7e
48d30fa3d9806fee872e76393e77900c6aab8717
/djangochat/settings.py
f38b35058f2c0fbb98e59b355a7123e25440709e
[]
no_license
olivx/django-vue-chat
dbaca42d8c4531d4d803e376839e8fb6fbad722b
f4100513a7fa1d170d7a4973b0edb456ade00c2d
refs/heads/master
2020-04-24T01:07:10.055368
2019-02-26T14:52:28
2019-02-26T14:52:28
171,587,402
0
0
null
null
null
null
UTF-8
Python
false
false
3,571
py
""" Django settings for djangochat project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os...
[ "oliveiravicente.net@gmail.com" ]
oliveiravicente.net@gmail.com
52b92cc0359020e208aa18e832e1ad7cec007240
51d602577affebc8d91ffe234f926469d389dc75
/lis/specimen/lab_aliquot/models/base_aliquot.py
881efd0a10e60181bdeffbc6009a840b110f194b
[]
no_license
botswana-harvard/lis
5ac491373f74eaf3855f173580b000539d7f4740
48dc601ae05e420e8f3ebb5ea398f44f02b2e5e7
refs/heads/master
2020-12-29T01:31:07.821681
2018-06-24T06:06:57
2018-06-24T06:06:57
35,820,860
0
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
import datetime from django.utils import timezone from django.db import models from django.core.urlresolvers import reverse from ..choices import ALIQUOT_STATUS, SPECIMEN_MEASURE_UNITS, SPECIMEN_MEDIUM class BaseAliquot (models.Model): primary_aliquot = models.ForeignKey('self', null=True, rela...
[ "ckgathi@gmail.com" ]
ckgathi@gmail.com
173faf68071a21ad7c81089f2ddfb4d75bfbdac2
6930a434c0506d44bf8a8e81cb86e95c219c3a77
/python/day09/code/dict2.py
ce9b66edc2c41b3b8bb0cbac196501f4f251a01f
[]
no_license
Conquerk/test
ed15d5603538340559556c9e0f20cc61ad3e4486
7ff42c99b8a2132c6dd1c73315ff95cfef63a8f6
refs/heads/master
2020-04-19T01:47:28.322929
2019-01-28T01:52:00
2019-01-28T01:52:00
167,882,236
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
#字典行参 def fun(**kwargs): print("关键字传参个数是",len(kwargs)) print("kwargs",kwargs) fun(a=1,b="BBBB",c=[2,3,4])#关键字传参 fun(a=1,b=2,c=3,d=4)
[ "tarena@tedu.cn" ]
tarena@tedu.cn
d86dc0cb296c60aa5c62e35bd80bec4fb557775d
9787a86bd6721062a8cf7cc04c21c092a4aeb4a0
/dapper/mods/Lorenz63/anderson2010rhf.py
93c7177874a95116146c42bb3ff40c051691fcd3
[ "MIT" ]
permissive
1895-art/DAPPER
09d8b6a88c8997ad7f190f96930be559b43ee143
bfc4075782f6b247a70cd5d04d4308d135ea5379
refs/heads/master
2023-01-19T23:14:13.370754
2020-11-23T16:01:21
2020-11-23T16:01:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
"""As in Anderson 2010 rank histogram filter""" import numpy as np import dapper as dpr from dapper.mods.Lorenz63 import Tplot, dstep_dx, step, x0 t = dpr.Chronology(0.01, dkObs=12, KObs=1000, Tplot=Tplot, BurnIn=4*Tplot) Nx = len(x0) Dyn = { 'M': Nx, 'model': step, 'linear': dstep_dx, 'noise': 0 }...
[ "patrick.n.raanes@gmail.com" ]
patrick.n.raanes@gmail.com
086b12d7a882e9d4d5550998cef39d299a4472d5
929e65367e6cd2115990456b017c16938e1012b1
/Import package.py
0dade4b7680e697e7bafb0ac74f5aeeb6100d2e7
[]
no_license
abhiwer/Introduction-to-Python
261437a5ec5929fef92f467d75347d1c1c8aae2d
9fed8cb117c441659196a901fad9ea93f59deeb5
refs/heads/master
2022-11-29T23:56:11.828440
2020-08-08T17:32:39
2020-08-08T17:32:39
286,092,757
0
0
null
null
null
null
UTF-8
Python
false
false
934
py
''' Import package As a data scientist, some notions of geometry never hurt. Let's refresh some of the basics. For a fancy clustering algorithm, you want to find the circumference, C, and area, A, of a circle. When the radius of the circle is r, you can calculate C and A as: C=2πr A=πr2 To use the constant pi, you'l...
[ "rajanpan97@gmail.com" ]
rajanpan97@gmail.com
eaf64dbae77589cd3f1c16332b15cd409f93a1db
8b53a8b9803d92003f3a3a9e1b08def7642ba35d
/TALLERES/TAL7_FUNCIONES_20210316_cur/ej23_funcionesreturn_listapositnegat.py
cc1e48bcad49794b734bf0271aba9bb904e9bb83
[]
no_license
smarulan613/fundamentos_prog_20211_sebasmc
637cdf9e1f61de0f876fe74530df4e6a5b40d6a6
0a87d81dae2bd5656a3e6a521585da661efe6cf6
refs/heads/main
2023-05-02T04:26:47.035698
2021-05-27T03:37:05
2021-05-27T03:37:05
356,059,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# -*- coding: utf-8 -*- """ Created on Mon Mar 22 15:14:20 2021 @author: Sebastian Marulanda Correa Ejercicio 23 curso. funciones Python Confeccionar un programa que permita: 1) Cargar una lista de 10 elementos enteros. 2) Generar dos listas a partir de la primera. En una guardar los valores posit...
[ "noreply@github.com" ]
smarulan613.noreply@github.com
0181873a9410e165b4d662fca16012fd3bc2c05e
9a9d6052f8cf91dd57be9a9b6564290b0fac9e52
/Algorithm/JUNGOL/1. Language_Coder/배열1/557_배열1_자가진단3.py
d2eb1da75defeca5b3a9fc5fcff83988dda3f204
[]
no_license
Gyeong-Yeon/TIL
596ec6a093eec34a17dad68bcd91fa9dd08690e8
eb1f43ee0525da93233b70716cd35caab8d82bda
refs/heads/master
2023-03-31T19:56:30.979062
2021-03-28T13:09:27
2021-03-28T13:09:27
280,307,737
0
1
null
null
null
null
UTF-8
Python
false
false
117
py
arr = [' '] + list(map(str,input().split())) for i in range(1,10): if i % 3 == 1: print(arr[i], end=" ")
[ "lky4156@naver.com" ]
lky4156@naver.com
86b7939905609e12215640e9f40f41369636f45e
8b86009da06c2ac987e2a02dcbce15ebeb0e559c
/hyperanalysis/decomposition/base.py
0c14e91c87b74085fb26add1c471d1db2404d2f4
[ "MIT" ]
permissive
jiangqn/hyperanalysis-archive
df1a7373f066f8a572242dcd5ff39f1bbdd53f0a
1e68d4a8674a2fbe7ae7566d1abd3881167039e5
refs/heads/main
2023-03-05T11:19:59.907392
2021-02-23T05:33:50
2021-02-23T05:33:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,362
py
import torch from typing import Tuple class Decomposition(object): """ The base class of dimension reduction models. """ def __init__(self, n_components: int) -> None: super(Decomposition, self).__init__() self._n_components = n_components self._is_trained = False @proper...
[ "1935448858@qq.com" ]
1935448858@qq.com
f5e5f08367caa58f682b03c02fa22c8c90e2a22a
6929a33a7259dad9b45192ca088a492085ed2953
/solutions/0283-move-zeroes/move-zeroes.py
af0c715153e20b1875b77015c630bf46ec33870e
[]
no_license
moqi112358/leetcode
70366d29c474d19c43180fd4c282cc02c890af03
fab9433ff7f66d00023e3af271cf309b2d481722
refs/heads/master
2022-12-10T01:46:14.799231
2021-01-14T05:00:09
2021-01-14T05:00:09
218,163,960
3
0
null
2022-07-06T20:26:38
2019-10-28T23:26:47
Python
UTF-8
Python
false
false
778
py
# Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. # # Example: # # # Input: [0,1,0,3,12] # Output: [1,3,12,0,0] # # Note: # # # You must do this in-place without making a copy of the array. # Minimize the total number of opera...
[ "983028670@qq.com" ]
983028670@qq.com
030f2a1c40bbb4791c369f6c2ad71a3cc9152459
a2d9dd4b373f4dad4e966f59436fad7ce2ef3459
/workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_rs_camera_calibration/RsCalibrator.py
1e8ececa39af441eca4fc33fcae6cd304d05d22a
[ "BSD-3-Clause" ]
permissive
luoxz-ai/Drone-trajectory-tracking-and-replication
7978c3a2bd57d18a9b59c1687898ce85bf108740
f1dae18d43a36affb71c736abd87c6b267ea592e
refs/heads/master
2023-07-08T04:00:21.673758
2019-10-06T20:33:32
2019-10-06T20:33:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,550
py
# encoding:UTF-8 import sm import aslam_backend as aopt import aslam_cv_backend as acvb import aslam_cv as acv import aslam_splines as asp import incremental_calibration as inc import bsplines import numpy as np import multiprocessing import sys import gc import math from ReprojectionErrorKnotSequenceUpdateStrategy imp...
[ "jonas.le.fevre@gmail.com" ]
jonas.le.fevre@gmail.com
830d9c3bc9d6971c814cf9ad5c519397f7b4e369
baff68c47362e9911b415e2d68b470a33da968ae
/src/add_metadata.py
154521b3f22a398fb84578e0be287c216430a487
[]
no_license
Assimila/ClimateRiskDisclosure
6eacb8f91780d3b7e43c1b81b402fe632d112053
0a0bc23e8a117bbf23f05277043ea9ea70406265
refs/heads/main
2022-11-24T08:31:06.562223
2022-11-02T17:37:59
2022-11-02T17:37:59
243,382,947
3
4
null
null
null
null
UTF-8
Python
false
false
1,901
py
import os import sys import gdal from osgeo import gdal_array import numpy as np import datetime variable = sys.argv[1] #fname = f'../ERA5/Europe/{variable}/Europe_monthly_mean_{variable}_1979_2019.tif' fname = f'../ERA5/Europe/{variable}/Europe_monthly_mean_{variable}_2002_2019.tif' d = gdal.Open(fname) data = d....
[ "gerardo.lopezsaldana@assimila.eu" ]
gerardo.lopezsaldana@assimila.eu
432a7901e1e5361f33fedadd22fc71f1071a8b47
0db19410e9751790af8ce4a0a9332293e379c02f
/mmpose/models/data_preprocessors/__init__.py
7c9bd22e2b20be84a17d05ab3058efd8d934f261
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
136
py
# Copyright (c) OpenMMLab. All rights reserved. from .data_preprocessor import PoseDataPreprocessor __all__ = ['PoseDataPreprocessor']
[ "noreply@github.com" ]
open-mmlab.noreply@github.com
6f3433cb3e7e5eb3c3337244453de9eaff43fad6
78144baee82268a550400bbdb8c68de524adc68f
/Production/python/Autumn18/StealthSHH_2t4b_mStop-550_mSo-100_TuneCP2_13TeV-madgraphMLM-pythia8_cff.py
128c93aac2b48480c4d289b30e955524f2e7f9c3
[]
no_license
tklijnsma/TreeMaker
e6989c03189b849aff2007bad22e2bfc6922a244
248f2c04cc690ef2e2202b452d6f52837c4c08e5
refs/heads/Run2_2017
2023-05-26T23:03:42.512963
2020-05-12T18:44:15
2020-05-12T18:44:15
263,960,056
1
2
null
2020-09-25T00:27:35
2020-05-14T15:57:20
null
UTF-8
Python
false
false
5,569
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/mc/RunIIAutumn18Mi...
[ "Chris_Madrid@Baylor.edu" ]
Chris_Madrid@Baylor.edu
8f9924d0cca9605376bdd8571df236762324976f
4b896d1e582f2b18753d63221e458fb977bcab3a
/go/debug/objsize.py
c7d50bec22f3ac3f0c02190fe3bafc02f9907f5c
[]
no_license
klangner/deep-learning-go
1589b86bccdfa229b0e947af2145dc3a48b9e939
b8fc8062eac2d608161d8b52dae7d0aeaa0dbf0b
refs/heads/master
2020-04-19T07:10:27.525346
2019-11-06T21:40:09
2019-11-06T21:40:09
168,039,663
0
0
null
null
null
null
UTF-8
Python
false
false
1,842
py
from __future__ import print_function from sys import getsizeof, stderr from itertools import chain from collections import deque try: from reprlib import repr except ImportError: pass def total_size(o, handlers={}, verbose=False): """ Returns the approximate memory footprint an object and all of its conte...
[ "klangner@gmail.com" ]
klangner@gmail.com
88540f3f59978d61c2a4d2f65b37a0348c555d12
1825283527f5a479204708feeaf55f4ab6d1290b
/leetcode/python/252/sol.py
9f045bf520410fe87ee096f43d4c9c6bcba54931
[]
no_license
frankieliu/problems
b82c61d3328ffcc1da2cbc95712563355f5d44b5
911c6622448a4be041834bcab25051dd0f9209b2
refs/heads/master
2023-01-06T14:41:58.044871
2019-11-24T03:47:22
2019-11-24T03:47:22
115,065,956
1
0
null
2023-01-04T07:25:52
2017-12-22T02:06:57
HTML
UTF-8
Python
false
false
401
py
My Python Solution https://leetcode.com/problems/meeting-rooms/discuss/67812 * Lang: python3 * Author: yinfeng.zhang.9 * Votes: 21 def canAttendMeetings(self, intervals): intervals.sort(key=lambda x: x.start) for i in range(1, len(intervals)): if intervals[i].start < i...
[ "frankie.y.liu@gmail.com" ]
frankie.y.liu@gmail.com
bc8d42394d2159030516acac6df507518ddb8972
7e41d70ee3bf07dc3043afef020cde173d5fb0bc
/airflow_client/client/model/task_instance_collection.py
50cd340cc81054d04aecf2aa847f8c96265afd68
[ "Apache-2.0" ]
permissive
apache/airflow-client-python
fb11789076bfed191d730c459c84273781d50246
38d55888f7533253857baa878322007f4581fc21
refs/heads/main
2023-09-05T18:23:37.049610
2023-08-23T13:10:27
2023-08-23T13:10:27
275,569,232
251
44
Apache-2.0
2023-08-23T07:49:13
2020-06-28T11:20:41
Python
UTF-8
Python
false
false
22,832
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
apache.noreply@github.com
cac3db1f41734eb2a40f81a1e4082961e055b269
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/2/d_n.py
2d5072d41deade0c2c2f76ec2ebb45a5eda4977c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
7eb01a752b3791f19bcdfa84bf02cf02c25aedef
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03416/s958545838.py
b462b8076901011891d089895dfad5d7ccd0140c
[]
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
175
py
A, B = map(int, input().split()) count = 0 for i in range(A, B+1): num = str(i) if num[0] == num[4]: if num[1] == num[3]: count += 1 print(count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fda7809b36d2aad19a3c58c0e669438ed43d6868
07c61596c1fba2e2a7034fe5af9707794ea2e2c1
/Hackerrank/ProjectEuler/99.py3
2de3e1198f2cc5dd0ec84038640c552bb9ea446d
[]
no_license
H-Shen/Collection_of_my_coding_practice
2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4
6415552d38a756c9c89de0c774799654c73073a6
refs/heads/master
2023-08-24T21:19:08.886667
2023-08-22T03:47:39
2023-08-22T03:47:39
180,731,825
8
1
null
2021-08-13T18:25:25
2019-04-11T06:48:09
C++
UTF-8
Python
false
false
258
py3
from math import log import heapq A = [] n = int(input()) for i in range(n): a, b = list(map(int, input().split())) A.append([b * log(a), a, b]) k = int(input()) result = heapq.nsmallest(k, A, key = lambda x : x[0])[-1] print(result[1], result[2])
[ "haohu.shen@ucalgary.ca" ]
haohu.shen@ucalgary.ca
f09b6648d2399c48d65cc7224e21b179ef864204
69a7257eae464b4598183eca15b324307fedadca
/parse_all.py
6124fe630ae60d48fdeea63eca5b0a4f922da0df
[]
no_license
chenc10/SparkTrace
b1de2848f8eec44a9a0296c53ef97726d7a26d68
1e77dd334e8c52d26ab4991de222e1b2d573719b
refs/heads/master
2016-09-14T11:43:31.928980
2016-05-16T01:06:03
2016-05-16T01:06:03
58,176,685
2
1
null
null
null
null
UTF-8
Python
false
false
474
py
import os import sys import parse_logs def main(argv): dirname = argv[0] print "Parsing files in ", dirname agg_results_filename = os.path.join(dirname, "agg_results") for filename in os.listdir(argv[0]): full_name = os.path.join(dirname, filename) if os.path.isfile(full_name) and filename.endswith("j...
[ "chenc10@126.com" ]
chenc10@126.com
8a0590a6380487f11389d2d2e063ca5783a0bc38
dc0b6b680fd1fc0ab86ed7a3460137cde3a8612d
/Meus códigos/Python/Economia/Antigos/importa_csv_tse_1b.py
1be2bda35b65a06a2e53b139401c7268b730c330
[]
no_license
pedromfnakashima/codigos_versionados
6c8c692bc08a0dda39a82bf91c5245f28d9be330
c40c94d69f1ee3dd4317786f1c25bcc1bbcc2bb9
refs/heads/main
2023-03-21T20:32:53.677701
2021-03-20T00:03:10
2021-03-20T00:03:10
305,754,740
0
0
null
null
null
null
UTF-8
Python
false
false
6,533
py
import pandas as pd class importa(): pasta = r'C:\Users\pedro\bd\TEMÁTICO\TSE\consulta_cand_2018' arquivo = r'\consulta_cand_2018_MS.csv' caminho_completo = (pasta + arquivo).replace("\\", "/") def importa_csv(self, lista): df = pd.read_csv(self.caminho_completo, ...
[ "pedromfnakashima@gmail.com" ]
pedromfnakashima@gmail.com
1a2cee0728d54f0070f9d82395335d23057df172
ddba80990fcf1e1147a12e0d024dc4ce0c1239e1
/MUNDO 2/Exercícios MUNDO 2/ex047 (Contagem de pares).py
bd5a1acc4590ae970044406d272ff4ae73b0797c
[ "MIT" ]
permissive
LeonMarqs/Curso-Em-Video-Python3
f8f70b91248bf5feb7f971ed2599a19031f58a86
fd774af030ac3b385c03213441d7ac7fad46efca
refs/heads/master
2020-07-31T17:17:55.519292
2020-02-02T23:39:51
2020-02-02T23:39:51
210,689,782
1
0
null
null
null
null
UTF-8
Python
false
false
126
py
print('-=-'* 10) print('Números pares entre 1 e 50') print('-=-'* 10) for c in range(2, 51, 2): print(c, end=' ')
[ "noreply@github.com" ]
LeonMarqs.noreply@github.com
2bc38fed6e6b19e8b25708fd31d90eb07578d5f7
02467e9975b50c14b4dc8cdc6dc03748f9aa8245
/openshift/test/test_v1_secret_key_selector.py
a1b2b55845f182d6d49bff42036d5628cbf82401
[ "Apache-2.0" ]
permissive
ashcrow/python-openshift
3995e3c4b72bf52a62bc6b07dabf3d0f709444ae
74c9ade612def941938016385842631342e926de
refs/heads/master
2021-01-11T19:29:04.419005
2017-01-18T19:31:58
2017-01-18T19:31:58
79,377,387
0
0
null
2017-01-18T19:46:04
2017-01-18T19:46:04
null
UTF-8
Python
false
false
4,192
py
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
[ "jdetiber@redhat.com" ]
jdetiber@redhat.com
680429a9272c50f295242542fb8d69945d3f2917
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnwicked.py
e148022c53291f23cbb55d62a489d2fe1f44db2f
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
1,103
py
ii = [('BentJDO2.py', 2), ('GodwWSL2.py', 3), ('SadlMLP.py', 8), ('FerrSDO3.py', 1), ('WilbRLW4.py', 2), ('MartHSI2.py', 2), ('KembFJ1.py', 2), ('WilbRLW5.py', 2), ('BailJD2.py', 1), ('ChalTPW2.py', 1), ('AdamWEP.py', 1), ('WilbRLW2.py', 9), ('CarlTFR.py', 3), ('GrimSLE.py', 2), ('CookGHP2.py', 3), ('BailJD1.py', 2), (...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
437895ed7aaef43911f95aafcd5cb599969661f1
5173c3e3956387a3f2ae8fcf4aed7c7a600dac78
/SWEA/SWEA_5185_이진수.py
3035925afbd3f73521eb396dd724f1fe9f88dd20
[]
no_license
ma0723/Min_Algorithm
df75f53f6e89b7817d4b52d686effb8236a4ddac
b02d1043008cb32e22daa9d4207b9a45f111d66f
refs/heads/master
2023-07-25T11:00:15.397093
2021-08-30T02:08:05
2021-08-30T02:08:05
375,613,927
1
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import sys sys.stdin = open("5185.txt", "r") hex_lst = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'] T = int(input()) for tc in range(1, T+1): print("#{}".format(tc), end= ' ') N, hex = input().split() # N 자리수 16진수 dec = [] # 10진수 변환 (hex_lst의 index) for i...
[ "ma0723@naver.com" ]
ma0723@naver.com
fe203d83a8cb7de4eaf56810b600faefafa9d551
1548ce77537dcd50ab04b0eaee050b5d30553e23
/autotabular/pipeline/components/regression/mlp.py
a4223afac0672806f0541bd738b70cdcc8163b4b
[ "Apache-2.0" ]
permissive
Shamoo100/AutoTabular
4a20e349104246bf825ebceae33dca0a79928f2e
7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2
refs/heads/main
2023-08-13T21:34:34.329888
2021-10-02T07:06:00
2021-10-02T07:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,429
py
import copy import numpy as np from autotabular.pipeline.components.base import AutotabularRegressionAlgorithm, IterativeComponent from autotabular.pipeline.constants import DENSE, PREDICTIONS, SPARSE, UNSIGNED_DATA from autotabular.util.common import check_for_bool from ConfigSpace.conditions import InCondition from ...
[ "jianzhnie@126.com" ]
jianzhnie@126.com
911f9d2ca22cfaffd45aa32eed0a648b30ff9cec
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/8117955873ba4f469f73ce4e2a833897.py
930b205143cc064eaf9cd0425dad20fa99fdb7c2
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
136
py
dict_map = { 'A': 'U', 'G': 'C', 'T': 'A', 'C': 'G' } def to_rna(dna): return ''.join([dict_map[x] for x in dna])
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
f074af7028ccd82b4eb009889b16d1dabc110c69
38c10c01007624cd2056884f25e0d6ab85442194
/remoting/host/DEPS
3abc8545dbe42bf8933ae6066acb8037b5c824d2
[ "BSD-3-Clause" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
350
include_rules = [ "+ash", "+cc/output", "+components/policy/core/common", "+extensions/browser/api/messaging", "+jingle/glue", "+net", "+remoting/codec", "+remoting/protocol", "+remoting/signaling", "+remoting/tools", "+third_party/jsoncpp", "+third_party/modp_b64", "+third_party/skia", "+th...
[ "zeno.albisser@hemispherian.com" ]
zeno.albisser@hemispherian.com
480d52454e03c72cf93ca575ed707fe89e0b6db4
e52b0124ad5f875ea16a10cc8aa5e771f5d7c3ea
/guniflask/security/web_authentication_details.py
5375b3912e675d9a30289b0ae702bc9a83433405
[ "MIT" ]
permissive
jadbin/guniflask
24ec0c755827fe15ebbfeaec3149882ac6bc79b9
f0f5029d03219b7793482dc3ed09eab508e538d6
refs/heads/master
2023-08-18T07:56:36.331037
2023-08-09T02:48:23
2023-08-09T02:48:23
147,511,047
14
2
null
null
null
null
UTF-8
Python
false
false
134
py
from flask import request class WebAuthenticationDetails: def __init__(self): self.remote_address = request.remote_addr
[ "jadbin.com@hotmail.com" ]
jadbin.com@hotmail.com
f670c6e3e5f42ee3819ef8f36431f55282ea2c60
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/Dongola/common/hr_custom/report/transfer_report_1.py
ff5c7f89843d579d6b10234303ef5e47105ca182
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,597
py
import time import pooler #import rml_parse import copy from report import report_sxw import pdb import re class transfer_report_1(report_sxw.rml_parse): _name = 'report.transfer.report.1' def __init__(self, cr, uid, name, context): super(transfer_report_1, self).__init__(cr, uid, name, context=context...
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
9ee83697c077bff9c366dc651065957a5dcfd94c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_steering.py
9d1b8159a6d286fa6567d17d84d7a4e429ff66b2
[ "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
222
py
#calss header class _STEERING(): def __init__(self,): self.name = "STEERING" self.definitions = steer self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['steer']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
59a007f714b57328d856f3367ba98cfccfb2001b
c26dc7928b1facac2c0912f6532076d35c19e835
/devel/_setup_util.py
8976eb5f7d8437a5de065f0475d88be74a03e568
[]
no_license
mattedminster/inmoov_ros
33c29a2ea711f61f15ad5e2c53dd9db65ef6437f
e063a90b61418c3612b8df7876a633bc0dc2c428
refs/heads/master
2021-01-23T02:39:36.090746
2017-08-09T02:56:42
2017-08-09T02:56:42
85,995,826
0
0
null
2017-03-23T20:45:32
2017-03-23T20:45:32
null
UTF-8
Python
false
false
12,467
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistrib...
[ "mattedminster@gmail.com" ]
mattedminster@gmail.com
a3548216505b1663d119fa33ba99a302992ca5a7
258fffc9b1fda6ed152d3520facdcba54d5460d1
/manga_py/providers/readmanga_me.py
feada82b8ce302fe0689a757f8e92de2a2386776
[ "MIT" ]
permissive
theincognito-inc/manga-dl
a29422b8417a398e6b0273ae6f2374f3f4401021
899905bafb6c6891815b58cce41eaff32a682570
refs/heads/stable_1.x
2021-07-09T10:45:18.197767
2020-07-20T11:21:18
2020-07-20T11:21:18
161,990,334
0
0
MIT
2020-07-20T11:21:20
2018-12-16T10:31:37
Python
UTF-8
Python
false
false
1,360
py
from manga_py.provider import Provider from .helpers.std import Std class ReadmangaMe(Provider, Std): def get_archive_name(self) -> str: idx = self.get_chapter_index() vol, ch = idx.split('-') return self.normal_arc_name({'vol': vol, 'ch': ch}) def get_chapter_index(self): _re...
[ "sttv-pc@mail.ru" ]
sttv-pc@mail.ru
d76bf2a679b9464bd4006997fb666f97c9a71c0f
4c1d9bace72c568b39ffd88b2f3c6bcc58bfe892
/main/board.py
23bf487563dab53661c51941f95d421bebc6f853
[]
no_license
tanghee/PULZIP_Project_Flask_Add
a5cd05190b4cb9f280508e44b797728a6a037efe
e240a510b7ec8cb94fff1a7e3ad47b30fe1b8c2a
refs/heads/master
2023-02-01T12:45:23.377652
2020-12-16T01:50:57
2020-12-16T01:50:57
321,837,801
0
0
null
null
null
null
UTF-8
Python
false
false
6,668
py
from main import * from flask import Blueprint blueprint = Blueprint("board", __name__, url_prefix="/board") category = [ {"박물관소개": { "관장 인사글": "about", "관람 안내 및 오시는 길": "location", "관련 기사": "news", "로고 소개": "logo", }}, {"풀짚공예 전시실": { ...
[ "s2018w37@e-mirim.hs.kr" ]
s2018w37@e-mirim.hs.kr
a2f5d5a0f1175cfa8fd5b843ffa900cbfa6afda5
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-2/dn4 - krajevne funkcije/M-17046-2105.py
762885ace55c8b9721373140258748191ebfffad
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
10,796
py
from math import sqrt def koordinate(ime, kraji): for kraj_ime, kraj_x, kraj_y in kraji: if ime == kraj_ime: return (kraj_x, kraj_y) return None def razdalja_koordinat(x1, y1, x2, y2): return sqrt( (x2-x1)**2 + (y2-y1)**2 ) def razdalja(ime1, ime2, kraji): x1, y1 = koordinate(ime1,kraji) ...
[ "benjamin.fele@gmail.com" ]
benjamin.fele@gmail.com
40b2cbe54c638b602a87ec294c62d7fd598a0607
4b27a7e99c55a343cb845d085dd88aa7e77a8079
/iter.py
817bc91b4ad139ed8a8b3c340c75968d37d55a26
[]
no_license
damodardikonda/Python-Pandas-
a1f0395a9514dbb639116d35ae465b7135d92c2c
de95146cbb01047d87a5bb297d94c21181dbd629
refs/heads/master
2022-09-19T01:25:31.985004
2020-06-05T07:35:44
2020-06-05T07:35:44
269,561,445
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
import numpy as np import pandas as pd df=pd.DataFrame(np.random.rand(4,3),columns=['c1','c2','c3']) print(df) for k,v in df.iteritems(): print(k,v) print("\n\nthrough row \n\n") for row,row_index in df.iterrows(): print(row,row_index) print("\n\n giving tuple asa value. first it print an index\n\n") f...
[ "damodar2dikonda@gmail.com" ]
damodar2dikonda@gmail.com
d18ab02ef3bfd99d5e082a7ae112e606c37c79e5
c14b274e98beeea6ad9f49b56dbc658e9083e160
/Instanssi/ext_programme/migrations/0003_auto__add_field_programmeevent_event_type.py
933e006bed9e56f87ab96c3d8cf25b9a7338ec97
[ "MIT" ]
permissive
Yaamboo/Instanssi.org
3096e59aa3c328dd52e4a5b8c29cdf8e5baddec0
17a09c3013ea83f46bd66dd412cfe5bb3a606710
refs/heads/master
2021-01-24T21:58:02.707521
2014-02-12T22:10:02
2014-02-12T22:10:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,017
py
# -*- coding: 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): # Adding field 'ProgrammeEvent.event_type' db.add_column('ext_programme_programmeevent', 'event_type', ...
[ "katajakasa@gmail.com" ]
katajakasa@gmail.com
84a090daec0107588cb4ff337ef930806f29e773
5ae15acd125798f3746c092d15dab5a9456d0121
/backend/home/migrations/0002_load_initial_data.py
b745cb17280fa4e392e7f36d0c5f4cb05d00b5a9
[]
no_license
crowdbotics-apps/kirpi-19355
8c5be04d51dccf08c44101e35561ad7f78207407
52aaca086597f9f9a98bc5af889d6f7addf0ac10
refs/heads/master
2022-11-25T06:54:58.142128
2020-08-04T03:43:38
2020-08-04T03:43:38
284,869,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "kirpi" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") hom...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
ceeb42f92f947c9545d365c69ef98e60cff3c358
0c507f09b7328e58b8dc2003a30056699c772d6d
/binary_search/search_insert_position.py
de25f23ea581768d74647a7902df6e71d7dc0281
[]
no_license
chicocheco/leetcode_exercises
81c531fa418eaa62097ccda07cf1d21a882fb965
c97b47907ddf6b5b26b448969f515068648ea9d9
refs/heads/main
2023-08-30T07:50:05.498088
2021-11-16T16:27:44
2021-11-16T16:27:44
402,787,468
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
""" https://leetcode.com/problems/search-insert-position Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Input: nums = [1,3,5,6]...
[ "stanislav.matas@gmail.com" ]
stanislav.matas@gmail.com
72db980ed59813e041dd86e6d8a4e7bbe29346aa
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Python_Scripting_for_Computational_Science_Third_Edition/app/wavesim2D/F77/Verify/test1.py
102913c481edabc9df7232e41e9ae80f82a89026
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
786
py
#!/usr/bin/env python import os, shutil, glob os.chdir(os.pardir) shutil.copy('main.f.orig', 'main.f') shutil.copy('F77WAVE.fcp.orig', 'F77WAVE.fcp') # edit main.f such that solutions are dumped, # also use a small grid os.system("perl -pi.old~ -e 's#^C(\s+)call dump# $1call dump#' main.f") os.system("perl -pi.old~ -e...
[ "bb@b.om" ]
bb@b.om
51a5ce2d7d807281164d71093567d658e7265769
243ce25168eea65144713a1100ca997a2d29f280
/p7.py
5941a9ed24c7c2caed8a8b366ceac70c9efd6811
[]
no_license
acadien/projecteuler
6aa1efbb1141ecf36d6b23bb6b058070e5e881e0
2efb0b5577cee7f046ed4f67d0f01f438cbf3770
refs/heads/master
2020-04-28T21:33:49.631044
2013-12-06T19:25:20
2013-12-06T19:25:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
#!/usr/bin/python def prod(l): tot=1 for i in l: tot*=int(i) return tot num="73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231...
[ "adamcadien@gmail.com" ]
adamcadien@gmail.com
ea125b5976ac3edee7174c1cbb098beeb5a9b5e9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_212/ch117_2020_03_30_13_52_24_265011.py
dab219b83b876930425f22a7e679427c1de4cd78
[]
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
294
py
from mat import sen def snell_descartes (n1, n2, anguloI) : ânguloR = ( n1/n2 ) * sen(anguloI) return ânguloR n1 = input ("qual o meio que o raio provem?") n2 = input (" qual meio para o qual o raio passsa?") anguloI = input ("qual o angulo de incidência?") print (snell_descartes)
[ "you@example.com" ]
you@example.com
a9c34a38bcbaac8f21ed25259bc049d08cead3f7
ae83914f309ee203c9743a1c2273539862126e92
/src/modules/bilstm_crf.py
82e924e47768fb453d725c3dba95f9d9b1f84159
[]
no_license
kajyuuen/pytorch-ner
e416af264dd24470b0d7c3c10346a96e241810da
5b6084b122aa7bfe2f18fe63411535f180e24f8d
refs/heads/master
2020-08-10T16:52:24.310618
2019-10-18T06:57:16
2019-10-18T06:57:16
214,380,670
2
0
null
null
null
null
UTF-8
Python
false
false
2,213
py
import torch import torch.nn as nn import torch.nn.functional as F from pytorch_partial_crf import CRF from pytorch_partial_crf import PartialCRF from typing import Tuple from src.common.config import PAD_TAG from src.common.utils import create_possible_tag_masks from src.modules.bilstm import BiLSTM class BiLSTM_CR...
[ "kajyuuen@gmail.com" ]
kajyuuen@gmail.com
c54a497e07b5067727c7be96464ec42e722a69f7
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_0928+031/sdB_pg_0928+031_coadd.py
be060adebe66994d01bc1fb878a3d294c48c85fb
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[142.748667,2.842431], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_0928+031/sdB_pg_0928+031_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
5601667b2989a7eb779fe5ff718bd7670f4c92cb
52e8841ac9603e994fc487ecb52f232e55a50e07
/Bio/NeuralNetwork/Training.py
af8c2f0be8fc4b890d4c2958db495acfaf54b2ad
[]
no_license
rored/RozszerzenieBio.PDB
aff434fddfe57199a7465f79126eba62b1c789ae
7c9d696faacabff912b1263fe19291d6a198c3c2
refs/heads/master
2021-01-21T04:50:37.903227
2016-06-23T19:15:42
2016-06-23T19:15:42
55,064,794
0
3
null
null
null
null
UTF-8
Python
false
false
3,149
py
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Provide classes for dealing with Training Neural Networks.""" # standard modules import random __docformat__ = "restructuredtext en" class Tra...
[ "Viktoria@MacBook-Pro-Viktoria.local" ]
Viktoria@MacBook-Pro-Viktoria.local
4734c0100d27206fceada3dd91a5fcf113ff12e2
82f2bc45d08d06395009f24e9a0eb8de10c9aec9
/src/canvas_utils/query_sorter.py
6877bd6e68b6848492c223398af00fdf77f33c98
[]
no_license
paepcke/canvas_utils
3d4502634d639a6f3ea600e9b66c6ca8411eb44d
6b7d9d4ccf93d034c88ed058ed06ddf02f124785
refs/heads/master
2020-04-09T04:23:49.766448
2019-12-19T22:00:34
2019-12-19T22:00:34
160,021,203
3
0
null
null
null
null
UTF-8
Python
false
false
15,736
py
#!/usr/bin/env python ''' Created on Aug 14, 2019 @author: paepcke ''' from _io import StringIO import copy import os import re import sys # NOTE: don't import utilities module here. # would lead to circular import. class QuerySorter(object): ''' Runs through all queries in the Queries subdirecto...
[ "paepcke@cs.stanford.edu" ]
paepcke@cs.stanford.edu
fe12c229a6c55bc5aa28a38dcbb95155d30832de
0ca2d3fcd53fb9795c2d8741affe87cccede300c
/scipy_doc/routines.sort.html/numpy.argmax.py
93c8150171a861d2001b87f58f31e8fd46dc7b9c
[]
no_license
yzozulya/numpy_test_examples
9bafc5d0711149a3366a0644309be6ff6d480c7a
4b1e65b160728a4c483d883bd00b72b2f61377b8
refs/heads/master
2021-01-01T19:01:50.560912
2015-04-08T12:18:46
2015-04-08T12:18:46
33,604,541
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
import numpy as np a = np.arange(6).reshape(2, 3) a np.argmax(a) np.argmax(a, axis=0) np.argmax(a, axis=1) b = np.arange(6) b[1] = 5 b np.argmax(b) # Only the first occurrence is returned.
[ "yulia.zozulya@jetbrains.com" ]
yulia.zozulya@jetbrains.com
3033ca338ddf9127998248fb43affafd10c89356
55afd3bbe5187dba96be169a7c068c7cf7543447
/article17/speciessummary/attrs_conclusion/td_range_conclusion.py
5198c6beeb71524b0e782223750eee3efb0afa07
[]
no_license
eaudeweb/art17-2006
6d9413439e10f4db0b72fc49c80b7c50ee1ef59e
4bc61cd2972f94769dae97b95ccb55f2a0952cf1
refs/heads/master
2016-09-05T13:33:19.280952
2014-01-30T09:54:27
2014-01-30T09:54:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
# Script (Python) # /article17/speciessummary/attrs_conclusion/td_range_conclusion # params: 'assesment_speciesname, region, record, conclusions' ## Script (Python) "td_range_conclusion" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters...
[ "alex@grep.ro" ]
alex@grep.ro
2da48ad1d33abb08e7a09bd8a674dd46969a63a8
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/9b44109ba3091e6538dedfac2987cf31793e892d-<configure_cpu_and_memory>-bug.py
fddbaac7d9ab62f50ffbbd644493ecf7bba42ed2
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,690
py
def configure_cpu_and_memory(self, vm_obj, vm_creation=False): if ('hardware' in self.params): if ('num_cpus' in self.params['hardware']): try: num_cpus = int(self.params['hardware']['num_cpus']) except ValueError as e: self.module.fail_json(msg='hardw...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
e906b7e87133a2381c44cadedd1eb9b84a7f7ba0
34851e4fedf2fea3aa5b87a923951ee8887344e9
/public_markets/campbxusd.py
5325df38835caeb491fda2567a16a2633a0ae639
[]
no_license
kafitz/btc-arbitrage
cfb8a32bdea0312bb3a5a9bd70a36ebdf7f6d011
52d66bd47c2bccb9a75c06dda0ee4db9a7436ebb
refs/heads/master
2021-01-23T18:11:11.211742
2013-03-25T18:16:13
2013-03-25T18:16:13
8,922,078
1
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
import urllib2 import json import logging from market import Market class CampBXUSD(Market): '''Updates CampBX depth tables''' def __init__(self): super(CampBXUSD, self).__init__("USD") self.update_rate = 25 self.depth = {'asks': [{'price': 0, 'amount': 0}], 'bids': [{'price': 0, 'amoun...
[ "kafitz22@gmail.com" ]
kafitz22@gmail.com
9e553106f69822bb6c99bf3d3f16c2118c568b90
9cc51b53bc3cac814843758fb98d212cd9656a0b
/model/product_base_info.py
40efd57256ca03c7d4d1aabcf8292fbcf495cfef
[ "Apache-2.0" ]
permissive
juxiangwu/PSS
ead5317e54fcc3ad12e6df10b9956e276cfa8a6d
9108ca6b669f0bec9647d015d14b421dacc02645
refs/heads/master
2021-05-10T15:53:01.649567
2018-02-17T14:35:37
2018-02-17T14:35:37
118,563,046
0
0
null
null
null
null
UTF-8
Python
false
false
3,037
py
# -*- coding:utf-8 -*- # 商品基本信息表 from config.appconfig import db import datetime class ProductBaseInfo(db.Model): __tablename__ = "t_product_base_info" id = db.Column('id',db.Integer,primary_key = True) shopId = db.Column('shop_id',db.Integer) name = db.Column('name',db.String(128)) code = db.Col...
[ "kkoolerter@gmail.com" ]
kkoolerter@gmail.com
d4450b0c6d0c8606e68e61901bc5d21cb770cc72
e23a4f57ce5474d468258e5e63b9e23fb6011188
/090_logging/examples/Python Logging – Simplest Guide with Full Code and Examples/008_9. How to include traceback information in logged messages.py
50bc97aa806ada705b4a3271a710053b45bd153f
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
974
py
# Besides debug, info, warning, error, and critical messages, you can log exceptions that will include any # associated traceback information. # With logger.exception, you can log traceback information should the code encounter any error. logger.exception will log # the message provided in its arguments as well as the ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
7d2228d08984e1abc9de2e0912b38ac6830e3e21
f3b233e5053e28fa95c549017bd75a30456eb50c
/bace_input/L4M/4M-3J_MD_NVT_rerun/set.py
15a567d11dc43cc9d57465a49bebaf753252a7d4
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
import os dir = '/mnt/scratch/songlin3/run/bace/L4M/MD/ti_one-step/4M_3J/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi.in' temp_prodin = filesdir + 'temp_prod.in' temp_pbs = filesdir + 'temp.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
07e54c5c203580c9ff29ebbc1c41db6d46819a28
a3cc7286d4a319cb76f3a44a593c4a18e5ddc104
/lib/surface/datastore/export.py
4794c8107aa6b3cc5df32a1d806019761b0348b6
[ "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
3,599
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
a0aed7ae9aa7d5db56497466a5298e8c84067b43
9da09ad3aba9501d856f343bbc6d55bdcff1a346
/apiv1/views.py
68b9a851a6bf654e2fdb7270c5f321e4be0f2171
[]
no_license
akiyoko/drf-vue-sample.vue.config.js
696220a3bf7b590090d8ebe3658bf2f8c88c94b5
c988326e43a89247e7620b115d37bb81060c5532
refs/heads/master
2020-05-01T19:41:24.296791
2019-03-25T19:54:53
2019-03-25T19:54:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated from shop.models import Book from .serializers import BookSerializer class BookViewSet(viewsets.ModelViewSet): queryset = Book.objects.all() serializer_class = BookSerializer permission_classes = (IsAuthenticated,)...
[ "akiyoko@users.noreply.github.com" ]
akiyoko@users.noreply.github.com
71a60be3123022f45cd35066b7233371ce0fd3d4
b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6
/verp/support/doctype/issue/issue.py
be0ef67aab804d959242aecc2b10a7fc4dbe6dc4
[]
no_license
vsadminpk18/verpfinalversion
7148a64fe6134e2a6371470aceb1b57cc4b5a559
93d164b370ad9ca0dd5cda0053082dc3abbd20da
refs/heads/master
2023-07-13T04:11:59.211046
2021-08-27T06:26:48
2021-08-27T06:26:48
400,410,611
1
0
null
null
null
null
UTF-8
Python
false
false
12,033
py
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import json from frappe import _ from frappe.model.document import Document from frappe.utils import now_datetime, time_diff_in_seconds, g...
[ "admin@vespersolutions.tech" ]
admin@vespersolutions.tech
2dd2beb5a598c05ee0915af77e5ed8c43a7e983b
677ee80f61be1faa4397c747e5c8c21e1e8fab17
/test_case/case49.py
7a03366997b09cb24d31db7aec56a25c97cbf11f
[]
no_license
YGragon/PythonSelfStudy
9f08d1d295f075e996dd493c68c99be94176f3d5
ffbf0a7a1f9bfb053eb878fac5467563d8e3fb92
refs/heads/master
2021-09-10T14:08:02.511883
2018-03-27T14:31:10
2018-03-27T14:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
# 题目:使用lambda来创建匿名函数 #!/usr/bin/python # -*- coding: UTF-8 -*- MAXIMUM = lambda x,y : (x > y) * x + (x < y) * y MINIMUM = lambda x,y : (x > y) * y + (x < y) * x a = 10 b = 20 print('The largar one is %d' % MAXIMUM(a,b)) print('The lower one is %d' % MINIMUM(a,b))
[ "1105894953@qq.com" ]
1105894953@qq.com
7b14a4dce496da2bceb177b18310310a5ac69c53
f7c07caa1210d2a08e8433cdd854b1232efa88e3
/Directory-And-File-Modules/Linecache-Module/Read-A-Specific-Line-In-A-File.py
5eb74f24c0ccceaab9a46b4594528dd0fdab16a6
[]
no_license
rchicoli/ispycode-python
c2fbecc28bf32933150986d24f77b7297f50b78e
fa27f2377943ac2e4d983065406578151091e3f5
refs/heads/master
2020-03-20T11:34:59.698618
2018-06-14T21:14:02
2018-06-14T21:14:02
137,407,150
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
import linecache line = linecache.getline('file.txt',2) print line
[ "rafaelchicoli@hotmail.com" ]
rafaelchicoli@hotmail.com
ef6cf78a22ffb85b42ae2798abe283fe30f6ff82
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc078/A/3912467.py
658f7cff8c6dea4de0cd4537b922000c3104b973
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
228
py
n = int(input()) cards = list(map(int, input().split())) a = 0 b = sum(cards) min_diff = float('inf') for i in range(n - 1): a += cards[i] b -= cards[i] min_diff = min(min_diff, abs(a - b)) print(min_diff)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
3a183e26c8edd2de4a97a8f172af772f6a7dd122
148072ce210ca4754ea4a37d83057e2cf2fdc5a1
/src/core/w3af/w3af/plugins/tests/infrastructure/test_dot_net_errors.py
ff918717ca0724de044b8a05f9c1bfaf423b4898
[]
no_license
ycc1746582381/webfuzzer
8d42fceb55c8682d6c18416b8e7b23f5e430c45f
0d9aa35c3218dc58f81c429cae0196e4c8b7d51b
refs/heads/master
2021-06-14T18:46:59.470232
2017-03-14T08:49:27
2017-03-14T08:49:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
""" test_dot_net_errors.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the h...
[ "everping@outlook.com" ]
everping@outlook.com
601167fca8573e9ec1732967599f8addb1c342fc
233f97c6f360d478bf975016dd9e9c2be4a64adb
/Circle and Lattice Points.py
3591c2952ec5ff8683a94b818e74834b0ad5c205
[]
no_license
unknownboyy/GUVI
3dbd1bb2bc6b3db52f5f79491accd6c56a2dec45
d757dd473c4f5eef526a516cf64a1757eb235869
refs/heads/master
2020-03-27T00:07:12.449280
2019-03-19T12:57:03
2019-03-19T12:57:03
145,595,379
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
for _ in range(int(input())) : n=int(input()) count=0 for i in range(-n,n+1): for j in range(-n,n+1): if i**2+j**2==n**2: count+=1 print(count)
[ "ankitagrawal11b@gmail.com" ]
ankitagrawal11b@gmail.com
8a44e891c7a3a9bce2c86d9cd8efebbbcfe03c93
42de984305948658f7487a19f0019034d53781e3
/Config/AutoStkConfig.py
a9d46ed52c7976044f6e601356f39da0cca81080
[]
no_license
lzwhw2000/MoDeng
a5037d3298f0285d9aca6af831084dbc60738bba
a521f23214a30ff0497e0ad5797e2190be057848
refs/heads/master
2020-08-10T17:16:33.771057
2019-10-10T10:01:39
2019-10-10T10:01:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,827
py
# encoding=utf-8 """ 这个脚本是用来存储 stk自动检测 程序的配置信息 """ import os cubic_test_last_step = 7 # 在曲线拟合时,取最后的几个值进行二次拟合 # 图片存在的路径,如果没有自动创建 if os.path.exists('C:/Users/paul/Desktop/软件代码/MoDeng/TempPicStore/'): pic_save_dir_root = 'C:/Users/paul/Desktop/软件代码/MoDeng/TempPicStore/' elif os.path.exists('F:/软件代码/MoDeng/T...
[ "1210055099@qq.com" ]
1210055099@qq.com
508e5a4048912eff6337b872b13c26966803af58
372edad1cd6399cadba82818e9fb9682c3bac1b4
/packages/python/plotly/plotly/validators/layout/grid/_xaxes.py
0d74e6e6750d28b16d373255bc04c0c95bdc1dd2
[ "MIT" ]
permissive
OGVGdev/plotly.py
78bfa9e25e92c367f0da30af7885cdd163ba612b
96a9101c79aa588023f56153bf274d0d570ffcf6
refs/heads/master
2022-11-10T16:44:06.732450
2020-06-26T13:07:06
2020-06-26T13:07:06
275,173,321
1
0
MIT
2020-06-26T14:19:41
2020-06-26T14:19:40
null
UTF-8
Python
false
false
756
py
import _plotly_utils.basevalidators class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__(self, plotly_name="xaxes", parent_name="layout.grid", **kwargs): super(XaxesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
[ "noreply@github.com" ]
OGVGdev.noreply@github.com
a09316c76e6e4ff2072418a9532609c531667c01
4b2fc3b910ea69b5dbaa2acd76527d7735880421
/mule/wsgi.py
7792c42102941d861aa4a9074fd595a260d5140b
[]
no_license
tefra/py-mule
bb3ebdca16f0074a1d37e1b66527dc2d12490e31
5e82638db1e2f486810be995dceefe93d032787f
refs/heads/master
2021-06-11T14:02:19.287771
2018-09-09T20:02:47
2018-09-10T08:20:04
146,319,905
0
0
null
2021-03-19T22:17:15
2018-08-27T15:50:09
Python
UTF-8
Python
false
false
385
py
""" WSGI config for mule 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/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
[ "chris@komposta.net" ]
chris@komposta.net
f108a254b580b424e84bb5fd810f6968e00aa74f
b31e7898aa5131125f243eaff973049b17e08512
/.venv/lib/python3.10/site-packages/dill/tests/__main__.py
b68e86778239f5f5f2118187bfce74c1a380518a
[]
no_license
ramsred/MyProjects
f2978eeda3d73421daf0da9f2d012caef6c3ccda
a7f90ef1ecfbc7517be61e71286bd14405985de5
refs/heads/master
2023-07-09T03:19:17.683705
2023-07-02T19:30:19
2023-07-02T19:30:19
71,980,729
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2018-2022 The Uncertainty Quantification Foundation. # License: 3-clause BSD. The full license text is available at: # - https://github.com/uqfoundation/dill/blob/master/LICENSE import glob import os import sys impor...
[ "venkataramireddy534@gmail.com" ]
venkataramireddy534@gmail.com
f3b2560ba77a4984ceabfcf27511aa0776e95190
d735b8354e06eb26aa5ed0ac25ebf96bdd8d67b6
/python16/day1-21/day003 字符串/07 字符串常用操作2.py
352270ab025dd6ec5f426bbad105b2152683d6ba
[]
no_license
cn5036518/xq_py
e004766e6b2582ba37d7335320ed6b42f563c46c
ac932dc7fcb89a7a7faf8bda80791743755fd557
refs/heads/master
2021-07-15T18:44:19.244025
2020-09-12T09:38:25
2020-09-12T09:38:25
208,355,433
0
0
null
null
null
null
UTF-8
Python
false
false
4,272
py
#!/usr/bin/env python #-*- coding:utf-8 -*- #五 条件判断 # #1 判断是否由字母和数字组成 # s = "abc123" # s2 =s.isalnum() # print(s2) #True # # s = "abc123一二壹" # s2 =s.isalnum() #注意:一二 壹 isalnum()也认识 # print(s2) #True # # #2 判断是否是字母组成 # s ="abc" # s2 =s.isalpha() # print(s2) #True # # s ="abc " # s2 =s.isalpha() #多了一个空格 # print(s2) #...
[ "wangtongpei@meicai.cn" ]
wangtongpei@meicai.cn
b557056f5ed14dcda81056ce8e5cc36a59a3db25
35117d0c9b33e3591115b921de3bf781d6dd0dca
/chat/consumers.py
8e97a9252c5687b11467a50d63459d6041a6e65d
[]
no_license
cnbillow/webim
f65197343aa41eebc9eaf8d4abcd7e349fc0433f
6320580ca742754430162a4ce8be61d065b45d70
refs/heads/master
2020-04-07T15:38:26.708529
2018-12-03T06:46:56
2018-12-03T06:46:56
158,494,142
0
0
null
2018-11-21T05:12:59
2018-11-21T05:12:58
null
UTF-8
Python
false
false
2,668
py
# chat/consumers.py from channels.generic.websocket import AsyncWebsocketConsumer from asgiref.sync import async_to_sync from channels.layers import get_channel_layer from .models import IMGroup import json class ChatConsumer(AsyncWebsocketConsumer): # 当 websocket 一链接上以后触发该函数 # self.scope可以类比的理解为django中的self.requ...
[ "js_huang@foxmail.com" ]
js_huang@foxmail.com
384c86b5b2f05720e11321d45a390059c0bb5b0c
f2d297f8c2590ca9a172d223285d462236826c23
/backend/chat/migrations/0001_initial.py
0e414882ec563661b7ceda17f318a2554c0e76d1
[]
no_license
crowdbotics-apps/lifit-24470
139aa9a2d582362c2bf9489068080f6ee903bcfc
9003aab61e747de542c7c73b402248e8008cc6c6
refs/heads/master
2023-03-07T02:39:01.321520
2021-02-12T15:34:44
2021-02-12T15:34:44
338,357,664
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
# Generated by Django 2.2.18 on 2021-02-12 15:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('chat_user_profile', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
253a0d5a8d540228170ac6262fe99d0a839bb0b5
489da428bc0e1ab8f5117c0f8ba5ddb7aff05360
/scripts/motors.py
a3e07bacd50b1dce8373510020926d7be4a24904
[ "BSD-3-Clause" ]
permissive
norihisayamada/pimouse_ros
4f77e769b7ac9cbfc4af6e703764af1d2df56b30
3b07880a6ceb584d92cf640c1a38864130d44189
refs/heads/master
2020-04-17T03:03:49.424738
2019-02-23T11:05:38
2019-02-23T11:05:38
166,164,916
1
0
BSD-3-Clause
2019-01-17T05:18:41
2019-01-17T05:18:41
null
UTF-8
Python
false
false
3,430
py
#!/usr/bin/env python #encoding: utf8 import sys, rospy, math from pimouse_ros.msg import MotorFreqs from geometry_msgs.msg import Twist from std_srvs.srv import Trigger, TriggerResponse from pimouse_ros.srv import TimedMotion #追加 class Motor(): def __init__(self): ...
[ "ryuichiueda@gmail.com" ]
ryuichiueda@gmail.com
e96ed567a6e93e60ecbb430c97f1b152028d82cc
4502834012bd50135569a820a502c2d965b0a1df
/wdom/themes/vital.py
05f72b22f634c0e9e334e8dcfe9d7b66955ab40a
[ "MIT" ]
permissive
miyakogi/wdom
9db7fccf7402fa2e2fc97f53c2a42e4aa2b8633a
c7cd8b3428ca154af6fb1ecb6c7d2f0e17551802
refs/heads/master
2020-04-04T22:07:12.970584
2018-03-05T15:32:55
2018-03-05T15:32:55
49,849,994
72
14
null
null
null
null
UTF-8
Python
false
false
2,152
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # flake8: noqa from wdom.tag import NewTagClass as NewTag from wdom.themes import * name = 'Vital' project_url = 'https://vitalcss.com/' project_repository = 'https://github.com/doximity/vital' license = 'Apache 2.0' license_url = 'https://github.com/doximity/vital/blob/...
[ "miyako.dev@gmail.com" ]
miyako.dev@gmail.com
91f2d3d83f90775793a431658c4f158ea7eeeb1b
aea0837dd60da3e3746c5ab0970bde246db9493d
/allapps/profiles/signals.py
4692cdce5b6e15e132221dfde54eb9745bd88e20
[]
no_license
anykate/veryacademy-demo
5f05707b1fd9085ef1a088b3fc02f48dfa0bd897
697d9ab6fffd169c80d6b3fcc0e838e4b5ae6739
refs/heads/master
2023-03-13T18:52:39.499619
2020-07-15T19:45:22
2020-07-15T19:45:22
279,959,596
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
from django.contrib.auth import get_user_model from django.db.models.signals import post_save from django.dispatch import receiver from ..profiles.models import UserProfile @receiver(post_save, sender=get_user_model()) def create_user_profile(sender, instance, created, **kwargs): if created: UserProfile....
[ "aryamane.aniket@gmail.com" ]
aryamane.aniket@gmail.com
37550aa18fc249a080093d9df9dddf1746e817c1
d721258b53f0f44b1010cb8e8efac8e2a5c96c26
/adventure/migrations/0015_auto_20160503_2339.py
adf3848226a6d63e10f367b4eadfaf5402adac09
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
kdechant/eamon
a6662285f51a6cad5797bb9be92ca709ae36921c
080a43aa80c3a1605c402e68616545a8e9c7975c
refs/heads/master
2023-05-24T08:20:18.551604
2022-08-14T10:27:01
2023-04-08T07:31:45
49,559,304
28
7
MIT
2023-03-14T21:09:55
2016-01-13T08:07:28
TypeScript
UTF-8
Python
false
false
1,252
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-04 06:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adventure', '0014_auto_20160419_2324'), ] operations = [ migrations.AlterFie...
[ "keith.dechant@gmail.com" ]
keith.dechant@gmail.com
55f755b1f5a9ff18d933ab5ec6fe7a4c62a49b2c
7e01c039f2427d434a4ef44a1b9dc0ea21db65ba
/venv/lib/python3.8/site-packages/django/contrib/gis/db/backends/postgis/adapter.py
8f456ff7c0f6bac9b3fc69a9235e9221b9a73623
[]
no_license
dmfranz/Spike-exercise
09f8051163d2a63dfbc3f75da2de0a1bbbbb122d
83971e95a72d504f629778fece2cdfb953e5d08b
refs/heads/main
2023-08-23T04:18:43.934471
2021-10-11T04:54:28
2021-10-11T04:54:28
413,568,735
0
1
null
2021-10-11T04:36:22
2021-10-04T20:10:01
Python
UTF-8
Python
false
false
2,257
py
""" This object provides quoting for GEOS geometries into PostgreSQL/PostGIS. """ from psycopg2 import Binary from psycopg2.extensions import ISQLQuote from django.contrib.gis.db.backends.postgis.pgraster import to_pgraster from django.contrib.gis.geos import GEOSGeometry class PostGISAdapter: def __...
[ "marmara@wisc.edu" ]
marmara@wisc.edu
32cd827945206d96c0bf02543fc24863d50c006a
7329f788dc8e48db398cee81da7ca9621d681878
/mljar/client/result.py
5d000930c285a3cba9dfb7dbb6912c5c7b5fc50d
[ "Apache-2.0" ]
permissive
armandoayudame/mljar-api-python
87c810168d348bcc988aa816f782e8f32f6c2281
b4843a59bb22060707da569b4aa569ab40669421
refs/heads/master
2020-03-09T06:33:33.006071
2017-07-20T15:22:34
2017-07-20T15:22:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
from base import MljarHttpClient from ..model.result import Result from ..exceptions import NotFoundException class ResultClient(MljarHttpClient): ''' Client to interact with MLJAR results (models). ''' def __init__(self, project_hid): self.url = "/results/" self.project_hid = project_h...
[ "pplonski86@gmail.com" ]
pplonski86@gmail.com
e99861aa467364b0490888232da7c8bcbacdb2f1
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/diff_disk_settings.py
ac0d894264c9c6e558e3b2eb6af585ab1412167d
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,184
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
4b8702aa921be40726e62a3312c0bce0e233541d
41a1b3d3491037000de0735823c3d8720f746af0
/Lib/fontgoggles/mac/sliderGroup.py
ec445810098eb93da099699a4d8f63883e05ffa7
[ "Apache-2.0" ]
permissive
chrissimpkins/fontgoggles
a8ea5391605c0197e85db211d81b1e290a1f6909
814eef1633e017da6fb9a48441e5860d4b5769a3
refs/heads/master
2023-03-21T02:22:11.102996
2021-03-26T15:45:40
2021-03-26T15:45:40
244,532,440
1
0
Apache-2.0
2020-03-03T03:28:11
2020-03-03T03:28:10
null
UTF-8
Python
false
false
7,019
py
import AppKit from vanilla import Button, EditText, Group, Slider, TextBox, VanillaBaseObject from fontgoggles.misc.properties import weakrefCallbackProperty class SliderGroup(Group): _callback = weakrefCallbackProperty() def __init__(self, width, sliderInfo, continuous=True, callback=None): super()...
[ "justvanrossum@gmail.com" ]
justvanrossum@gmail.com
868328ae66f047ce34cae69b20f7d9f0840e2497
0fd9cb5e8bfb26fa62b90e65f7fbaa2fd233d3d3
/pyang/python/pyang/error.py
2b7b3dee1c4d4fc1b2c1e6a73fb65c95005f3242
[]
no_license
levensailor/pip4lambda
0cff15b2dba3ba586652c6cc914252daf01a874b
22a83a43141f9bf72fdd0cd5faee3b88cc7e49fa
refs/heads/master
2022-03-02T05:31:48.894906
2022-02-11T16:38:00
2022-02-11T16:38:00
174,207,440
2
0
null
null
null
null
UTF-8
Python
false
false
15,128
py
import copy ### struct to keep track of position for error messages class Position(object): __slots__ = ( 'ref', 'line', 'top', 'uses_pos', ) def __init__(self, ref): self.ref = ref self.line = 0 self.top = None self.uses_pos = None def...
[ "jlevensailor@presidio.com" ]
jlevensailor@presidio.com
72e698fc4e1fed404313ed161df45403fb8971a5
6411acb3828fec8cc79f6f2630a4d99e8352a9aa
/326.py
f29ee1980db2b5d3ee63d806ebccad065e793aa1
[]
no_license
zhouliuling/Leetcode_Task
95f55a3ca33b561a130fc15272e513d9af2c0317
0230d31351a4093e8ae6be5fe0c175f3f41e08ac
refs/heads/master
2020-05-25T18:44:59.377953
2019-09-12T02:14:22
2019-09-12T02:14:22
187,935,297
0
1
null
null
null
null
UTF-8
Python
false
false
380
py
## 3的幂 超时 ## 循环 class Solution(object): def isPowerOfThree(self, n): """ :type n: int :rtype: bool """ if n == 0: return False while n >= 3: if n % 3 == 0 and n > 3: n = n/3 if n == 3: break ...
[ "noreply@github.com" ]
zhouliuling.noreply@github.com
16e8e3d398736c6e70c7d28c21ad2a6de16d3a9a
dae4ab4882080344e5f505def7e2e59e0ed888b4
/polyaxon/scheduler/spawners/horovod_spawner.py
a7b8b56fea439cfa513c771759a4f92ac18a4103
[ "MPL-2.0" ]
permissive
vfdev-5/polyaxon
8c3945604e8eaa25ba8b3a39ed0838d0b9f39a28
3e1511a993dc1a03e0a0827de0357f4adcc0015f
refs/heads/master
2021-07-09T22:27:23.272591
2018-11-01T23:44:44
2018-11-01T23:44:44
154,320,634
0
0
MIT
2018-10-23T12:01:34
2018-10-23T12:01:33
null
UTF-8
Python
false
false
3,769
py
from scheduler.spawners.experiment_spawner import ExperimentSpawner from schemas.environments import HorovodClusterConfig from schemas.specifications import HorovodSpecification from schemas.tasks import TaskType class HorovodSpawner(ExperimentSpawner): MASTER_SERVICE = True WORKER_SERVICE = True @proper...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
80e587f59af889c72ed9b2e941144441a2eda60e
12123592a54c4f292ed6a8df4bcc0df33e082206
/py2/pgms/appx/timedeltas.py
a1e94beb0b7ea3d8b5472cc307de9f8b3ec91e80
[]
no_license
alvinooo/advpython
b44b7322915f832c8dce72fe63ae6ac7c99ef3d4
df95e06fd7ba11b0d2329f4b113863a9c866fbae
refs/heads/master
2021-01-23T01:17:22.487514
2017-05-30T17:51:47
2017-05-30T17:51:47
92,860,630
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
#!/usr/bin/env python # timedeltas.py - timedelta objects in datetime module from datetime import timedelta, datetime td1 = timedelta(days=2, hours=18) td2 = timedelta(hours=8.5) td3 = td1 + td2 days = td3.days hours = td3.seconds / float(3600) hoursahead = td3.total_seconds() / 3600 print days, hours, hoursahead dt1...
[ "alvin.heng@teradata.com" ]
alvin.heng@teradata.com