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
0d03f4997dff14b4117c84cbf186adcb19848f23
75ed4fe365819c9cb64522bd2bcb1590295dd4a8
/login/jwt_practice.py
5a325c3daf7ee8c0583f4b3065523263105acef1
[]
no_license
thals7/web
2aaa36fecf44851d65031dd0c9f9062748bfb3f5
f2c9aca7b3cf0116985fe17190a1274264bdd2c1
refs/heads/master
2023-02-26T08:30:49.663381
2021-01-29T00:48:50
2021-01-29T00:48:50
298,844,661
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
# https://pyjwt.readthedocs.io/en/latest/usage.html#encoding-decoding-tokens-with-rs256-rsa import jwt key = "thisissecret" encoded = jwt.encode({"some": "payload","like":"user_id"}, key, algorithm="HS256") print(encoded) decoded = jwt.decode(encoded, key, algorithms="HS256") print(decoded)
8c208878ff29e2333826cf8bd74f0aa5d3bb8157
70f5f279e051360310f95be895320d8fa6cd8d93
/extraPackages/matplotlib-3.0.2/tutorials/introductory/sample_plots.py
f1a1542ebec6b0b538466dedce1c4d478568158b
[ "BSD-3-Clause" ]
permissive
spacetime314/python3_ios
4b16ab3e81c31213b3db1e1eb00230621b0a7dc8
e149f1bc2e50046c8810f83dae7739a8dea939ee
refs/heads/master
2020-05-09T20:39:14.980041
2019-04-08T15:07:53
2019-04-08T15:07:53
181,415,024
2
0
BSD-3-Clause
2019-04-15T05:00:14
2019-04-15T05:00:12
null
UTF-8
Python
false
false
12,052
py
""" ========================== Sample plots in Matplotlib ========================== Here you'll find a host of example plots with the code that generated them. .. _matplotlibscreenshots: Line Plot ========= Here's how to create a line plot with text labels using :func:`~matplotlib.pyplot.plot`. .. figure:: ../../...
cabda38c0a0fe289c78c7072a6bd20d7cfacf53c
968aedcc9e58d718bb3895f89de5292d8caabe52
/leetcode/Hash-Table/valid-sudoku.py
0a49bd177048dcb0d60662a3ac173ff7e1202e64
[]
no_license
iCodeIN/competitive-programming-5
0729c9f09f12543455121fc633b051eb68529152
30bfafb6a7727c9305b22933b63d9d645182c633
refs/heads/master
2022-04-14T08:50:19.568207
2019-09-26T14:49:56
2019-09-26T14:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,208
py
class Solution: def isValidSudoku(self, board): """ https://leetcode.com/problems/valid-sudoku/description/ :type board: List[List[str]] :rtype: bool """ num = {"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,".":0} for i in board: num = {"1"...
db7c4a0b79b27d1685be085bd88b35cdddf098b6
35f163f0db45094ea44e6e698750e5780b8f1a79
/aiortc/rtcsctptransport.py
40a7178eca033abaac30e6921e02a2854cdbc32d
[ "BSD-3-Clause" ]
permissive
royfu/aiortc
886ac442a56af93e8771d9be0aa15702b0635fb4
4a781e15e061176470f8b2c7d30ab2e64d71da9e
refs/heads/master
2020-04-15T01:43:00.905480
2019-01-04T16:06:29
2019-01-04T16:06:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
55,614
py
import asyncio import enum import hmac import logging import math import os import time import warnings from struct import pack, unpack, unpack_from import attr import crcmod.predefined from pyee import EventEmitter from .exceptions import InvalidStateError from .rtcdatachannel import RTCDataChannel, RTCDataChannelPa...
a7d2a235ea6e49e5cb3cfec57704cd6952825467
84c9a6fb5e18741f14a55d0d737e2a556383770d
/venv/Lib/site-packages/w3af/core/data/misc/response_cache_key.py
14d57dbdfc5945b3463fb0df2398082606620c5c
[]
no_license
AravindChan96/Vulcan
638a1db2f84df08bc50dd76c7f142014d529fbec
5548a6f36f04108ac1a6ed8e707930f9821f0bd9
refs/heads/master
2022-11-05T15:05:54.224578
2020-06-19T20:44:14
2020-06-19T20:44:14
273,396,348
1
1
null
null
null
null
UTF-8
Python
false
false
4,841
py
""" response_cache_key.py Copyright 2019 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 ho...
1e1ef944556644234b01de801bc01eac0e0e4c2e
48637665afeacae58d99e5203524ed8f2313d649
/drawBot/context/gifContext.py
2beff8238f2b3c31daaab1128958396ab581b1af
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
bitforks/drawbot
35853a63d2d685cda7789d2dc3ca812bad0cc6d0
e66f12cf1a4fdd412d27d3b9f36092112b6cbd4f
refs/heads/master
2021-01-20T16:44:45.084558
2015-09-17T14:40:19
2015-09-17T14:40:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
import AppKit import Quartz import os import tempfile import subprocess from imageContext import ImageContext gifsiclePath = os.path.join(os.path.dirname(__file__), "tools", "gifsicle") if not os.path.exists(gifsiclePath): gifsiclePath = os.path.join(os.getcwd(), "tools", "gifsicle") class GifContext(ImageCont...
bda72a45c56ce6b1c4ea927d9a8567f2951fdb18
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sobers.py
86f6f5f194a353070e1f9fe678676c2bc8cd808f
[ "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
218
py
#calss header class _SOBERS(): def __init__(self,): self.name = "SOBERS" self.definitions = sober self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sober']
e8e3d8de20abef556139aa2fe44ad71d69297b8a
ba3231b25c60b73ca504cd788efa40d92cf9c037
/nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py
c16c8f0e9fb625627902597e36abce766c98e1f5
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zhuweigh/vpx13
f6d559ae85341e56472e3592cbc67062dac34b93
b36caa3729d3ca5515fa725f2d91aeaabdb2daa9
refs/heads/master
2020-07-04T22:15:16.595728
2019-09-20T00:19:56
2019-09-20T00:19:56
202,435,307
0
0
null
null
null
null
UTF-8
Python
false
false
6,292
py
# # Copyright (c) 2008-2019 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
e4eb072d8f1eeaaa4cdf7f001effd5d4efd96d64
3f84f51751c4191bb81c9df7094578461fb12a2d
/AtcoderProblems/ABC/ABC063/C.py
a0d1edc24569a3ff1337dee5f6488331c804eeb4
[]
no_license
rikukawamura/atcoder
7ff49f1bd8534b99d87fe81ef950e1ba77eee8b8
09c0cfe3ce25be56d338614a29e996f4106117cd
refs/heads/master
2023-08-13T21:21:19.058219
2021-09-28T10:02:42
2021-09-28T10:02:42
329,206,601
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
import pdb import itertools N = int(input()) S = sorted([int(input()) for _ in range(N)], reverse=False) non_ten = [] ten = [] for s in S: if s % 10 == 0: ten.append(s) else: non_ten.append(s) ten = sorted(ten) non_ten = sorted(non_ten) total = sum(ten)+sum(non_ten) ''' 1. 総合点が10の倍数且つ,10の倍...
5ca637eb2ebfb7ed1a6f2ba5d043a4f944c62dc9
8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7
/src/if.py
e048368b8880f8521d2dce9ee91380e173b38b8e
[]
no_license
quhuohuo/python
5b0a80dbec7d22a0b274e4a32d269e85d254718c
5732c5974519da8e8919dab42b36ab0ab2c99b37
refs/heads/master
2021-06-13T11:41:12.356329
2017-04-07T08:58:05
2017-04-07T08:58:05
75,054,981
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
#!/usr/bin/python #coding=utf-8 #简单的if语句 a = input() if a > 0: print "a > 0"
50899501d48aefbf8069736a20d4adf832d5c014
195f19578f3eea3f8c3e3a780655ce2f8dd009d0
/caixa_racional/views.py
11f834c7fb9fdce95b8fa501e59832eee8e6a44b
[]
no_license
osmarsalesjr/TheBeeFreshTeam
5b68c26d413940badc0814fb5c4cfc953b4fb695
9ca839083d903236054a813b265b0d09f34cb288
refs/heads/master
2022-12-17T11:22:30.482340
2019-07-14T00:11:50
2019-07-14T00:11:50
194,682,998
0
0
null
2022-12-08T01:47:50
2019-07-01T13:57:06
Python
UTF-8
Python
false
false
1,240
py
from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import generics from caixa_racional.models import Temperatura, BaseDeDados from caixa_racional.serializers import TemperaturaSerializer, BaseDeDadosSerializer class TemperaturaList(generics.ListCreateAPIView):...
e0069151847d0d09f9ad60a5a5d0b65200219968
7364f67ec30af26e02cf894124a60478fdb56df7
/make_plot.py
1a6f1bf02180fc24f9f1df327b547b1d9b144f93
[]
no_license
RaymondSimons/clear_local
b5430bbaf198654b190f7e41f261337389b6a209
dd5dfbabd0149ef8323750a887640407dc6d1477
refs/heads/master
2021-06-15T08:14:42.452049
2021-02-24T15:47:00
2021-02-24T15:47:00
147,576,608
0
0
null
null
null
null
UTF-8
Python
false
false
13,208
py
import numpy as np from matplotlib.backends.backend_pdf import PdfPages from astropy.io import fits, ascii from astropy.coordinates import SkyCoord import astropy.units as u import matplotlib as mpl from astropy.cosmology import Planck15 as cosmo import matplotlib.pyplot as plt from numpy import * import glob from glo...
c44e31915ea2575dc522eb49e10a41f4cfbe1772
308d75172c81bddb45c82429e4ddb3e09a3d220e
/01-OpencvPythonTutorial/ch22/06-hist-normalized.py
2040ee82d34de1984caff9ba18df6ac7a162de4c
[]
no_license
Damon0626/OpenCV3ForBeigner
956f2163249b5a3d1426089e3650695467a0427f
b3e8c5c201b6adabe067c9f2d1f614d93dcef447
refs/heads/master
2020-04-04T16:49:32.806739
2019-02-21T13:54:12
2019-02-21T13:54:12
156,095,139
1
1
null
null
null
null
UTF-8
Python
false
false
533
py
# -*-coding:utf-8-*- # @Author: Damon0626 # @Time : 18-12-16 下午11:25 # @Email : [email protected] # @Software: PyCharm import cv2 import numpy as np import matplotlib.pyplot as plt image = cv2.imread('contrast75.png') hist, bins = np.histogram(image.flatten(), 256, [0, 256]) cdf = hist.cumsum() # 累积分布 cdf_mormalized...
85e05e3c33ca86dc0280e5c8edbaa2ac143212c9
6930e9d3372e83cf43a47ae8ad165f83a218aee2
/capture/noworkflow/now/utils/bytecode/f_trace.py
93e8b89a211b8519aa8d55ca65e360e7e73c8d43
[ "MIT" ]
permissive
hugobowne/noworkflow
02ab47a8b3377ee56f1e7c4552a8dbcb3d15e5f0
333cbe274348428f1a9514fe81406f8416036845
refs/heads/master
2021-01-17T20:27:16.524245
2015-11-18T23:53:28
2015-11-18T23:53:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
# Copyright (c) 2015 Universidade Federal Fluminense (UFF) # Copyright (c) 2015 Polytechnic Institute of New York University. # This file is part of noWorkflow. # Please, consult the license terms in the LICENSE file. """ Define f_trace related interpreters and functions """ # pylint: disable=R0902 from __future__ impo...
84272d0c64a8128d488da1959bb8af7afbd979c7
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/not/sample_good807.py
55e1c22bfa14474792c197d5bc8d4af90bf8e645
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import stringprep import difflib import math import array import textwrap import datetime import readline import random nterms = 618 n1, n2 = 0, 1 if nterms <= 0: print("Please provide a positive integer.") elif nterms == 1: print("Fibonacci sequence upto", nterms, ":") print(n1) else: print("Fibonacci sequence:") ...
7012967cb00baae4f581bb049013311b240da290
61bc53ec90d92aece91753ec5ec9d25e0879a1e2
/content/pythia/pythia/tasks/vqa/textvqa/dataset.py
c4bc2ee38892409d39789dc107a8a061951eb380
[ "BSD-3-Clause" ]
permissive
aluka1994/textvqa
08a16c9b21ea9c5eca05f5d4d1763c190d2d7275
694cb2be08def519ba73be78e34664afa2c607b5
refs/heads/master
2021-05-26T23:44:21.973827
2020-04-08T22:05:58
2020-04-08T22:05:58
254,190,630
0
0
MIT
2020-04-08T20:14:11
2020-04-08T20:14:10
null
UTF-8
Python
false
false
1,047
py
# Copyright (c) Facebook, Inc. and its affiliates. from pythia.tasks.vqa.vizwiz import VizWizDataset from pythia.utils.text_utils import word_tokenize class TextVQADataset(VizWizDataset): def __init__(self, dataset_type, imdb_file_index, config, *args, **kwargs): super().__init__(dataset_type, imdb_file_i...
a355eeec111864ef7af555c51e8460f11f29c365
0581988cad7e0ea62a638d551548e409af1e5dc1
/20200529/UI_PPT2PDF/myUI_ppt2pdf.py
cc3732bbc0196e33f92063a50d906881b836f73f
[]
no_license
Aimee888/python-20200513
7c1dff7d7f0fdea08e12735efeb2e889fedeee10
578c388be5582dc7f1556f95168adf0399b7ea1f
refs/heads/master
2023-01-06T10:21:35.014780
2020-11-03T01:07:04
2020-11-03T01:07:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
#!/usr/bin/env python # _*_ coding: UTF-8 _*_ """================================================= @Project -> File : six-dialog_design -> myUI_ppt2pdf.py @IDE : PyCharm @Author : Aimee @Date : 2020/5/29 17:11 @Desc : =================================================""" import sys from PyQt5.QtWidgets imp...
673df8917fcffa493359510bf3037a32df3e67b3
70bc77336e4544031ad7d7d29a2e964ef2626076
/ui/RepositoryTreeObject.py
981473acc6c301a58ddafa660cc03bbf33b220b2
[]
no_license
DronMDF/vanadis
9af7a8c9281bf0eb17df593f5c9fc9345e474612
de692207bbd127c5a9952e3144653492a0ba969f
refs/heads/master
2020-04-17T08:11:18.411429
2016-12-21T20:50:05
2016-12-21T20:50:05
66,539,179
1
0
null
2016-12-21T20:50:06
2016-08-25T08:20:03
Python
UTF-8
Python
false
false
532
py
from pathlib import Path from ui import RepositoryId class RepositoryTreeObject: ''' This is a tree object (blob or tree) ''' def __init__(self, entry, prefix, repo=None): self.entry = entry self.prefix = prefix self.repo = repo def id(self): return RepositoryId(self.entry.id) def path(self): return s...
8be2f70f024036be4e4f7cc27126fd302cb87bd6
a4fd9f5d765351fb771455db18290e48affc3747
/password_generator/migrations/0001_initial.py
6cba7dcf9ebd26fb59d017987760ec2b182b24db
[ "MIT" ]
permissive
rwgeaston/django-password-generator
a7aa9627c721b8a0f5ba66149d681c333f79da59
62607905bafc111802c61223a1c3c34aa927c9fc
refs/heads/master
2020-03-28T18:50:35.512795
2018-09-15T22:03:23
2018-09-15T22:03:23
148,917,872
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
# Generated by Django 2.0.6 on 2018-09-15 15:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Word', fields=[ ...
0a87c613070041cd6ca47ab39268421df5ed335a
f06680ed95c01f50f0b484ffa81a5baea022282d
/data/parse_wiki.py
80f18cd87ef5eb7edc85c99419d97b5428901daf
[ "MIT" ]
permissive
mohit1997/DeepZip
d3980935517b311b06d39a429546de9f024a73e5
8c35502397a1488c89fa282ed033cc9d5fd4b4dc
refs/heads/master
2022-03-16T02:17:55.479656
2022-03-04T22:09:48
2022-03-04T22:09:48
141,168,415
126
28
null
2019-04-23T23:42:20
2018-07-16T17:03:11
Python
UTF-8
Python
false
false
1,190
py
import io import sys import numpy as np import json import argparse parser = argparse.ArgumentParser(description='Input') parser.add_argument('-param_file', action='store', dest='param_file', help='param file file', default='params.json') parser.add_argument('-input', action='store', dest='input_fi...
bd88a28726322d9e402e7e14401d7b7c2c0e8786
109ac2891c5af60cc0a5c9e988048315314014b3
/Data Structure ZJU/printN2.py
719f3203bd1e631382a9a080b659424415e69ebe
[]
no_license
francislinking/PTA-codes
485c6019a458fa1705dde6f84a69b33c0bd7de81
fea40800c6813300fe56f8b14f159d971b745a6b
refs/heads/master
2021-07-10T14:50:16.643802
2021-05-02T02:16:35
2021-05-02T02:16:35
244,085,168
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 21 18:48:24 2020 @author: Deng Jie """ def printN( N ): if N == 1: print(1) else: printN( N-1 ) print(N) n = eval(input()) printN(n)
fd3e9d3a74cc896ead349afb4520114128eef17e
fa81f1c5039da7554277a87d334cbee675e91995
/yelp/migrations/0002_userreview.py
7f9ee9895e7e1142e55b6537075c7be7a23e96e6
[]
no_license
hldai/labelel
b5eaaac5cef73ccf6941ffed474e8b544c76a944
87c36972d1d7f4c1b146c185bcdee5207c030b8d
refs/heads/master
2020-12-30T13:39:45.673434
2017-07-09T06:20:32
2017-07-09T06:20:32
91,239,809
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-17 08:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('yelp', '0001_initial'), ] operations = [ migrations.CreateModel( ...
b49482817895ed4364111760e2e669ad95ba46db
999879f8d18e041d7fa313132408b252aded47f8
/01-codes/scipy-master/scipy/cluster/tests/test_hierarchy.py
84de6b3e57d6f535499c88e97ebd502ab81d922a
[ "MIT" ]
permissive
QPanProjects/Surrogate-Model
ebcaf05728e82dcbcd924c2edca1b490ab085173
848c7128201218b0819c9665e2cec72e3b1d29ac
refs/heads/master
2022-10-11T19:03:55.224257
2020-06-09T14:37:35
2020-06-09T14:37:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
40,971
py
#! /usr/bin/env python # # Author: Damian Eads # Date: April 17, 2008 # # Copyright (C) 2008 Damian Eads # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copy...
d26db268212730243e31afef9dac80f44edda814
d7ccb4225f623139995a7039f0981e89bf6365a4
/.history/store/views_20211010181824.py
5404e2083299cd5fa19e695dd5bbf5bc15364268
[]
no_license
tonnymuchui/django-mall
64fd4abc3725c1bd0a3dcf20b93b490fe9307b37
55c083d8433be3c77adc61939cd197902de4ce76
refs/heads/master
2023-08-23T04:59:20.418732
2021-10-13T15:59:37
2021-10-13T15:59:37
415,668,388
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
from django.shortcuts import get_object_or_404, render from store.models import Product from cate import member # Create your views here. def store(request, category_slug=None): categories = get_object_or_404(Category, slug=category_slug) products = Product.objects.all().filter(is_available=True) products...
a7e1a5f16a4ea6519e2f6f5df35e23b32f5345ba
9a486a87e028303a551fbd0d1e1b6b650387ea14
/parse_tlog/guide_flow.py
2cebc5bd734a8a21dc044b2fbc02dd903521f052
[]
no_license
shanlihou/pythonFunc
7b8e7064fddd4522e492c915c086cc6c5abc6eec
646920256551ccd8335446dd4fe11aa4b9916f64
refs/heads/master
2022-08-24T20:33:12.287464
2022-07-21T12:00:10
2022-07-21T12:00:10
24,311,639
3
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
# coding:utf-8 import utils import const import LogOne import csv_output def guide_flow(): fname = utils.filter_from_origin('GuideFlow') id_dic = {} avatar_count = utils.get_avatar_count() with utils.utf8_open(fname) as fr: for line in fr: lo = LogOne.get_log_from_line(line) ...
4d2f1b947c37bea509fec0603fec028f2816c5f7
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/level_head/aws_company_right_program.py
a269a3cf60adfad0ae305533decf4c19f884f035
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
570
py
import srt_translate as st #must use python 3 #import os #subdirec = 'home/ben/test' #os.chdir(test) # Replace the subscriptionKey string value with your valid subscription key. subscriptionKey = 'a3487bf0249992cc26cd5aaf14d5f0b0' # Language codes and names: # English: en # Greek: el # More: http://www.emreakkas.com...
06e1f9b50cd4203f4526aa2af52be37ed254a692
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/GnomeDesktop/RRScreen.py
4092b6b1843f0804d1cbd81498ddbc29582ae5d0
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
19,400
py
# encoding: utf-8 # module gi.repository.GnomeDesktop # from /usr/lib64/girepository-1.0/GnomeDesktop-3.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attr...
4dd01610b4147862288e32fff7184a7315c42ec7
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/tests/test_utils.py
7c7df642c1f4a38a6ef5e21daf0932724c758cb4
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
12,246
py
# -*- coding: utf-8 -*- ################################################################################ # # Copyright (c) 2002-2005, Benjamin Saller <[email protected]>, and # the respective authors. All rights reserved. # For a list of Archetypes contributors see docs/CREDITS.txt. # ...
1ff640fe7e36b1fa053268a8444e4d290cd90c50
f514f2746c69726ac38f8e8679eb2b646d11ec91
/dota2_stats/views/matches.py
857690b007094ca61e06f0758e261b316c1b1ecb
[]
no_license
bobbyrward/dota2_stats
871b99ca6550496acc95ff44947a23566708861f
b3d2e7fbe4712dcb08f75e3a15b358a8388711a3
refs/heads/master
2021-01-19T03:23:54.158490
2013-02-15T22:56:08
2013-02-15T22:56:08
8,169,782
1
0
null
null
null
null
UTF-8
Python
false
false
770
py
from pyramid.view import view_config from dota2_stats.models import DBSession from dota2_stats.models import Match from dota2_stats.models import PlayerMatch from dota2_stats.models import Player from dota2_stats.models import Hero from dota2_stats.views.common import template_params @view_config(route_name='recent_...
93f9ff7f0c20a17eac24bdb842d09cdd06d72f77
94bfb1346a9ce4cf6ca8bfeeb5194b7a467731a6
/aclark/db/migrations/0031_siteconfiguration_company.py
d98d10bc777b9bace6f33643961cd5d7281078eb
[ "MIT" ]
permissive
aclark4life/aclarknet-best-pro
4006cad37c2eec166a98a73e988b9b490a10e5cb
e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea
refs/heads/master
2023-03-01T09:10:04.041913
2020-12-01T18:40:07
2020-12-01T18:40:07
140,634,961
0
0
MIT
2021-02-10T01:57:38
2018-07-11T22:49:33
CSS
UTF-8
Python
false
false
598
py
# Generated by Django 2.2.3 on 2019-07-30 18:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [("db", "0030_company")] operations = [ migrations.AddField( model_name="siteconfiguration", name="...
5cb5f6b8ccf26d58cbd0363a37d076f1d55c436f
16ac02b8f427bd622af1564f1236e4913ed63521
/Codes/Version 1.8.6/geometry_def_DEP.py
7c22289e317f50fec51f1ba4fa4e82052a6f6a8e
[ "MIT" ]
permissive
gharib85/Brownian-dynamics-in-a-time-varying-force-field
20660665747310e1201e8ca7d404acc15ec7a3bd
1dce268fcc4f27e066be0ec0b511178cbc1437c5
refs/heads/main
2023-08-16T03:47:51.957137
2021-10-23T19:09:50
2021-10-23T19:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,523
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat May 8 13:18:12 2021 @author: Mohammad Asif Zaman Date: May 15, 2021 This code defines geoemtrical elements by a set of points. It also calculates the normal vector for each surface of that geometry. Definition parameters: - In geo_pointsX() fu...
87ef5d8ed682d518f47eb6e1e03850066d251895
ff268c31f10cbd3e1c44261ca65a45c88ed3dae5
/Transfer Learning/Code/classify.py
2670af12d79b9e3e4f9dd6f648aa8ad8c6399325
[ "MIT" ]
permissive
gyani91/Machine-Learning
6642c65359ed48b212a0f4296f5ce908ed6e95e3
2fabaa6386d3be24e56aaa9a19d58cd19d225198
refs/heads/master
2023-05-27T10:25:55.222053
2023-05-15T18:12:45
2023-05-15T18:12:45
114,811,646
2
2
null
null
null
null
UTF-8
Python
false
false
1,485
py
import tensorflow as tf from resize import * from convert import * #IMAGE_PATH = "Classify/panda.jpg" TRAINED_GRAPH = "sets_graph.pb" LABELS = "label.txt" FINAL_TENSOR_NAME = "final_tensor" def classify(IMAGE_PATH): # Convert the image to JPEG converted_image = convert(IMAGE_PATH) # Resize the image ...
851e188926412577b670edf374b8128bec3b8f91
773dc03117f8b0d51f7a10e2a4577229c8be6ba3
/alttprbot_discord/util/alttpr_discord.py
b109cfd6aa74d9845a9daf9414c8e7910803208f
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
tcprescott/sahasrahbot
382cdff058d63feb5f42dbbd7729eb4b08c4d1bd
64a125d948873d0faa5ea3f2d306075ad9e013be
refs/heads/master
2023-08-31T15:33:01.533206
2023-08-31T01:58:48
2023-08-31T01:58:48
178,310,225
22
43
MIT
2023-09-01T08:45:52
2019-03-29T01:34:45
Python
UTF-8
Python
false
false
17,139
py
import datetime import os import aiohttp import discord import html2markdown from pyz3r import ALTTPR emoji_code_map = { 'Bow': 'Bow', 'Boomerang': 'BestBoomerang', 'Hookshot': 'Hookshot', 'Bombs': 'Blowup', 'Mushroom': 'Mushroom', 'Magic Powder': 'Powder', 'Ice Rod': 'IceRod', 'Penda...
61d21cd5046836892b809cc0fc7f1a977605c227
5c2824ff58eb8a57d71b3c24873c4695c7c3a2ba
/Fundamentals_Final_Exam/03.Problem_Three.py
1e7d798f28b43c1d3e3e8e862cdef755df0fecb0
[]
no_license
svetoslavastoyanova/Python_Fundamentals_Mid_and_Final_Exams
e7ff6677bc762b24262019a0ebb0ed6a5952c50d
781e03fd5f540d55b41fbe6ef1d722d39ed62176
refs/heads/main
2023-04-17T17:35:38.894988
2021-05-02T12:28:26
2021-05-02T12:28:26
349,411,531
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
line = input() minutes = int(input()) seconds = int(input()) total_time = 0 text = "" while line != "Finish": total_time = minutes*60 + seconds if total_time < 55: text = "Gold" elif 55 <= total_time <= 85: text = "Silver" elif 85 < total_time <= 120: text = "Bronze" line =...
16a3a8560d14738c480e32368a3b4c2b7f240037
fd474c0c0df7de6c09f802586068a2069222aadd
/reviewboard/reviews/evolutions/file_attachment_comment_extra_data.py
86e3d2fc9eb496b260de4b12d19e98ab74fb6221
[ "MIT" ]
permissive
pombredanne/reviewboard
a2970fa18cfff4b15adfe65fd0098287d73c650e
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
refs/heads/master
2022-03-09T22:24:19.951964
2022-02-09T07:12:23
2022-02-09T07:12:23
2,324,135
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
from django_evolution.mutations import AddField from djblets.db.fields import JSONField MUTATIONS = [ AddField('FileAttachmentComment', 'extra_data', JSONField, null=True) ]
ec8da544cd59eff81c89e4f327ad9a081c8125d6
b45d33675b38fd3bd15fb2f73a29851a3cc4037d
/0x01-python-if_else_loops_functions/1-last_digit.py
6fd126b08396c288541339756d823b1a022c70f4
[]
no_license
angelah1994/holbertonschool-higher_level_programming-1
38b8ca1859af2ec08aa50a862ecf37cabf993b46
61ab83696ed45686456317c485f7adb7220654ff
refs/heads/master
2023-03-16T04:08:44.868909
2020-05-15T15:40:50
2020-05-15T15:40:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
#!/usr/bin/python3 import random number = random.randint(-10000, 10000) last = abs(number) % 10 if number < 10: last = last * -1 if last > 5: print('Last digit of {} is {} and is greater than 5'. format(number, last)) elif last < 6 and last != 0: str = 'Last digit of {} is {} and is less than 6 and not 0' ...
e5ec7d80a9bd8ec0d31e8695546aa7bfb197c39d
209a7a4023a9a79693ec1f6e8045646496d1ea71
/COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/arrays/boolean/test_reduction.py
7ac6c13a933d640f3b303c790f7220a60ada525b
[ "MIT" ]
permissive
anzhao920/MicrosoftProject15_Invictus
5e2347015411bbffbdf0ceb059df854661fb240c
15f44eebb09561acbbe7b6730dfadf141e4c166d
refs/heads/main
2023-04-16T13:24:39.332492
2021-04-27T00:47:13
2021-04-27T00:47:13
361,913,170
0
0
MIT
2021-04-26T22:41:56
2021-04-26T22:41:55
null
UTF-8
Python
false
false
2,077
py
import numpy as np import pytest import pandas as pd @pytest.fixture def data(): return pd.array( [True, False] * 4 + [np.nan] + [True, False] * 44 + [np.nan] + [True, False], dtype="boolean", ) @pytest.mark.parametrize( "values, exp_any, exp_all, exp_any_noskip, exp_all_...
1029307e17ff37e33f2b89833d70f7879f9f5e45
60dbecafad0eb3baf67265ebda5c6230dfc99088
/old_plotter_files/CLUSTER_PLOT_NEW.py
d4f5332e0882a5300eb2ffad687c5550409349dd
[]
no_license
shanto268/NaSch_CA_Traffic_Flow_Analysis_Software
fbddadd70a70458b96a9a12c5a1c731d29266e34
d9065df9b8288790aa688bf5bf4c30750ba2889c
refs/heads/master
2020-09-20T01:47:41.301182
2020-05-17T03:28:20
2020-05-17T03:28:20
224,346,779
14
1
null
null
null
null
UTF-8
Python
false
false
3,044
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 4 15:13:35 2019 @author: Owner """ import matplotlib.pyplot as plt import csv def plot1(fname): fn = fname nn = fn.split('.') fr = 'processed_' + str(fname) + '.txt' #dnewdata = "0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0...
1f36a514482352b15f26407d72ee9ba6027dac94
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/anagram/09ab13ac53e54a21819b45d33c272459.py
30c00dfe1a41d1c24e13263850e15a2fbd439762
[]
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
394
py
def detect_anagrams(src, words): ret = [] t1 = sort_string(src) for wd in words: t2 = sort_string(wd) if t1 == t2 and src.lower() != wd.lower(): ret.append(wd) return ret def sort_string(st): ls = [] ret = '' for c in range(len(st)): ls.append((st[c])....
92b8cb7b47b9ee887f6ae8c34067590019668fc1
77ec9edf40b34b48477a627d149b6c2054b98a93
/abc_188_d.py
07fb56df0536dddc7d23de1cb381a788cdc223e9
[]
no_license
junkhp/atcorder
fa4eeb204e3a4ac713001ab89c205039703abc88
028ddf7a39534d5907232c4576a03af79feb6073
refs/heads/main
2023-04-11T02:15:10.088883
2021-04-22T07:06:06
2021-04-22T07:06:06
313,284,147
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
# -*- coding: utf-8 -*- def main(): n, C = map(int, input().split()) abc_list = [list(map(int, input().split())) for i in range(n)] keikaku_dict = {} day_set = set() for i, abc in enumerate(abc_list): a = abc[0] b = abc[1] + 1 if a in day_set: keikaku_dict[a].appe...
0827574c78dbf6f8411927ec8c2f368c165aded5
135254b8c00935efd0efd33c708ce69470e23741
/Hard/335. Self Crossing.py
84c1eaf99e013d78a368297707b298a1dacf7618
[]
no_license
MinecraftDawn/LeetCode
4974e6f96612f01e4774ecd5c30bc42dfff79467
0404bcce27ff363430e6ab71dbc27a69055fd261
refs/heads/master
2021-06-19T05:50:08.000396
2021-06-14T05:57:09
2021-06-14T05:57:09
188,446,485
1
0
null
null
null
null
UTF-8
Python
false
false
689
py
# Reference: https://leetcode.com/problems/self-crossing/discuss/386087/Python-simple-case-easy-to-read class Solution: def isSelfCrossing(self, edge: list) -> bool: if len(edge) < 4: return False for i in range(3, len(edge)): if edge[i-1] <= edge[i-3] and edge[i] >=...
72603bc959fdf19473817fce9d1ad0b71955d359
650076fb94a086e15bdaa5bd2f51ce72df42dce4
/test/functional/test_framework/messages.py
49710adae056fb25980006084a7696e53a066492
[ "MIT" ]
permissive
c0de0x/ErosCore
548075fe85c46e2bb3946f94361689dbad692da8
a71767f7ee7105dc83973aac8ac60903b69459c9
refs/heads/master
2022-11-25T14:35:59.091923
2020-07-30T14:38:39
2020-07-30T14:38:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,420
py
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin test...
10f7e3c347eb30004151f1556f490b053246fe90
d42b771f64bc2185a8c0dca0f5bcfa5a2e13c5ed
/users/migrations/0004_auto_20210401_1122.py
c6031beb0bb860b42025e95c43890b7f126098f1
[]
no_license
bgy1060/Daily_Project
4b38de59c09f5e3f82211a9860e1f32a8ef46b37
bcc955bddd9941f2bc54f7577c26c1ddc6b36a48
refs/heads/main
2023-05-15T17:26:56.858438
2021-06-17T05:59:10
2021-06-17T05:59:10
353,864,798
1
1
null
null
null
null
UTF-8
Python
false
false
446
py
# Generated by Django 3.1.7 on 2021-04-01 02:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0003_customuser_username'), ] operations = [ migrations.RemoveField( model_name='customuser', name='is_staff', ...
6b0e78d50451bb8ccc11aab0a05214bf732c8bdb
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2479/60586/261474.py
a9f57d33b28f100b2c88c064fd239af6152dd305
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
369
py
def exam4(): t=int(input()) res=[] for i in range(t): a=list(input()) b=list(input()) for item in a: if b.count(item)==0: res.append(item) for item in b: if a.count(item)==0: res.append(item) res.sort() res=list(...
210c32bffdfcbe2fea8b31746088ce7e6896645f
2a39fe8bd203531c9bcdb470d19b80beac665eae
/read_best.py
380979ab3e9af8575ef0e733e5486bb67e30d4e4
[]
no_license
davidharvey1986/lenstoolTools
7bf11af1a38700503a731c6fe7e83fdc92bf58c1
85bcf729603d34341f5f41c57c4e233b08055baa
refs/heads/master
2021-09-08T14:29:52.695461
2018-03-10T13:54:50
2018-03-10T13:54:50
124,657,727
0
0
null
null
null
null
UTF-8
Python
false
false
7,896
py
from lensing.lenstool import potentiels from write_par import * import csv as csv import ipdb as pdb def read_best( filename='best.par', pot_type='AUTO', verbose=False, return_limits=False, return_image=False): ''' Read the input into lenstool, the .p...
d952e3aa3f2702ee77fba5e59c2ae950a3d54637
9f5fcff2513f2d78f27e5313698dcc47fce1e754
/Experiment/RL_EA_search/graphnas/rl_trainer.py
98698e1f65a8d86c9fc924e46fecd052d959f4cb
[ "Apache-2.0" ]
permissive
ncucjm/notebook
c2495f790e9fc2ca55c1c29a8eaa2dc1bfe7463f
7271a0d1b10cdd6298e223c7ff150d4df031aa76
refs/heads/master
2023-07-20T05:55:48.946687
2021-01-27T09:12:19
2021-01-27T09:12:19
202,633,012
0
0
null
2023-07-06T21:28:29
2019-08-16T00:58:45
Jupyter Notebook
UTF-8
Python
false
false
14,605
py
from collections import deque import os import glob import torch import numpy as np import scipy.signal import graphnas.utils.tensor_utils as utils from graphnas_variants.macro_graphnas.pyg.pyg_gnn_model_manager import GeoCitationManager import time logger = utils.get_logger() def discount(x, amount): return sci...
b61968dae81932acb65d39767e1e265e0cacf305
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_167/ch50_2019_06_11_13_14_47_474417.py
72022271fba4966682e6c89d23ed329447de3c78
[]
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
193
py
def numero_no_indice (lista): l=[] i=0 posicao=0 while i < len(lista): if i[lista]==posicao: i+=1 posicao+=1 x.append(i) return l
52aaa46352ec022d7349aab054fec390a4a8e785
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03359/s399632677.py
4b9e4ef5080c28b6522f683bf717ce679011d8cb
[]
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
411
py
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): a, b = map(int, readline().split()) ans = 0 for i in range(1, 13): if i < a: ans += 1 elif i == a and i <= ...
a51a38a2e71d34f8aa6a2e82026c584eeacddb12
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03363/s286998192.py
091f166035f13606310d3cb4f31a2b7bd57a4859
[]
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
297
py
from collections import defaultdict n = int(input()) li_a = list(map(int, input().split())) s = [0] * (n+1) dd = defaultdict(lambda:0) for i in range(n): s[i+1] += s[i] + li_a[i] for i in range(n+1): dd[s[i]] += 1 ans = 0 for key in dd: ans += (dd[key]*dd[key] - dd[key])//2 print(ans)
cc2fb3795c9dafa0f738c912004965c3b7b25f9a
ab4f0df599159b2c3929c24b12e2766718efdacb
/pyplan_engine/classes/CustomImports.py
e28736de5115b4624154fca75a5693ce79bf591c
[ "MIT" ]
permissive
jorgedouglas71/pyplan-ide
f01ec438f727ee0dea01b0d265155b49a26ccdb8
5ad0e4a2592b5f2716ff680018f717c65de140f5
refs/heads/master
2020-09-25T03:10:01.201707
2019-12-04T15:39:55
2019-12-04T15:39:55
225,904,173
0
0
MIT
2019-12-04T15:57:06
2019-12-04T15:57:05
null
UTF-8
Python
false
false
1,083
py
custom = { } defaults = { "abs": abs, "range": range, "abs": abs, "dict": dict, "min": min, "all": all, "hex": hex, "next": next, "slice": slice, "any": any, "divmod": divmod, "object": object, "sorted": sorted, "ascii": ascii, "enumerate": enumerate, ...
991ef0d671ac96b7e9c8992788bc4c9aaefb75ee
eb7b84b70b335e913aa7d6bf9effba3034810e27
/FirstApp_Flask/employeeInfo.py
73e6fe9ffb1ca4a70d0a2d3879854a6a22310f0c
[]
no_license
chavhanpunamchand/flask
ccc27c9909799bcc4fa9208b49c478942d569eb4
840c7299eb5cfc708f8a6cbefe8955115af9b179
refs/heads/master
2023-02-21T13:57:43.012794
2021-01-28T11:09:41
2021-01-28T11:09:41
326,448,594
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
class Employee: def __init__(self,eid,ename,eage,egen,ecity,esalary,email,erole,eskil,ehobs): self.empid=eid self.empName=ename self.empAge=eage self.eGender=egen self.empCity=ecity self.empSalary=esalary self.empEmail=email self.empRole=erole ...
4834fd49bfc14729688e48ddef0a083f66fbdcb8
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02659/s688514282.py
9e2ccbf9b9d040bce71fcaff7dcf3be04de6d05d
[]
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
104
py
import math from decimal import * a,b=map(str,input().split()) ans=(Decimal(a)*Decimal(b))//1 print(ans)
54d596a8f7abeaa708ce12829210e4b01ed2cd1c
9b5d0b7d7c9cdaef2851b675292e5eef651ab257
/database/compiled_templates/root/history_common.mako.py
10318451f22158193738b9a03b46af42ae5c7016
[ "CC-BY-2.5", "MIT" ]
permissive
msGenDev/Yeps-EURAC
392fd497a6891a5a22204b236c26dcd133793f21
7b679ea17ba294893cc560354d759cfd61c0b450
refs/heads/master
2021-01-16T21:49:26.499975
2010-04-05T17:52:50
2010-04-05T17:52:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,425
py
from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 5 _modified_time = 1262455474.7263279 _template_filename=u'templates/root/history_common.mako' _template_uri=u'root/history_common.mako' _template_cache=cache.Cache(__name__, _modif...
c6283b432e7cc517ab49d5868cb8608925fc9ed8
60eec837687166288bed41aa406fb92ff8b63f1b
/model/tensorflow/examples/tfdnnc/tfdnnc.py
d764e5f63f5b4c9824f4e993163d0e65ed8a9156
[ "MIT", "LicenseRef-scancode-generic-export-compliance" ]
permissive
shivam-bit/dffml
1c5ca75e946fddec78fd3943bdcb6cf5650bcd89
4c1e7870dba12c298d5a7f4740a23af634cacb7e
refs/heads/master
2022-06-19T22:28:10.396364
2020-05-08T21:53:53
2020-05-08T21:53:53
262,698,152
0
0
MIT
2020-05-10T02:36:10
2020-05-10T02:36:09
null
UTF-8
Python
false
false
1,128
py
from dffml import CSVSource, Features, DefFeature from dffml.noasync import train, accuracy, predict from dffml_model_tensorflow.dnnc import DNNClassifierModel model = DNNClassifierModel( features=Features( DefFeature("SepalLength", float, 1), DefFeature("SepalWidth", float, 1), DefFeature(...
bb74ddac0a7bc8a9c141488aea6f2faa98c9f820
8fb1d41797595550418ecfc0e7558f38254b4606
/django/contrib/flatpages/tests/forms.py
7282f009c9dc86d398bb8e67aa09a2233c66ef42
[ "MIT" ]
permissive
hunch/hunch-gift-app
2aad70a9f18124bf0de02d7a125fa93c765da008
8c7cad24cc0d9900deb4175e6b768c64a3d7adcf
refs/heads/master
2016-09-06T03:13:52.153974
2012-03-26T18:11:59
2012-03-26T18:11:59
1,191,221
6
3
null
null
null
null
UTF-8
Python
false
false
1,245
py
from django.contrib.flatpages.admin import FlatpageForm from django.test import TestCase class FlatpageAdminFormTests(TestCase): def setUp(self): self.form_data = { 'title': "A test page", 'content': "This is a test", 'sites': [1], } def test_flat...
5bf881452b66fca7b77a5d8014fa09f19fdeb494
87163acf1614292be250754f28114f89013f73a3
/Codechef/COLOR.py
bb42d808690439dedd343a0a5262394440066d8d
[]
no_license
khush-01/Python-codes
742a9d9966d2ceb3ad2e7c78e34ef88e55df955a
da3cae8df0aafe763399066eefc9b786538fdb35
refs/heads/main
2023-03-20T04:37:14.020134
2021-03-12T04:56:30
2021-03-12T04:56:30
346,941,048
2
0
null
null
null
null
UTF-8
Python
false
false
151
py
for _ in range(int(input())): n = int(input()) s = input() a = {'R': 0, 'G': 0, 'B': 0} for x in s: a[x] += 1 print(n - max(a.values()))
e11e7f157bd594146ba4dff9987c8483968a3046
1d75146a66245dc046dc216bb602129208e00733
/closed/GIGABYTE/code/rnnt/tensorrt/preprocessing/parts/features.py
20935e8f677b7c52a9c49336f23ad6259ef4b8b6
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
georgelyuan/inference_results_v1.1
febf287bd5967bf7f087355a81f06a2bd298cbfe
3196a5587887c39203ee3ac246fa5dbe789d9085
refs/heads/main
2023-08-16T08:49:45.274284
2021-09-23T20:57:17
2021-09-23T20:57:17
409,773,141
0
0
NOASSERTION
2021-09-23T23:36:37
2021-09-23T23:36:37
null
UTF-8
Python
false
false
13,634
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2019, Myrtle Software Limited. 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 # # ...
6200af4f551c8e6534b8a3a0ca176346d8b54d3e
dfff816642f4e1afeab268f441906a6d811d3fb4
/polling_stations/apps/data_collection/management/commands/import_swale.py
1450c85e75893e03f2e966075e02b5698e14b4c4
[]
permissive
mtravis/UK-Polling-Stations
2c07e03d03959492c7312e5a4bfbb71e12320432
26e0331dc29253dc436a0462ffaa01e974c5dc52
refs/heads/master
2020-05-14T18:36:31.501346
2019-04-17T12:54:57
2019-04-17T12:54:57
181,912,382
0
0
BSD-3-Clause
2019-04-17T14:48:26
2019-04-17T14:48:26
null
UTF-8
Python
false
false
3,327
py
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseHalaroseCsvImporter class Command(BaseHalaroseCsvImporter): council_id = "E07000113" addresses_name = ( "local.2019-05-02/Version 1/polling_station_export-2019-02-28Swle.csv" ) stations_name = ( ...
efbce9c46c5c14d023e8afee6f5fd7be1921c7d8
4c252eb68446d5fd050e28a6b5ba1a7879b70b0a
/pyuavcan/transport/can/media/socketcan/__init__.py
c6ee7989569c0ca65d99e412f740125f7b1a788f
[ "MIT" ]
permissive
jxltom/pyuavcan
ce2cdf3a95ba4c6f3a0fd8aae24b341e46481fae
42063b65ee2af431ab485f228d1ed5465a576449
refs/heads/master
2021-01-16T15:09:48.547764
2020-05-26T09:31:25
2020-05-26T09:31:25
243,163,363
0
0
MIT
2020-02-26T03:53:47
2020-02-26T03:53:46
null
UTF-8
Python
false
false
901
py
# # Copyright (c) 2019 UAVCAN Development Team # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <[email protected]> # """ The module is always importable but is functional only on GNU/Linux. For testing or experimentation on a local machine it is often convenient to u...
9a0550f2cdac6a2e0d0f2070fccd45e0531db9ea
7add1f8fc31b09bb79efd2b25cc15e23666c1d1d
/tfx/orchestration/kubeflow/v2/test_utils.py
4431711f7007e93516012675c192b8ae8b27b24d
[ "Apache-2.0" ]
permissive
twitter-forks/tfx
b867e9fee9533029ca799c4a4c5d1c5430ba05fe
cb3561224c54a5dad4d5679165d5b3bafc8b451b
refs/heads/master
2021-11-19T18:45:09.157744
2021-10-19T00:02:34
2021-10-19T00:02:34
205,426,993
2
1
Apache-2.0
2021-10-18T21:03:50
2019-08-30T17:21:03
Python
UTF-8
Python
false
false
21,046
py
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
7e17aef7c234a83dd5f625f3f79766cdd0c89a88
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02689/s473246876.py
934535d4b4972167937a8498aa36c123addb4e8b
[]
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
374
py
n, m = map(int, input().split()) h = list(map(int, input().split())) ab = [list(map(int, input().split())) for _ in range(m)] ans = [1]*n for i in range(m): if h[ab[i][0]-1] == h[ab[i][1]-1]: ans[ab[i][0]-1] = 0 ans[ab[i][1]-1] = 0 elif h[ab[i][0]-1] > h[ab[i][1]-1]: ans[ab[i][1]-1] = 0 ...
1058bf0e58b27114ec41ce159f6a6412a3122981
2e3430eefb94fe6bc6ea8256ceadaf25bbf34e76
/puma/helpers/testing/mixin/__init__.py
e5d5031dc92b6e294d4d8a37e566046b3bcab595
[ "Apache-2.0" ]
permissive
gift-surg/puma
33e08b464fe4241da512fefcab5e8909e6f1d768
58beae3459a0c8d96adfe9af323e26868428df4d
refs/heads/master
2022-11-27T11:26:25.557773
2020-06-04T11:21:38
2020-06-04T11:21:38
198,999,143
1
0
Apache-2.0
2020-07-29T16:36:50
2019-07-26T10:38:46
Python
UTF-8
Python
false
false
173
py
from puma.helpers.testing.mixin.not_a_test_case import NotATestCase # noqa: F401 from puma.helpers.testing.mixin.not_a_test_case_enum import NotATestCaseEnum # noqa: F401
aeba0cf66cd6b63cc2cd690e704544f6c0591260
8541f4118c6093c84e78d768285e7007ee5f6a6c
/apps/inventory/migrations/0009_auto_20151220_1554.py
e2b8366a29c48b68bbe2d712b6d251b066c4ba96
[]
no_license
iraycd/awecounting
c81a8ca6b7a4a942e63cf6b7d723f9883e57a107
388df4de63146e0a9a211afa522ec50e0f3df443
refs/heads/master
2021-01-15T23:30:27.439759
2016-03-16T10:34:40
2016-03-16T10:34:40
57,046,467
1
0
null
2016-04-25T14:03:40
2016-04-25T14:03:40
null
UTF-8
Python
false
false
444
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import njango.fields class Migration(migrations.Migration): dependencies = [ ('inventory', '0008_auto_20151219_1547'), ] operations = [ migrations.AlterField( model_name=...
9399c9273cd93034db22b32eba2127b884c75e9e
4869c5e4d4b5ba6af434b62a2369ed58891c4eb0
/addons/plugin.video.fen/resources/lib/indexers/dialogs.py
806f73f4a98af300d972b66eed68208ef5f003b4
[]
no_license
JohnnyBlackwater/Zephyr-mod
1bd73a04549da83965a0979a1957ab4f98b03a6d
2e9472793b45287b1114221f5dd1674ce886bca1
refs/heads/master
2023-08-31T22:54:47.827433
2021-11-15T03:01:01
2021-11-15T03:01:01
428,104,158
0
0
null
null
null
null
UTF-8
Python
false
false
35,327
py
# -*- coding: utf-8 -*- import json import metadata from windows import open_window from modules import kodi_utils from modules import settings from modules.source_utils import clear_and_rescrape, clear_scrapers_cache, rescrape_with_disabled, scrape_with_custom_values from modules.nav_utils import open_settings, clear...
5b5451db8c50ff61a68abf0e926e2717d703c310
5e381364c2ab31ff3618369085afffba6caa8edb
/recipes/ghc-filesystem/all/conanfile.py
a6f41d56f7d61a30937802fdd0e2b28998c42def
[ "MIT" ]
permissive
CAMOBAP/conan-center-index
16aea68a6d22da22831ba985773125e8eda08f00
67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1
refs/heads/master
2023-07-30T08:58:57.285571
2021-10-02T14:57:54
2021-10-02T14:57:54
323,262,699
1
0
MIT
2021-05-29T13:37:04
2020-12-21T07:30:02
Python
UTF-8
Python
false
false
1,846
py
import os from conans import ConanFile, CMake, tools class GhcFilesystemRecipe(ConanFile): name = "ghc-filesystem" description = "A header-only single-file std::filesystem compatible helper library" topics = ("conan", "ghc-filesystem", "header-only", "filesystem") homepage = "https://github.com/gulra...
183611ac29eb22fef0ace8fc886bf34f6a42b118
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Non_Linear_Finite_Element_Analysis_of_Solids_and_Structures_Borst/pyfem-1.0/pyfem/solvers/Solver.py
2f5f42f519614cbfcae51e0f61b1ad62fe84b778
[]
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
2,684
py
############################################################################ # This Python file is part of PyFEM-1.0, released on Aug. 29, 2012. # # The PyFEM code accompanies the book: # # # # 'No...
5b80fd002f0f429389f82658da7f4196dab59f60
9640f0b9a51ead702e1fc70c2571c116893f5046
/products/migrations/0004_auto_20201006_2154.py
04bb2798e01b633ba64b7ddc57eb2292697db4c1
[]
no_license
CODE-Easyy/optic-backend
d7f46194d91fa25e1d54c4a9cb88faac9ca57ba9
ed885265125b9d95be9467d95308964d25551230
refs/heads/main
2023-01-07T04:10:00.746112
2020-10-31T01:00:13
2020-10-31T01:00:13
302,156,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
# Generated by Django 3.1.2 on 2020-10-06 21:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('products', '0003_auto_20201006_2115'), ] operations = [ migrations.RemoveField( model_name='brand', name='cat', ), ...
646d4b249fae7d33c288ffbadc7669cfe7b0b787
aa265e03e73f718d4008cfe30ada7ee32c852eec
/ABC_B/ABC158_B.py
72d7ebebec13e3477adb87e193dac338d8e588da
[ "MIT" ]
permissive
ryosuke0825/atcoder_python
4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5
52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5
refs/heads/master
2023-03-11T22:47:56.963089
2023-03-05T01:21:06
2023-03-05T01:21:06
181,768,029
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
n, a, b = map(int, input().split()) ans = n//(a+b)*a amari = n-(a+b)*(n//(a+b)) ans += min(amari, a) print(ans)
2ed9c19851b9bc62ae4c409439f33728ff16f76a
8692807f1dfa8c18c61df07cfafbbd27d4e66fba
/previous_problems/BEGINNER/CHN09.sol.py
a30740f15472fbe4e2738dd1ba776740691bc28d
[]
no_license
sharmakajal0/codechef_problems
00381e9bf1996b859e46f087c2ffafd9d7a10ef1
0b979029e0a821f47fbdd6f9c624daee785a02e7
refs/heads/master
2020-05-29T15:04:40.459979
2020-03-29T08:44:53
2020-03-29T08:44:53
189,212,028
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
#!/usr/bin/env python for _ in range(int(input())): s = str(input()) amber = 0 brass = 0 for i in s: if i == 'a': amber += 1 elif i == 'b': brass += 1 if amber > brass: print(brass) elif brass > amber: print(amber) else: print(...
11a635d63cb3cc6ec4f23bc2d39a60be2dea79e2
e37f5df6d380e9395e2433558be05090c2e2cd72
/tspec_mapping/make_index_from_field.py
8384803f596600e08a0ab8f71024bd3eefc7a835
[]
no_license
keflavich/tspec_mapping
c8bcff914095cb3bc2bfc9dccdcbe7897e5399c7
b61e561235a5c3c104cb3a59e016fc252dbd5845
refs/heads/master
2021-01-18T14:15:14.241892
2015-02-13T06:22:29
2015-02-13T06:22:29
7,315,394
0
0
null
2013-09-28T15:54:17
2012-12-25T07:32:22
Python
UTF-8
Python
false
false
5,970
py
import astroquery.irsa import astrometry import astropy.io.fits import numpy as np import atpy import os def make_index_from_table(table,fieldname,fov=None,clobber=False,**kwargs): """ Given a table with RA and Dec columns (case-sensitive!), build an astrometry.net quad index Parameters ----------...
c423aa3aae2fbf9cab46298e451c9a089326366a
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/vcFgGJHxhTwRiLK5d_14.py
4a507ff87ec2b6c51b89dc31487dd6f18bceb1b8
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from fractions import gcd ​ def smallest(n): lcm = 1 for i in range(1, n+1): lcm = (lcm * i)//(gcd(int(lcm), i)) return int(lcm)
463cf524dbd01e72dbb67f1b1b24dff9c7398279
8bbb508b2efd88beff28e072b6ba3ad5ad86f9c7
/Config_ipython_import/ipython/import_here.py
f079107a00955301b1fb74660f6674d951bf3ce6
[]
no_license
wubinbai/2019
1f31a96d49c3383e696f208358347341783f6141
5f1e191a037b793abb97120f4e13185782c64a2c
refs/heads/master
2021-06-30T11:48:16.230757
2020-09-25T09:09:01
2020-09-25T09:09:01
162,510,722
0
2
null
null
null
null
UTF-8
Python
false
false
1,467
py
import numpy as np import sys #np.set_printoptions(threshold=sys.maxsize) np.set_printoptions(threshold=100) import pandas as pd import matplotlib.pyplot as plt plt.ion() import seaborn as sns from tqdm import tqdm def plot_whole(df): with pd.option_context('display.max_rows', None, 'display.max_columns', None): ...
3df683e8903138ebdc951f06fbbd6c3e9bf2ff7b
d664f6cdcd280d7575dd1f6082a2ad8bdabed14c
/test/functional/interface_rest.py
6fd897edac33a30478a179e7b4ae8e5bfb1c91d5
[ "MIT" ]
permissive
minblock/motherofweeddaycoin
22c287cac9c925f03a5aa1f36243ce51f89ebd80
eeb0625c0f2f35412b3a69da50bc55f6acd6806d
refs/heads/master
2022-04-26T05:10:07.935378
2020-04-28T23:11:46
2020-04-28T23:11:46
259,339,910
0
0
null
null
null
null
UTF-8
Python
false
false
14,715
py
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the REST API.""" import binascii from decimal import Decimal from enum import Enum from io import...
d9b120c6b3b4f2a5ecffddf3d0f51f0bbf07cc85
401f783a202949adbf144b5780bcd87a6daf2299
/code/python/Day-89/SumNested.py
790c9104c096a14e9c9ead74bef4561443cec9d7
[]
no_license
TalatWaheed/100-days-code
1934c8113e6e7be86ca86ea66c518d2f2cedf82a
b8fd92d4ddb6adc4089d38ac7ccd2184f9c47919
refs/heads/master
2021-07-04T14:28:45.363798
2019-03-05T13:49:55
2019-03-05T13:49:55
140,101,486
0
1
null
null
null
null
UTF-8
Python
false
false
240
py
def sum1(lst): total = 0 for element in lst: if (type(element) == type([])): total = total + sum1(element) else: total = total + element return total print( "Sum is:",sum1([[1,2],[3,4]]))
7258c482e8ee9b88d64784f4b8132d59778a383d
6c721f3cfce6dc88396cd3b5f6a59d65a2ea5033
/some_learn/Data_Set_handle/Caltech-Dateset/test/caltech_generate_xml/generate_xml.py
5252a995b10a61e6a84100101e23d4a81ac98bc2
[ "MIT" ]
permissive
unicoe/PycharmProjects
20a3dabe88c7874da54451c7bb16999afc0eee35
23ff314eb5ac9bfa01a8278089d722b5d0061751
refs/heads/master
2020-03-23T09:16:25.907188
2019-12-21T03:10:49
2019-12-21T03:10:49
141,377,686
4
1
null
null
null
null
UTF-8
Python
false
false
6,550
py
#!/usr/bin/env python # coding:utf-8 #from xml.etree.ElementTree import Element, SubElement, tostring from lxml.etree import Element, SubElement, tostring import pprint from xml.dom.minidom import parseString import os def mkdir(path): import os path = path.strip() path = path.rstrip("\\") isExists ...
c91effaaaa7685813f70b6e5719bd5298048a24f
f714db4463dd37fc33382364dc4b1963a9053e49
/src/sentry/integrations/msteams/utils.py
3dd201dde1ca3bb9f4e5d09390e9154ffa859fb7
[ "BUSL-1.1", "Apache-2.0" ]
permissive
macher91/sentry
92171c2ad23564bf52627fcd711855685b138cbd
dd94d574403c95eaea6d4ccf93526577f3d9261b
refs/heads/master
2021-07-07T08:23:53.339912
2020-07-21T08:03:55
2020-07-21T08:03:55
140,079,930
0
0
BSD-3-Clause
2020-05-13T11:28:35
2018-07-07T11:50:48
Python
UTF-8
Python
false
false
1,755
py
from __future__ import absolute_import from sentry.models import Integration from sentry.utils.compat import filter from .client import MsTeamsClient MSTEAMS_MAX_ITERS = 100 def channel_filter(channel, name): # the general channel has no name in the list # retrieved from the REST API call if channel.get...
15b4273440bb14b4e5c6be697d42d8398d30d59e
6034b74d0d31997aa46f669d3d77bb46e199a430
/tests/test_dataset_processor.py
6cae4a56b6cba92bb31d6fa50efab979b3b32076
[ "Apache-2.0" ]
permissive
bupt-nlp/sequence-labeling-models
5ea641eec4fad1f470bdb7f3dd64ef0b892ba557
75bb8c24098ad9f307605fad61d811bcd299cfcc
refs/heads/master
2023-06-01T00:59:56.753952
2021-06-19T11:28:13
2021-06-19T11:28:13
287,694,702
2
2
Apache-2.0
2020-08-15T07:07:06
2020-08-15T06:54:35
null
UTF-8
Python
false
false
5,152
py
from __future__ import annotations import os from typing import List, Tuple from allennlp.data import Vocabulary, Instance from allennlp.data.data_loaders import SimpleDataLoader, DataLoader from allennlp.data.token_indexers.pretrained_transformer_indexer import PretrainedTransformerIndexer from allennlp.data.dataset...
f98f2e83b1096b53c66e15f0fbf035ddc93c1d8e
197420c1f28ccb98059888dff214c9fd7226e743
/happy_pythoning_cource_2_prodv/3.1 Bool/3.1. bool.py
be2e6728722c29ced0d3c7440e63523df6444bf2
[]
no_license
Vovanuch/python-basics-1
fc10b6f745defff31364b66c65a704a9cf05d076
a29affec12e8b80a1d3beda3a50cde4867b1dee2
refs/heads/master
2023-07-06T17:10:46.341121
2021-08-06T05:38:19
2021-08-06T05:38:19
267,504,364
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
''' Что будет выведено на экран в результате выполнения следующей программы? ''' numbers = [-6, -8, 0, 1, 3, 8, -7, 12, 17, 24, 25, 3, 5, 1] res = 0 for num in numbers: res += (num % 2 == 1) and (num > 1) print(res)
cfcc64c2dd2a5398b2f9b30038ba8ada47ef3178
31023b59e743b5bef1c2c935dc1f2b26e8e10e9b
/线程进程/进程间通信/数据共享.py
ef96b8051c960f8e1af50dca4856fa31d9922af5
[]
no_license
hsyy673150343/PythonLearning
417650d8ab5dbafbede08ef40223b29e82738443
817c6bd4c2ecba2549fa0be9f0c41337fe5acfdf
refs/heads/master
2020-05-18T06:36:25.648709
2019-05-23T13:40:59
2019-05-23T13:40:59
184,239,403
3
0
null
null
null
null
UTF-8
Python
false
false
600
py
#!/usr/bin/env python # -*- coding:utf8 -*- # @TIME :2019/3/20 19:33 # @Author : 洪松 # @File : 数据共享.py from multiprocessing import Process, Manager def f(d, l,n): d[n] = n d["name"] ="alvin" l.append(n) if __name__ == '__main__': with Manager() as manager: d = manager.dict() ...
4d4d16b4c0f08b20c039e19a68cbe44848bc592a
e9a210d6e58bd0450197dfb4bbbc03f66788a297
/eventplus/talks/migrations/0005_auto_20171031_0209.py
3d87473b034b28fb35cd41f7b8916e329532208b
[]
no_license
werberth/EventPlus
3895587c8f4b2b6cc03507d10badd3c3cd2c28c9
d80c2ab5ec30fa83950380567195514df1cc9892
refs/heads/master
2021-08-28T17:00:21.363698
2017-12-12T21:10:16
2017-12-12T21:10:16
108,935,215
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-10-31 05:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('talks', '0004_auto_20171029_2142'), ] operations = [ migrations.AlterField( ...
3548555fe01d146e2f03abab2eaebe86099355ba
71e49ae86e6398f3278a031edaeebee2218c8b9b
/todo_django/todo_django/settings.py
6abb1e168465164fa89608d6d98a73a2d985b19f
[]
no_license
swestphal/todo
38558688063089b30e0ac1ca4906ef1f2d816ad8
97ef67696abd4e46fcc5a61270d6ad60596de321
refs/heads/main
2023-05-13T11:25:26.614616
2021-05-28T15:26:19
2021-05-28T15:26:19
371,403,392
0
0
null
null
null
null
UTF-8
Python
false
false
3,405
py
""" Django settings for todo_django project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
bc638535aa88eb0734da8bea69ec47da930a0515
472f531c32b63a39ed76c2d95517bae3342a9c09
/lib/config/config.py
a45ecff4c1583df9226bd3d4fb918a0c772693e0
[ "Apache-2.0" ]
permissive
TrendingTechnology/PyAnomaly
90cc3a2d05ea6ecfd0ab5c3768c67ccd4c45b77d
8e9bf7564ab0a39e251f439dfaa3d55ba053f3a9
refs/heads/master
2022-11-06T09:29:06.034245
2020-06-12T04:34:22
2020-06-12T04:34:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,904
py
from yacs.config import CfgNode as CN __all__ = ['update_config'] config = CN() # configure the system related matters, such as gpus, cudnn and so on config.SYSTEM = CN() config.SYSTEM.multigpus = False # to determine whether use multi gpus to train or test(data parallel) config.SYSTEM.num_gpus = 1 # d...
e5715062db6a8e7bb894b4f5bd2d275d98e604be
0fb505765604b586c3a46e608fc23930f8501db5
/venv/lib/python2.7/site-packages/django/contrib/messages/apps.py
1a9189383ef26083e87cbc3f46cf61eaad518797
[ "MIT" ]
permissive
domenicosolazzo/practice-django
b05edecc302d97c97b7ce1de809ea46d59e2f0e6
44e74c973384c38bd71e7c8a1aacd1e10d6a6893
refs/heads/master
2021-08-19T15:36:22.732954
2015-01-22T18:42:14
2015-01-22T18:42:14
25,118,384
0
0
MIT
2021-06-10T19:50:51
2014-10-12T12:08:47
Python
UTF-8
Python
false
false
196
py
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class MessagesConfig(AppConfig): name = 'django.contrib.messages' verbose_name = _("Messages")
7f847a8a75b0bd5215fc381713b860453fc20803
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_chart_format24.py
017038f19ec35b57c30a8bd3b6c3821087c59443
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,555
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, [email protected] # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
ec9733d55c01eb7e99f50e9f9fa51fd0cb38aaf4
6662aa37e6a5df5ef72359f5e52ba74a77ef00b6
/sensors/gps_2.py
886adcf175323e317a3326910e154dad195e52be
[]
no_license
rice-eclipse/RTR-PocketBeagle
b3f4a7536a28d5e412e7184dc8399558264f0e78
11939281355204c08f32da316ee35061def254f0
refs/heads/master
2023-01-01T18:28:53.201874
2020-10-24T18:48:15
2020-10-24T18:48:15
295,223,021
0
1
null
null
null
null
UTF-8
Python
false
false
3,667
py
# Simple GPS module demonstration. # Will print NMEA sentences received from the GPS, great for testing connection # Uses the GPS to send some commands, then reads directly from the GPS import time import board #import busio import adafruit_gps import digitalio # Create a serial connection for the GPS connection using...
317316afc2eda10a2c3dfedce7768855c411e93a
6aa36fee3f4fcc9ac8f5509e51ea6bd8fc05b39b
/virtualenv-flask/lib/python2.7/site-packages/cybox/helper.py
f65d1b9819c9e719d461e09d6c1d1c63d37795f0
[]
no_license
syn-ack-zack/msg-stix-parser
8c46c4d897d579162f224360a077ac42f28ffe89
1edb7c3b6d60f76f24b91830a1ae7076d46ede14
refs/heads/master
2021-03-27T15:01:07.344754
2016-09-30T16:43:22
2016-09-30T16:43:22
69,684,161
0
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
#!/usr/bin/env python # Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. ''' CybOX Common Indicator API An api for creating observables for common indicators: ipv4 addresses, domain names, file hashes, and urls. ''' import sys import uuid from cybox.core import ...
7197e5b320ce581df451038b10cf2e2ca4b3c204
e28009b0a4584e8d128ed6fbd4ba84a1db11d1b9
/824.Goat Latin/824.Goat Latin.py
9a074961d672b68bff7b9d3ae8faee89d99a8b11
[]
no_license
jerrylance/LeetCode
509d16e4285296167feb51a80d6c382b3833405e
06ed3e9b27a3f1c0c517710d57fbbd794fd83e45
refs/heads/master
2020-12-02T23:10:27.382142
2020-08-02T02:03:54
2020-08-02T02:03:54
231,141,551
3
0
null
null
null
null
UTF-8
Python
false
false
906
py
# LeetCode Solution # Zeyu Liu # 2019.6.12 # 824.Goat Latin from typing import List # method 1 straight forward class Solution: def toGoatLatin(self, S: str) -> str: vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'] res = [] S = S.split() for i,v in enumerate(S)...
5948942590110adf43f925fd248d417aae92946d
ea88fac1da1b02e77180c2e20e1fd49b919eecf5
/installer/core/providers/aws/boto3/rds.py
30e547edc215610260da165de7c20d672e56f79c
[ "Apache-2.0" ]
permissive
jacob-kinzer/pacbot
7eeb667505e0ddfd333f6e423b51b8199b481692
d78605e9e3fd8c34435636495cd6d51c677754e3
refs/heads/master
2020-04-23T21:46:42.251948
2019-02-06T20:47:08
2019-02-06T20:47:08
171,480,569
0
0
null
2019-02-19T13:41:01
2019-02-19T13:41:00
null
UTF-8
Python
false
false
1,610
py
import boto3 def get_rds_client(access_key, secret_key, region): return boto3.client( 'rds', region_name=region, aws_access_key_id=access_key, aws_secret_access_key=secret_key) def check_rds_instance_exists(instance_identifier, access_key, secret_key, region): client = get_rd...
d2c259f4c791b27708cdc4496151cd77b169c2a2
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/network/v20210201/get_virtual_network_tap.py
974801dd5908402ca2d9bf972ee8e210857e8afc
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
8,952
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
929c23a9620adf2f1c003ec9135e45ad81261b01
010c5fbc97731286be00028ff33fc981d943bca3
/primal/src/system/bin-data/lift_over.py
a2fcb668400bd441d0a7b9f2cd1b78e1afe870a1
[]
no_license
orenlivne/ober
6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30
810b16b2611f32c191182042240851152784edea
refs/heads/master
2021-01-23T13:48:49.172653
2014-04-03T13:57:44
2014-04-03T13:57:44
6,902,212
7
1
null
null
null
null
UTF-8
Python
false
false
1,139
py
#!/usr/bin/env python ''' ============================================================ Convert coordinates read from stdin from one human genome build to another. Usage: lift_over.py <from-build> <to-build> stdin line format: chrom bp_in_from_build stdout line format: bp_in_to_build, or '-' if not found Created on F...
414bc115ae17b2308119de2eb29319cb4b453588
8e6005ff82a6b37b8c4e2a2fed5791323837d316
/HighMassAnalysis/Analysis/vbf_muTau_LS.py
3d44fab3699a7b0094d4520d2f6e8f035c7b18ee
[]
no_license
CMSRA2Tau/gurrola-sl5-on-sl6
633050a5ec5fd1a81a15c2e1dcf6b4952b718a9e
f56a99cd7121bcbdf301c2bea9fe397a6b9ef6a1
refs/heads/master
2020-04-15T06:13:09.462508
2014-12-17T17:57:01
2014-12-17T17:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
76,430
py
import FWCore.ParameterSet.Config as cms import copy process = cms.Process('HiMassTau') process.load('Configuration.StandardSequences.Services_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') process.GlobalTag.globaltag = 'START53_V7F::All' process.load('JetMETCorrections.Config...
4ac2d30029f1696f61dc06f4ed732f1df62f1975
5ce393ca7d50b35c41f65188dfe8423646b2fcbc
/flask_with_spark/utilities/decorators.py
eef1b78e8690d55b6feb452f294174d73054c5b1
[ "MIT" ]
permissive
todhm/have_you_read_this_book
0c7894319705ed4f047a6b936ab80ea239e5509c
905cb1934bafc987b76b6e57dbc63285f491ac88
refs/heads/master
2022-11-24T07:36:12.514646
2018-08-07T05:00:33
2018-08-07T05:00:33
141,091,550
2
0
MIT
2022-11-11T07:26:01
2018-07-16T05:42:52
JavaScript
UTF-8
Python
false
false
750
py
from functools import wraps from flask import session,request,redirect,url_for, abort def login_required(f): @wraps(f) def decorated_function(*args,**kwargs): if session.get('email') is None: return redirect(url_for('user_app.login',next=request.url)) if session.get('userIntId') is...
4defe82f22c6b83db3cff78f6e922aefcdaf6ec9
f569978afb27e72bf6a88438aa622b8c50cbc61b
/douyin_open/VideoListVideoList/models/inline_response200_data.py
84ccfc29afdb3da81d954674bb7beb2eca74eec5
[]
no_license
strangebank/swagger-petstore-perl
4834409d6225b8a09b8195128d74a9b10ef1484a
49dfc229e2e897cdb15cbf969121713162154f28
refs/heads/master
2023-01-05T10:21:33.518937
2020-11-05T04:33:16
2020-11-05T04:33:16
310,189,316
1
0
null
null
null
null
UTF-8
Python
false
false
6,561
py
# coding: utf-8 """ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class InlineRe...
0955c0d21f9a00b48526ba7a9c1c612b49f3afa2
a0eea3e416a050168aba0876c33a8fddf310868a
/src/eavatar.x.hub/eavatar/hub/avatar.py
db30881d9fe987bf3e1717de9e5f9638a4226eeb
[]
no_license
eavatar/exchange-hub
a0dee945da6922408773a8d5bd1b9029fcf55dd6
c78cdc6aa357442001c76c0daaca3597cd8b4adf
refs/heads/master
2021-01-13T14:28:29.968008
2015-03-05T13:47:18
2015-03-05T13:47:18
30,749,051
0
0
null
2015-03-05T13:47:19
2015-02-13T09:16:04
Python
UTF-8
Python
false
false
3,307
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals """ Avatar-specific functionality. """ import json import time import logging import falcon from datetime import datetime, timedelta from cqlengine import columns from cqlengine.models import Model from eavatar....
f3dd5b4353dff6f6cef8c9eb4092d47fdf047aaa
80b545522375b2b8bbfdff0f540b1172e53b140c
/djecommerce/settings/development.py
3911c6f54c156da5237c8b83486eff63c55810d2
[]
no_license
DuncanMoyo/django-ecommerce-website
18e1e8dcf358de6758ad7974a703145ed5cab4db
21783c3d4159adffabbfc522099cf9c55346bed8
refs/heads/master
2022-12-11T15:14:51.039929
2019-08-31T20:48:59
2019-08-31T20:48:59
196,033,607
0
0
null
2022-12-08T05:51:59
2019-07-09T15:14:11
JavaScript
UTF-8
Python
false
false
1,244
py
from .base import * DEBUG = True ALLOWED_HOSTS = ['127.0.0.1'] INSTALLED_APPS += [ 'debug_toolbar' ] MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',] # DEBUG TOOLBAR SETTINGS DEBUG_TOOLBAR_PANELS = [ 'debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel...
691d6cbe2f9a10ae712c4829e33e1f99b6e87147
f1e7f6c34316828eb541d76e160c43e2e61743c8
/ate/main.py
7b19cea3a56cefb0c8e9b9d5baa47c7a1d9d312e
[ "MIT" ]
permissive
luochun3731/ApiTestEngine
216fc95b8e1d5423cc24083ffac22d119f4a789e
b75e17e7c7a73047660fe13accab4653aa0fa5fb
refs/heads/master
2021-01-01T15:47:26.516079
2017-07-18T04:24:51
2017-07-18T04:24:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,597
py
import os import argparse import logging import unittest import HtmlTestRunner from ate import runner, utils class ApiTestCase(unittest.TestCase): """ create a testcase. """ def __init__(self, test_runner, testcase): super(ApiTestCase, self).__init__() self.test_runner = test_runner ...
70141887bb0e0c852255ad1ce9359dbad564f6f4
5d1e737816e53cdb0056031f49267467b0a8de77
/visualize_cspace_and_workspace.py
aa42f09da550cf0bb13d9c643deee5e32f830a16
[]
no_license
aorthey/configuration-space-visualizer
ab4fe297b586d0e7acb2bc58c14b09253da47fec
e839cc839be37de98c6f34ff5ca6347173fc8e45
refs/heads/master
2020-06-01T09:56:01.209503
2020-04-28T10:43:27
2020-04-28T10:43:27
190,740,072
2
3
null
2019-07-25T11:20:53
2019-06-07T12:30:03
Python
UTF-8
Python
false
false
2,745
py
import sys import numpy as np from src.cspace_visualizer import * import os if not os.path.exists("images"): os.makedirs("images") from worlds import manipulator_2dof as World from matplotlib.ticker import MaxNLocator world = World.Manipulator2dof() worldName = world.getName() N = 200 c1 = (0.9,0.9,0.9) c2 = (0.7,0...
b1d35b14319ee88f737697a4ff38b5548b64a8e8
cd4bbecc3f713b0c25508d0c5674d9e103db5df4
/toontown/fishing/DistributedFishingTarget.py
69a3ef13a7dc66adb05d96a2986dc55852deddf6
[]
no_license
peppythegod/ToontownOnline
dce0351cfa1ad8c476e035aa3947fdf53de916a6
2e5a106f3027714d301f284721382cb956cd87a0
refs/heads/master
2020-04-20T05:05:22.934339
2020-01-02T18:05:28
2020-01-02T18:05:28
168,646,608
11
2
null
null
null
null
UTF-8
Python
false
false
2,803
py
from pandac.PandaModules import * from direct.distributed.ClockDelta import * from direct.interval.IntervalGlobal import * from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedNode from direct.fsm import ClassicFSM from direct.fsm import State from direct.directutil import Mopath...
92d2540caa11631b2211b05ce1cd8a3ec146552b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_currycombs.py
697fc9498aafda38d96c4b64c23d5633a1a39751
[ "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
234
py
#calss header class _CURRYCOMBS(): def __init__(self,): self.name = "CURRYCOMBS" self.definitions = currycomb self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['currycomb']
f064a7e6a09a8181c698703b8a964957bcf9ab3a
5d9bab690aab86ba8d8e9ee315e68e6028fe8048
/flumine/execution/betfairexecution.py
f3da633c30a1edbd5dbfdb73c982c771be4162f4
[ "MIT" ]
permissive
chrlanct/flumine
888b2e83a26930c7d1f17b7815fddccd036fc276
3728274bce91cf3d56f42da67b43d116bc2f860e
refs/heads/master
2022-12-23T09:41:21.744645
2020-09-21T09:07:34
2020-09-21T09:07:34
297,768,368
0
0
null
2020-09-22T20:47:18
2020-09-22T20:47:17
null
UTF-8
Python
false
false
9,802
py
import logging import requests from typing import Callable from betfairlightweight import BetfairError from .baseexecution import BaseExecution from ..clients.clients import ExchangeType from ..order.orderpackage import BaseOrderPackage, OrderPackageType from ..exceptions import OrderExecutionError logger = logging.g...