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
df0e78b60bfc72c412b3fa914ea00ef5c830d3b3
234df74b8d2ff67e1ec1e44df6128e9506ad8ab1
/sgim/apps/catalogo/views.py
f2afa8b7e3b90431b4c76df2159ca9f2a62b26f6
[]
no_license
edxavier/tesis2015
c1289bc648c054edde082e200beda1cfb6e9e27f
d04b20b67f9f1ef2e6d97a18b7bfa6466223384f
refs/heads/master
2021-01-23T03:33:27.149595
2016-02-17T21:51:37
2016-02-17T21:51:37
33,018,981
0
0
null
null
null
null
UTF-8
Python
false
false
2,473
py
from django.shortcuts import render from django.views.generic import View from django.http import JsonResponse from rest_framework import viewsets from .serializers import (TipoDispSerializer, EdificioSerializer, OficinaSerializer, EstadoOpeSerializer, SistemaSerializer, ...
8d59c63bb569d0b06ceed76e1ba3e92ddfc89ae5
612325535126eaddebc230d8c27af095c8e5cc2f
/src/build/android/pylib/utils/device_dependencies_test.py
40a9c3791fd32e20a2ab0f1ae30c53831e561944
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,048
py
#! /usr/bin/env python # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import unittest from pylib import constants from pylib.utils import device_dependencies class DevicePathCompo...
2bd5f95e415955fef9fb486aa9150da591fc22ec
a9a90eae727590f0ccffaa255ffeaa194309fbe9
/Codekata/year.py
7d9971890b54ef34045a6604b8e13f06aa36b4b5
[]
no_license
dhanuskarthikeyan/guvi
18c39674d3ee8e0012caef781d7905e541792174
671d64189f6039ffad8d91cab13942aafa87bf29
refs/heads/master
2020-06-03T00:07:45.041170
2019-07-08T17:39:33
2019-07-08T17:39:33
191,355,054
0
3
null
null
null
null
UTF-8
Python
false
false
62
py
yr=int(input()) if(yr%4==0): print "yes" else: print "no"
555ca6a9c3244b0a09c9f72a46fa206069398e23
7dfa21d74dae975082c6d5deaa01248bac1dcc26
/tools/amd_build/pyHIPIFY/cuda_to_hip_mappings.py
31f69ec6a06383d6a969a1da3d79e906ea76c8e4
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
mruberry/pytorch
88cf536ed58d20a409c1e5119be4ec04ec960082
19f73180cfb39eb67110d2a1d541975a49211453
refs/heads/master
2022-02-03T16:25:31.070089
2019-04-22T17:52:28
2019-04-22T17:58:15
130,132,886
4
1
NOASSERTION
2020-01-16T16:51:39
2018-04-18T23:24:38
C++
UTF-8
Python
false
false
216,197
py
import collections from pyHIPIFY.constants import * """ Mapping of CUDA functions, include files, constants, and types to ROCm/HIP equivalents This closely follows the implementation in hipify-clang https://github.com/ROCm-Developer-Tools/HIP/blob/master/hipify-clang/src/CUDA2HipMap.cpp and its structure. There are d...
5a083a5caacded4d0503d61b1eed6d0a6b641e29
0cf6728548830b42c60e37ea1c38b54d0e019ddd
/Learning_Quant/python金融大数据挖掘与分析全流程详解/chapter12.py
05cc6faabfc1d70c38f3d38fc05b14eb7a328704
[]
no_license
MuSaCN/PythonLearning
8efe166f66f2bd020d00b479421878d91f580298
507f1d82a9228d0209c416626566cf390e1cf758
refs/heads/master
2022-11-11T09:13:08.863712
2022-11-08T04:20:09
2022-11-08T04:20:09
299,617,217
2
2
null
null
null
null
UTF-8
Python
false
false
2,889
py
# Author:Zhang Yuan from MyPackage import * import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.patches as patches import seaborn as sns import statsmodels.api as sm from scipy import stats #------------------------------------------------------------ __mypath__ = MyPath.MyClass_Pa...
952864ce7904fc1199cb55db3743982e823bc1c3
1b461ec82c8dd1099021ce3a32a7f649fa970226
/Exercises/warm_up_bar_coding_string_match.py
4a3a9d80d11b210caf26c8c7eb8bcb83eb67f669
[]
no_license
AdamSierzan/Learn-to-code-in-Python-3-basics
9df20c80c33f40da8800d257ee2ec05881198419
ef298bcba72250e19080283cb81dbecf6a245563
refs/heads/master
2022-11-06T00:48:17.413322
2020-06-16T20:52:08
2020-06-16T20:52:08
250,247,475
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
#def string_match(a, b): a = "xxcaazz" b = 'xxbaaz' for i in (len(a)): print(i,a[+1]) print(a[0],a[1])
fb63f6ee8a057a30027089c59c6d5ccb87cc6dc9
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/kikoAnalysis/slpDailyMeanFiles/43-tideGauge.py
4657f7de0acc7b31a05efa28139e82d5dd1442be
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
# -*- coding: utf-8 -*- """ Created on Tue Sep 29 09:40:12 2020 @author: Michael Tadesse """ import os import pandas as pd dir_in = "/lustre/fs0/home/mtadesse/eraFiveConcat" dir_out = "/lustre/fs0/home/mtadesse/dailyPred" os.chdir(dir_in) tgList = os.listdir() x = 43 y = 44 #looping through individual tide gauge...
73f7923b5825d9bf1260499fa1cc901620659557
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Gio/UnixInputStreamClass.py
83dcff9394d0a3fa7e5dbf2594bcb42187c4ab48
[]
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
5,125
py
# encoding: utf-8 # module gi.repository.Gio # from /usr/lib64/girepository-1.0/Gio-2.0.typelib # by generator 1.147 # no doc # imports import gi as __gi import gi.overrides as __gi_overrides import gi.overrides.Gio as __gi_overrides_Gio import gi.overrides.GObject as __gi_overrides_GObject import gi.repository.GObjec...
f27837e23b09a26eefdf2310dfb8b68e4031e84d
0822d36728e9ed1d4e91d8ee8b5ea39010ac9371
/robo/pages/mato_grosso_do_sul/jd1noticias.py
738245155ef16987361a670e3484ee9f0add3ad5
[]
no_license
diegothuran/blog
11161e6f425d08bf7689190eac0ca5bd7cb65dd7
233135a1db24541de98a7aeffd840cf51e5e462e
refs/heads/master
2022-12-08T14:03:02.876353
2019-06-05T17:57:55
2019-06-05T17:57:55
176,329,704
0
0
null
2022-12-08T04:53:02
2019-03-18T16:46:43
Python
UTF-8
Python
false
false
924
py
# coding: utf-8 import sys sys.path.insert(0, '../../../blog') from bs4 import BeautifulSoup import requests from robo.pages.util.constantes import PAGE_LIMIT GLOBAL_RANK = 1125849 RANK_BRAZIL = 31946 NAME = 'jd1noticias.com' def get_urls(): try: urls = [] for i in range(1, PAGE_LIM...
299c3360d98aebb3d35976830345e1b5570228f7
5ae3bc1920fafc33693cdfa3928a48158aa6f725
/315/315-Segment.py
d49170abb3a3388d343616b67714c0002c5e9626
[]
no_license
sjzyjc/leetcode
2d0764aec6681d567bffd8ff9a8cc482c44336c2
5e09a5d36ac55d782628a888ad57d48e234b61ac
refs/heads/master
2021-04-03T08:26:38.232218
2019-08-15T21:54:59
2019-08-15T21:54:59
124,685,278
0
0
null
null
null
null
UTF-8
Python
false
false
2,317
py
class SegmentTreeNode: def __init__(self, start, end, val): self.start = start self.end = end self.val = val self.left = self.right = None class SegmentTree: def __init__(self, n): self.root = self.build(0, len(n) - 1, n) def build(self, start, end, ...
c9135d8bc839acb9df559e73377e0df9a5dc5901
edb10a06f56d9bd19b0b60581728900a03d9732a
/Python/leetcode/Anagrams.py
ca5c1a364909e0a69634540c9097753018bccfff
[ "MIT" ]
permissive
darrencheng0817/AlgorithmLearning
3ba19e6044bc14b0244d477903959730e9f9aaa8
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
refs/heads/master
2021-01-21T04:26:14.814810
2019-11-22T06:02:01
2019-11-22T06:02:01
47,100,767
2
0
null
null
null
null
UTF-8
Python
false
false
409
py
''' Created on 1.12.2016 @author: Darren '''''' Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] Note: For the return value, each inner list s element...
820d0141ddd1005770849d9e401f6a14435fbca5
80922ad42ea7232c8b3f3de8e7928aaf2142e13f
/mylar/PostProcessor.py
9a5b8d2fed0506d985e26ef04ee12c11f42fbf48
[]
no_license
rykerwilliams/mylar
d2db698580898952afd1e1a7f29dd58411b8d5c4
e64b50a3ffaf5ddb3f944576104a05e845016fec
refs/heads/master
2021-01-16T21:52:29.098345
2014-07-28T18:48:56
2014-07-28T18:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
53,988
py
# This file is part of Mylar. # # Mylar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Mylar is distributed in the hope that...
df69ecd68dbc05aa63ae2dc25a88a9c5272233bc
cec916f882afbd09fe68f6b88879e68eaea976f6
/bigmler/resourcesapi/fusions.py
1c8a17d3f87803d2ed503abbe367ac47e23f8336
[ "Apache-2.0" ]
permissive
jaor/bigmler
d86db6d7950768d7ba3e21b5f29bc265467f4cad
bbf221e41ef04e8d37a511a35a63216b64689449
refs/heads/master
2023-04-26T12:07:49.428263
2023-04-12T15:22:20
2023-04-12T15:22:20
15,663,632
0
0
null
null
null
null
UTF-8
Python
false
false
5,785
py
# -*- coding: utf-8 -*- # # Copyright 2020-2023 BigML # # 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 ...
8b298efd886c26c6cc53a15b22eb5b96064022d5
7d7da2d78526436aedbe44f2a1b26f31409993f5
/ABOUT/views.py
5c8a785178e768c6719b4701506222f43a77f655
[]
no_license
Arif553715/NGO
c4042b59a96de0b1f8c74f73ca166aa03ed6223c
7a901931dd70702e6e81d8e0880bca962da09443
refs/heads/master
2020-05-06T20:32:42.036796
2019-04-18T09:36:17
2019-04-18T09:36:17
180,239,663
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from django.shortcuts import render,HttpResponse,get_object_or_404 from .models import Author1,Artical,Catagory,Our_Team # Create your views here. # start blogapp def about(request): context={'post':Artical.objects.all(), 'teams':Our_Team.objects.all()} return render(request,'about.html',context)...
b9603c227e39f7d5e195f02d9a03afe31a826525
f9f2d8064943906e8ee0d305d405ca1e5dd0a6b7
/Hysteresis_Measurement/tooltip.py
d252b1f9c6760bf06e328eb70ab58b3b73bb2afb
[]
no_license
Jeffrey-Ede/Atomic-Force-Microscopy
a46930657b256f4dc772c1b2130a55486dbb6e2b
7df834b17ad9974016b02a72711f8847f6b15d4d
refs/heads/master
2021-01-18T12:06:38.779728
2017-10-06T07:24:12
2017-10-06T07:24:12
100,364,689
4
1
null
null
null
null
UTF-8
Python
false
false
1,336
py
# -*- coding: utf-8 -*- """ Created on Tue Aug 15 22:48:56 2017 @author: Jeffrey Ede """ import tkinter as Tk class ToolTip(object): def __init__(self, widget): self.widget = widget self.tipwindow = None self.id = None self.x = self.y = 0 def showtip(self, t...
37bf8c7b0152c0dc58cbad1f1dc6b119848ae1ea
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/utils/sims/common_sim_posture_utils.py
942b6a83e30a1b592931b2b26886eea4d99d6716
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
12,599
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Tuple, Union, Any from postures.posture...
a4e87d3fbf5daf9bafa306e7e3ed00ae74f7e018
13cccbc1bbaec02f53d2f4e654d480512f6c2bb5
/binary-search/leetcode-tutorial/Search_in_Rotated_Sorted_Array.py
5d641e52117e3dc735343227c664d4231e10097f
[]
no_license
sjdeak/interview-practice
580cc61ec0d20d548bbc1e9ebebb4a64cd7ac2dc
1746aaf5ab06603942f9c85c360e319c110d4df8
refs/heads/master
2020-07-20T21:06:23.864208
2019-09-08T10:54:16
2019-09-08T10:54:16
206,709,284
2
0
null
null
null
null
UTF-8
Python
false
false
2,079
py
# https://leetcode.com/explore/learn/card/binary-search/125/template-i/952/ import os, sys, shutil, glob, re import time, calendar from datetime import datetime, timezone import hashlib, zipfile, zlib from math import * from operator import itemgetter from functools import wraps, cmp_to_key from itertools import count,...
349b2be9f926e5186d63da726ea61cc465eb15c3
a685fa36823caa4b910969e80adbcae4f2829bd6
/python_Fundamentals/Find_Characters.py
70a7927579c0dbc033b28e77130ce161b8d75be1
[]
no_license
hmp36/Python
35e4fbc003b216ca6c7c45c558dd4f24edba5b9a
dcddf40a0428542d78f2e32d4755b54ebdaadffd
refs/heads/master
2021-09-15T01:35:41.013949
2018-05-23T13:05:59
2018-05-23T13:05:59
112,358,856
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
#find_characters def find_character(word_list, char): new_list = [] for i in range(0, len(word_list)): if word_list[i].find(char) != -1: new_list.append(word_list[i]) print new_list test_list = ['hello','world','my','name','is','Hagan'] find_character(test_list,'o')
f3cea51fa24ed1b3bcff3995d808663d8a4aad6a
28e8ff11d8d4d633e9bd69390eb8504dc52d34ac
/python/paddle/optimizer/adamw.py
a5cb779835327a8c8dfdd02a1b62e87d3aa11988
[ "Apache-2.0" ]
permissive
zhupengyang/Paddle
1cda899a18de8725bfbbcedfcf45bce0bc2706a7
226b4a95df0c992dfaf37cca2c0e89eb730dd298
refs/heads/develop
2023-08-30T22:09:01.452182
2023-03-01T09:35:50
2023-03-01T09:35:50
186,746,928
0
0
Apache-2.0
2023-07-19T01:56:42
2019-05-15T04:05:53
C++
UTF-8
Python
false
false
26,979
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
61723176d8f107f09aa921c5b13fd058568de260
85e27209a7df58f76ab0f9f2ed13b1c6ac31ffc9
/src_python/habitat_sim/utils/gfx_replay_utils.py
f4a40ecbd3f41db0fa440ce577fe25b83c0612c5
[ "CC-BY-4.0", "CC-BY-3.0", "MIT" ]
permissive
facebookresearch/habitat-sim
72a78877c412fef1d42a553f896654c71c54d245
6f46bccc1733f4cec30b89d994ac55df2b46eb4a
refs/heads/main
2023-09-03T00:17:30.809849
2023-08-29T16:06:16
2023-08-29T16:06:16
169,164,539
1,924
432
MIT
2023-09-14T17:12:21
2019-02-04T23:14:28
C++
UTF-8
Python
false
false
1,009
py
# Copyright (c) Meta Platforms, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import magnum as mn import habitat_sim def add_node_user_transform(sim, node, name): translation = node.absolute_translation ro...
6001ba346612f6f193597608f08320170e40f44b
05f668036da3c4295b7f5282b7a7c9bd387bdd0b
/spiders/start.py
1df95b4204485539feeb2f92e43feb231c054bc9
[ "MIT" ]
permissive
ProgramRipper/biliob-spider
8ae476f7ab096734ac9c24c3318f98ee41af8c7f
2fe3d5fd91bb301dd0d0eb21d03153d6882f6bcf
refs/heads/master
2022-04-11T09:51:42.037081
2020-03-23T16:31:12
2020-03-23T16:31:12
312,482,354
0
0
MIT
2023-05-17T00:33:30
2020-11-13T05:32:19
null
UTF-8
Python
false
false
1,500
py
from time import sleep import datetime import schedule import psutil import os def find_procs_by_name(name): "Return a list of processes matching 'name'." ls = [] for process in psutil.process_iter(): try: for each in process.cmdline(): if name in each: ls.append(process.pid) ...
ef2e356bf57c377f09b460ddb28b36cf239114ae
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/hackerrank/HackerrankPractice-master/Algorithms/01. Warmup/008. Mini-Max Sum.py
426a1546f2599b3b1e1a4fc95470f8d1c9f0422f
[]
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
162
py
# Problem: https://www.hackerrank.com/challenges/mini-max-sum/problem # Score: 10 arr l.. m..(i.., i.. ).s..())) print(s..(arr) - m..(arr), s..(arr) - m..(arr
18927a4d6c41ee8f5750ed1b5eee62ec6a794d33
bdccb54daf0d0b0a19fabfe9ea9b90fcfc1bdfbf
/Interview Preparation Kits/Interview Preparation Kit/Miscellaneous/Flipping Bits/flipping_bits.py
cd52f26938ced69241748542cf1618a1bdcac0d9
[ "MIT" ]
permissive
xuedong/hacker-rank
aba1ad8587bc88efda1e90d7ecfef8dbd74ccd68
1ee76899d555850a257a7d3000d8c2be78339dc9
refs/heads/master
2022-08-08T07:43:26.633759
2022-07-16T11:02:27
2022-07-16T11:02:27
120,025,883
1
0
null
null
null
null
UTF-8
Python
false
false
410
py
#!/bin/python3 import math import os import random import re import sys # Complete the flippingBits function below. def flippingBits(n): return ~n & 0xffffffff if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') q = int(input()) for q_itr in range(q): n = int(input()) ...
8088e111feb0c6e373b52debc22c1789345ce61f
0a1f8957a798006deaa53d10d09f733fab1e6b05
/bin/Python27/Lib/site-packages/sympy/geometry/polygon.py
f6b974c4f784fa93cf0c61d1f0cdce8aaa951310
[ "LicenseRef-scancode-other-permissive" ]
permissive
metamorph-inc/meta-core
a89504ccb1ed2f97cc6e792ba52e3a6df349efef
bc7a05e04c7901f477fe553c59e478a837116d92
refs/heads/master
2023-03-07T02:52:57.262506
2023-03-01T18:49:49
2023-03-01T18:49:49
40,361,476
25
15
NOASSERTION
2023-01-13T16:54:30
2015-08-07T13:21:24
Python
UTF-8
Python
false
false
59,827
py
from sympy.core import Expr, S, sympify, oo, pi, Symbol, zoo from sympy.core.compatibility import as_int from sympy.functions.elementary.piecewise import Piecewise from sympy.functions.elementary.trigonometric import cos, sin, tan, sqrt from sympy.simplify import simplify, nsimplify from sympy.geometry.exceptions impor...
796fb3923593aff09a76764b03a1b6e7e18b9a25
1990344218def595b8fe8a60d2367f8733289586
/Tape.py
ee1c22b1754b1f413c8732078cf15e7b640bfbea
[]
no_license
fortable1999/dynamicprogramming
7afd49a5bc8b2f92eb927581e718c57fdb040f51
976efa646cb16e40eb13772046e7d04ff109dc10
refs/heads/master
2020-04-09T15:31:08.153342
2018-12-06T02:17:51
2018-12-06T02:17:51
160,428,467
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import math def solution(A): # write your code in Python 3.6 left, right = A[0], sum(A[1:]) diff = abs(left - right) for elem in A[1:-1]: left += elem right -= elem if abs(left - right) < diff: diff = abs(left - right) return diff print(solution([-1, 1, 1000, -...
8b63a29441cb9e8d2602e6259654e50e3ae5e4be
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/mo/guest_operations_manager.py
42811965f87e374b8b96d6972b7bd55e7f8b7f68
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,275
py
from pyvisdk.base.managed_object_types import ManagedObjectTypes from pyvisdk.base.base_entity import BaseEntity import logging ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) class GuestOperationsManager(B...
e33b7e0b004944fe986a82dc58d7668f0d622a18
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/1488.py
04ea069f2a72cc94a1d2641d3b845e5b20b5ece6
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
# https://code.google.com/codejam/contest/2974486/dashboard#s=p1 import sys def readline(): return sys.stdin.readline().rstrip() f0 = 2 t = int(readline()) for case in range(t): line = readline() [c, f, x] = [float(s) for s in line.split()] time = x/f0 time2 = c/f0 + x/(f+f0) more = time2 < ti...
6f8f55d475bcc0e553f442897fd874177c3d347c
2491df3f643539e6055bb0b2a4b659474c57491f
/interval.py
1c48b76451542d32868f5e00496c2a8e10df5e23
[]
no_license
ghilbing/Ejemplos
85efc91346028b8a3d26d7680d9286b26234c771
339a45ef48c9a61002a01f7c823cc42d34fab409
refs/heads/master
2021-05-13T13:58:33.010157
2018-02-26T20:44:44
2018-02-26T20:44:44
116,724,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
def interval(intervals, new_interval): s = new_interval.start e = new_interval.end parts = merge = [] left = [] right = [] for i in intervals: parts[(i.end < s) - (i.start > e)].append(i) if merge: s = min(s, merge[0].start) e = max(e, merge[-1].end) return left +...
2f7e7080307ec0ae3515529e27fa46310cc9f7cb
a0a0932b6ab6ec47c2757d8929216790f5bc6535
/order/apps.py
63251174a40de7091e5dd63e488b3497605ea2bb
[]
no_license
lianglunzhong/latte-erp
b4e6e3b13c4bce17911ff166fecc36172e0bea5b
b58936c8d9917f3efdcb3585c54bfd3aba4723c2
refs/heads/master
2022-11-27T03:08:23.780124
2017-04-28T02:51:43
2017-04-28T02:51:43
89,660,834
0
0
null
2022-11-22T01:04:12
2017-04-28T02:48:50
Python
UTF-8
Python
false
false
179
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class OrderConfig(AppConfig): name = 'order' verbose_name = u"订单"
aa7e54c13f82ec435d13c5be8999b09e623f6ee0
e07b8420df6ebe15b0de68ca6889fcaa68d8fad3
/Keras/study/cross_entrophy.py
18e196f4acd85efa5fad1fc77cdf07724becf698
[]
no_license
AllenLiuX/Machine-Learning-Projects
2fcbb3dc3d8efee08de9d96020e551a9c0758fa6
ea20ea04cb956a9fb8f7099ddb7ec36ab5730cc2
refs/heads/master
2023-01-24T05:46:33.123993
2020-11-21T08:24:05
2020-11-21T08:24:05
299,807,064
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist from keras.utils import np_utils from keras.models import Sequential from keras.layers import Dense, Activation from keras.optimizers import SGD # (x_train, y_train), (x_test, y_test) = mnist.load_data() f = np.load('mnist.npz') x_tra...
9ddb472d2ff2e53ba564d04caed1083c15bdb513
2033d6d7b9547c6722bfc9f52379683ebfca7186
/pbf_kao_gui/Commands/new_pygame_screen.py
e4d417e14846ac385b85c64668550296c079c27d
[]
no_license
cloew/KaoGUIPBF
5119e4f149343804d6e031b14d920a9e2229eb2b
819a908bccfd579c9d0666f216395d08e230353f
refs/heads/master
2021-01-01T20:16:57.033719
2015-02-17T16:39:51
2015-02-17T16:39:51
16,234,905
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
from pbf.helpers.filename_helper import GetPythonClassnameFromFilename from pbf.templates.template_loader import TemplateLoader from pbf_kao_gui.templates import TemplatesRoot class NewPygameScreen: """ Command to Create a new Pygame Screen """ TEMPLATE_LOADER = TemplateLoader("pygame_screen.py", Templ...
ebb2fa048817413a11e3f6b1fa17173e0b9a4846
95594364c548081b4f139b0fec2d2474d23129da
/Pretreatment/Audio/Step3_Assembly.py
a86b07697b9a6e3da8c5f926464515397e374d1f
[]
no_license
Grace-JingXiao/AVEC_2017_DDS_CNN_Research
0e932e2e5f38039dd2884595e6d75bc67da8e20a
71d04f3d765efb18f6dbe99eab3ef12e5e5f8489
refs/heads/master
2020-09-05T22:09:02.904761
2019-09-11T06:07:53
2019-09-11T06:07:53
220,227,983
1
0
null
2019-11-07T12:06:41
2019-11-07T12:06:40
null
UTF-8
Python
false
false
906
py
import numpy import os if __name__ == '__main__': loadpath = 'D:/PythonProjects_Data/AVEC2017-OtherFeatures/Step1_features3D/' savepath = 'D:/PythonProjects_Data/AVEC2017-OtherFeatures/Step3_features3D_Assembly/' os.makedirs(savepath) ususalShape = 0 for foldname in os.listdir(loadpath): t...
8b332439a2fe2e912f9c5478e97e3bb5fc6ab0dd
08fe752455b2e8bea36f69bd7eb0d70641691514
/12월 3주차/[BAEKJOON] 12904_A와 B.py
abd5edb88c54b6248ff79f668d83207e4fb1c09a
[]
no_license
2020-ASW/gayoung_yoon
69a7a20c073710aaec76261cac59aa6541250588
0ad21c5484ed087d704d72b03fc1f14c3fa9e25f
refs/heads/main
2023-02-14T19:28:38.966502
2021-01-10T07:56:10
2021-01-10T07:56:10
320,287,097
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
# S = "B" # T = "ABBA" # S = "AB" # T = "ABB" ''' 조건1 문자열의 뒤에 A를 추가한다. 조건2 문자열을 뒤집고 뒤에 B를 추가한다. S -> T를 확인하기 위해 T -> S로 변경가능한지 check! ''' S = list(input()) T = list(input()) while True: if len(S) == len(T): break if T[-1] == 'A': T.pop() else: T.pop() T = T[::-1] if S =...
212953611e16a73c32f310c5769c10ea1a31a979
adb748ac7d24f6184ad81881d6caf5ea4689c38f
/spatialdata/units/NondimElasticQuasistatic.py
3e050ad231632b437bb4a2686b50c9bb5b8b973c
[ "MIT" ]
permissive
Zilhe/spatialdata
7a291703703cc2ff254cceec3683dc066925b5f4
fee0e77dcb820d466857a0e914af265255709285
refs/heads/main
2023-04-30T08:16:55.977142
2021-05-19T01:41:42
2021-05-19T01:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
# ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copyright (c) 2010-2017 University of California, Davis # # See COPYING for license...
ee7531e0c603f1da58441201aa9edfb6ddd4b581
368be25e37bafa8cc795f7c9f34e4585e017091f
/.history/app_fav_books/views_20201115164620.py
ec1fa1c5ffa54349752a175c646dd05ab409740e
[]
no_license
steven-halla/fav_books_proj
ebcfbfda0e7f3cdc49d592c86c633b1d331da513
512005deb84ac906c9f24d4ab0939bd0db096716
refs/heads/master
2023-03-30T09:37:38.016063
2021-04-02T20:27:22
2021-04-02T20:27:22
354,125,658
0
0
null
null
null
null
UTF-8
Python
false
false
5,513
py
from django.shortcuts import render, redirect from .models import * from django.contrib import messages # contains user signup + login form def view_index(request): # bonus, if user is already logged in, lets not show them login/registration page, # and instead redirect them to /books, which is already where ...
4bb05b091867737e9ecaec70c098f12cf3a01a8a
9da0e040c87ca42a0407061e914067c59b959096
/rich/text.py
394fc494bc5a967ebe4347553e5af92fb75da82c
[ "MIT" ]
permissive
4thel00z/rich
dc52d1068f23dab347932c4fabcde637379fa742
54b7e3c88108a14c9ac327a01728c279d70d9c54
refs/heads/master
2022-07-18T12:36:50.920553
2020-05-17T13:52:48
2020-05-17T13:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,112
py
import re from operator import itemgetter from typing import ( TYPE_CHECKING, Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union, cast, ) from typing_extensions import Literal from ._emoji_replace import _emoji_replace from ._loop import loop_first_last, loop_last fr...
c205f8c46b863a632e3fe38baa0cd98c509905b5
63a7f3f0e6448bc0ba21847c57fcdb4fc23abb7a
/project6/ecommerce/ecommerce/urls.py
47f8dc0148f60120dbcbd857a1077a16c3502156
[]
no_license
alaminbhuyan/Django-Projects
33854b972312b19387b3b0c5a054464a5b7d843c
c46a5691954ccaa016144793115cfffd8b1058d9
refs/heads/master
2021-01-26T13:40:18.729125
2020-03-31T16:42:13
2020-03-31T16:42:13
243,444,335
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
"""ecommerce URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
57651bd056392553b7461799fcdab49cd38ccc3f
c21960247829b620d0e36a3408ef8099d248c742
/cirq/protocols/equal_up_to_global_phase.py
a6db82844732657e2d5140fb5820451d2b01ddff
[ "Apache-2.0" ]
permissive
iamvamsikrishnad/Cirq
ce1439853c9172690e3340fec70b47fd5614e2d1
4bec5447242c0d06f773a075383eea9dae0eebd3
refs/heads/master
2020-06-06T06:15:10.526041
2019-06-19T02:32:58
2019-06-19T02:32:58
192,661,193
1
0
Apache-2.0
2019-06-19T04:57:38
2019-06-19T04:57:38
null
UTF-8
Python
false
false
4,248
py
# Copyright 2019 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
b5fd20af137de58b757e8b55bfffde6aa2cc80f8
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/assessment2/amazon/run/core/controllers/unwieldy.py
30434fbf85008b2c83c8b9159fa9d0a2baf010fe
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
#!/usr/bin/env python3 from flask import Blueprint, Flask, render_template, request, url_for controller = Blueprint('unwieldy', __name__, url_prefix='/unwieldy') # @controller.route('/<string:title>', methods=['GET']) # def lookup(title): # if title == 'Republic': # TODO 2 # return render_template('rep...
6c3cee0d518b7e09a352a7a9febe99dee52efab2
3a9f2b3d79cf214704829427ee280f4b49dca70a
/saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_Palo_Alto_WISPr_Enable_Disable.py
19bc854ef34aece8a3cf553113c84ee16e59b58f
[]
no_license
jichunwei/MyGitHub-1
ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791
f826fc89a030c6c4e08052d2d43af0b1b4b410e3
refs/heads/master
2021-01-21T10:19:22.900905
2016-08-20T03:34:52
2016-08-20T03:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,190
py
''' Created on 2011-7-25 @author: Administrator ''' import sys import time import copy import libZD_TestSuite as testsuite from RuckusAutoTest.common import lib_KwList as kwlist from RuckusAutoTest.common import Ratutils as utils from RuckusAutoTest.common import lib_Constant as const BROWSER_STARTED = False #-----...
513441ca0605b94e533042b091aea4e190179b11
23a0130020e00bf09dbf9e158460ed3534adddba
/Main.py
155f306f28acf1e00c4b54d05604fb7743806502
[]
no_license
Smikhalcv/diplom_adpy-10
f6923e1e6ad3c99faa0eba294050448affca5737
072a69b95e821c2804966fc21f6214f274573206
refs/heads/master
2022-10-14T16:59:43.901261
2020-06-11T22:02:16
2020-06-11T22:02:16
260,189,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,161
py
from User.get_token import Token from User.user_id import id_user from search_peoples import Search from mongo_db import Mongo_DB from executor import get_result if __name__ in '__main__': database = Mongo_DB('VKinder') database.create_db() token = Token() access_token = token.read_token() user_id ...
c6e7a41f411c28428cdffda9d8489491dfb15727
cce6364dd85b62782671cd8048873eede2045137
/primary/3_isPalindrome.py
499cab542bacb21c2fb831b1a52c66aa1c3dc427
[]
no_license
gmt710/leetcode_python
ed647958440f66583b8717dae7bca49c516984da
441623afee3713506b702c5fd462c7ba84b48442
refs/heads/master
2020-03-28T05:11:02.851792
2019-04-17T09:14:51
2019-04-17T09:14:51
147,761,046
1
0
null
null
null
null
UTF-8
Python
false
false
479
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def isPalindrome(self, head): """ :type head: ListNode :rtype: bool """ q = [] while(head): ...
2592d28fb5f3680d1324df3073feaa1e5934d16e
960b3a17a4011264a001304e64bfb76d669b8ac5
/mstrio/utils/formjson.py
1a7443b172fcf930301b16b20e88b803adfcb11c
[ "Apache-2.0" ]
permissive
MicroStrategy/mstrio-py
012d55df782a56dab3a32e0217b9cbfd0b59b8dd
c6cea33b15bcd876ded4de25138b3f5e5165cd6d
refs/heads/master
2023-08-08T17:12:07.714614
2023-08-03T12:30:11
2023-08-03T12:30:11
138,627,591
84
60
Apache-2.0
2023-07-31T06:43:33
2018-06-25T17:23:55
Python
UTF-8
Python
false
false
2,139
py
def _map_data_type(datatype): if datatype == 'object': return "STRING" elif datatype in ['int64', 'int32']: return "INTEGER" elif datatype in ['float64', 'float32']: return "DOUBLE" elif datatype == 'bool': return "BOOL" elif datatype == 'datetime64[ns]': retu...
583d4e23b65f984ba202876acb1201c70362d1e4
d7d53826ab804a3d0f229b0a189f2626d4ebe99b
/platforms/renren/tests/__init__.py
80a2fd3dcd7289818ac37ae1ad56d06bdbb697e4
[]
no_license
zbcbcbc/xiaomaifeng
6e299e7f1d13dbca95af7a1e46d66dd0d1c86b08
91b7da9404678227d3c2c4a446777be6dacdedb7
refs/heads/master
2020-12-02T16:58:26.661967
2016-09-04T17:53:51
2016-09-04T17:53:51
67,359,821
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
from platforms.renren.tests.models import *
8079e7c0070fb7f2259f0841bdbfdf4061c16d82
08bfc8a1f8e44adc624d1f1c6250a3d9635f99de
/SDKs/swig/Examples/test-suite/python/overload_numeric_runme.py
5c80fb9fa3daff4ae841ab619589410a4f917df7
[]
no_license
Personwithhat/CE_SDKs
cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02
7afbd2f7767c9c5e95912a1af42b37c24d57f0d4
refs/heads/master
2020-04-09T22:14:56.917176
2019-07-04T00:19:11
2019-07-04T00:19:11
160,623,495
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:d59bc759f2c6bc1cca8b0a8bc70aca5b1e64ce1a52153ed569bfe234315d4512 size 1317
931602884d1cb512161cc9ce477f276bbb8c1cfa
981f1a81ba19baa36bcb109d55ee8e7520fe5aca
/Orm_test.py
4ae2a3d305124b2e735345ed8a1505038ff06f51
[]
no_license
Pythondeveloper6/Library-System-Python-PyQt5
6f1a43bdeae0d4689ed5da1f6710e7211dae52fd
28971eb5232d2f42de12fb396abacda12b4d3c65
refs/heads/master
2020-09-15T09:41:34.853547
2020-07-01T18:30:15
2020-07-01T18:30:15
223,413,327
24
14
null
2019-12-22T12:21:16
2019-11-22T13:48:48
Python
UTF-8
Python
false
false
621
py
from peewee import * # db = SqliteDatabase('people.db') # Connect to a MySQL database on network. db = MySQLDatabase('myapp', user='root', password='toor', host='localhost', port=3306) class Person(Model): name = CharField() birthday = DateField() class Meta: database = ...
886cc2c5fcddba65dc70c85d5cb0c261518b81e4
9340fdb7250d6466899f238fe5fc33b91b062f34
/backend/newwork_1986/settings.py
529c88bcd24aa0bc0340cba58609104e7722128b
[]
no_license
crowdbotics-apps/newwork-1986
09b600d13fcff79afef424d120dfec6944715265
d000f09ac7384fe83e04c64028cda1e0ef9aa033
refs/heads/master
2022-12-15T07:50:34.384076
2019-04-05T17:35:53
2019-04-05T17:35:53
179,727,307
0
0
null
2022-12-06T15:22:15
2019-04-05T17:35:50
JavaScript
UTF-8
Python
false
false
4,740
py
""" Django settings for newwork_1986 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ imp...
1136c6923f5b46ab2360eb4494b1157796fcccb7
d83118503614bb83ad8edb72dda7f449a1226f8b
/src/dprj/platinumegg/app/cabaret/views/mgr/model_edit/gacha_header.py
2db815f7f6f2334c265f0fe81fb7afe0a57ec6a9
[]
no_license
hitandaway100/caba
686fe4390e182e158cd9714c90024a082deb8c69
492bf477ac00c380f2b2758c86b46aa7e58bbad9
refs/heads/master
2021-08-23T05:59:28.910129
2017-12-03T19:03:15
2017-12-03T19:03:15
112,512,044
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
# -*- coding: utf-8 -*- from platinumegg.app.cabaret.views.mgr.model_edit import AdminModelEditHandler,\ AppModelForm, ModelEditValidError, AppModelChoiceField from defines import Defines from platinumegg.app.cabaret.models.Gacha import GachaHeaderMaster, GachaMaster class Handler(AdminModelEditHandler): """マ...
1dff67206507943c23fc76cad97fd2f5d6e582d1
5ff947dd2e1c6fa35f4b27cbfa7b5d2027a0f699
/backend/manage.py
4ef77aa25ab2afbd68a04d97d8a91f8647411f7c
[]
no_license
crowdbotics-apps/game-3861
17b14ba1fd53b619a3e93ada6727007c742a8c23
d6404952fee48d411fda66803f88fbd01d08e419
refs/heads/master
2022-12-12T15:30:27.157082
2019-05-26T16:35:45
2019-05-26T16:35:45
188,707,474
0
0
null
2022-12-09T04:00:17
2019-05-26T16:35:29
Python
UTF-8
Python
false
false
807
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "game_3861.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
841c6046c5b6b37c26338a127242921eb0a5ea05
2bbc7ba3ecdb54feffa446ed50297432f249e3dc
/tests/test_addons/test_addon_mtext.py
3aec15c652a5c501ee0432a626c758f40b8ebcd8
[ "MIT" ]
permissive
stephenthoma/ezdxf
16f7b06e43bad55ccf96387e22b68fd624a5d8fb
5cb1fb0298707d69d1b039858523b97990d85fba
refs/heads/master
2020-04-04T11:59:42.480375
2018-04-02T05:01:49
2018-04-02T05:01:49
155,910,581
0
0
NOASSERTION
2018-11-02T19:07:21
2018-11-02T19:07:21
null
UTF-8
Python
false
false
4,379
py
# Created: 09.03.2010, 2018 adapted for ezdxf # Copyright (C) 2010-2018, Manfred Moitzi # License: MIT License from __future__ import unicode_literals __author__ = "mozman <[email protected]>" import pytest import ezdxf from ezdxf.addons import MText @pytest.fixture(scope='module') def dxf(): return ezdxf.new('R12') ...
ad3a475a300d0c1344e0d8e9e66b213d15d22e95
206c10808b6224f7d8236e27cc555e723af695d9
/tomodachi/launcher.py
4a7f1e19743d1f01214c04f799e54b9807194733
[ "MIT" ]
permissive
xdmiodz/tomodachi
3280209ae49100ec902e3b15c323b38e7480cdd3
7ca998a421dd724df5967d5baa0cf79f5112b79b
refs/heads/master
2023-03-15T19:22:16.381212
2023-01-20T07:34:48
2023-01-20T07:34:48
200,020,833
0
2
MIT
2023-03-08T00:00:01
2019-08-01T09:30:22
Python
UTF-8
Python
false
false
12,014
py
import asyncio import datetime import importlib import logging import os import platform import signal import sys import time from typing import Any, Dict, List, Optional, Set, Union, cast import tomodachi.__version__ import tomodachi.container import tomodachi.importer import tomodachi.invoker from tomodachi.containe...
6f8524311c4daba1891bb1f2acf250e6288f9817
5a628b54e511e6186dcbc8636b530eab48cc6523
/django/template/base.py
67a7b330bed5e1a3646ecffeadb5155a98669f67
[ "BSD-3-Clause", "Python-2.0" ]
permissive
hdknr/annotated-django
9c6241853ce09d0d130a57e0f6611a062cc4f17b
5843908dd6586a54b92d974f45049fa87e64db8b
refs/heads/2.1.x
2021-05-22T08:08:11.469887
2020-01-25T22:41:11
2020-01-25T22:41:11
41,231,818
0
0
NOASSERTION
2019-11-02T22:33:33
2015-08-23T02:04:03
Python
UTF-8
Python
false
false
38,442
py
""" This is the Django template system. How it works: The Lexer.tokenize() method converts a template string (i.e., a string containing markup with custom template tags) to tokens, which can be either plain text (TokenType.TEXT), variables (TokenType.VAR), or block statements (TokenType.BLOCK). The Parser() class ta...
48c65b2c68ce49ed81e4e99de686a1e06dc4d029
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Fe6wvtjcNFwuANuLu_17.py
2edae5acef2d0784cbb3e57f8f1de8dc2e9a243d
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
""" A game of table tennis almost always sounds like _Ping!_ followed by _Pong!_ Therefore, you know that Player 2 has won if you hear _Pong!_ as the last sound (since Player 1 didn't return the ball back). Given a list of _Ping!_ , create a function that inserts _Pong!_ in between each element. Also: * If `win`...
16d79f6a693248f707912d0602e5b5898033423f
60a525218779f250d725ca4f9677bd626eb687b9
/repos/system_upgrade/common/actors/checkfips/tests/unit_test_checkfips.py
7774352e00b1e0a332de81aef86c509fa0641ce8
[ "Apache-2.0" ]
permissive
examon/leapp-repository
920c9246540a2c603c7c9dfcbf9ae3673487f221
4cedc35b45aeb9131a651c8362f5ff4d89e3b5ee
refs/heads/master
2023-02-24T09:33:10.280795
2023-02-01T10:05:25
2023-02-06T11:03:38
169,085,644
0
0
Apache-2.0
2020-02-24T09:56:34
2019-02-04T13:52:38
Python
UTF-8
Python
false
false
1,403
py
import pytest from leapp.models import KernelCmdline, KernelCmdlineArg, Report from leapp.snactor.fixture import current_actor_context ballast1 = [KernelCmdlineArg(key=k, value=v) for k, v in [ ('BOOT_IMAGE', '/vmlinuz-3.10.0-1127.el7.x86_64'), ('root', '/dev/mapper/rhel_ibm--p8--kvm--03--guest--02-root'), ...
d4dfd3cbda727e702637ff99d4c9cb5e3d6eca6d
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_014/ch167_2020_06_22_20_37_54_917135.py
a99f1260d35132010fb4d2db003a6410b59fc2c4
[]
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
276
py
def bairro_mais_custoso(gastos): saida_1 = {} saida_2 = {} for x,y in gastos.items(): saida_1[x] = y[6:12] for a,b in saida.items(): saida_2[a] = sum(b) for i,j in saida_2.items(): if j == max(saida_2.values()): return i
9309569dbb1a25d10ac57786f2e48786252a6ec1
05ace8ef6257681ae5b677ad1fcfceb316c5fd24
/moshmosh/repl_apis.py
99b0530c2b6116c52020d0369353a87b90d1a9da
[ "MIT" ]
permissive
thautwarm/moshmosh
cb0e5c2cc7c00886ec5f400629185f32cbe4e8c7
12435ac6288e88b42ea13d59825b90b37e297f38
refs/heads/master
2022-01-09T01:50:34.333840
2020-05-29T01:19:40
2020-05-29T01:19:40
196,604,714
120
7
MIT
2022-01-01T03:36:27
2019-07-12T15:39:55
Python
UTF-8
Python
false
false
4,289
py
from moshmosh.extension import * from moshmosh.extension import _extension_pragma_re_u def update_pragmas(extension_builder: t.Dict[object, Extension], lines): """ Traverse the source codes and extract out the scope of every extension. Incrementally. """ # bind to local for faster visiting in the l...
1161e6cadac870db9df449d7395504a2bd9f4d9d
dbb3b3d39f7bd5255d846347b6cd7b153969955c
/packages/vaex-jupyter/vaex/jupyter/view.py
22d3ea574d52d2a61d0b1c553b838233437142c4
[ "MIT" ]
permissive
bbbbpage/vaex
ab02e89cdaf1ec99a13775d292dfcbfdc49c0384
bdf6670b5438bfbdf677477c7c71e69128b063e0
refs/heads/master
2022-07-30T09:26:28.060993
2020-05-22T14:51:58
2020-05-22T14:51:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,857
py
from __future__ import absolute_import import sys import vaex.ml import traitlets import ipywidgets as widgets import ipyvuetify as v import numpy as np from IPython.display import display from . import widgets as vw from . import model from .traitlets import traitlet_fixes import matplotlib.colors colors_default = ...
b150aea66bc591e189b33cf0d8f0aa9d5350afed
8ae16d0b53f3b70adab41b307d30148a3b7b6133
/csv_read.py
56bc1dfd50fa8a983b42d8ad2391437544c4817f
[]
no_license
maiorem/python_dataAnalysis
415af6fe401b76e623ba6c336e027d053d8dccc5
a2eb45bfcfb9ed3ae2533c021de1e8537bf2f563
refs/heads/main
2023-03-31T09:28:28.664694
2021-04-04T06:40:02
2021-04-04T06:40:02
354,154,214
1
0
null
null
null
null
UTF-8
Python
false
false
777
py
line_counter=0 data_header=[] employee=[] customer_USA_only_list=[] customer=None with open('customers.csv') as customer_data : while 1: data=customer_data.readline() if not data : break if line_counter==0 : data_header=data.split(",") else : customer=data.s...
12f4d68a13f543af6e710002b21fd31de60dd105
7fd0c4608e32c53fea935ac63cacf66e1a0c971d
/models/ZpHiggs_UFO_2000_70_1500_700/parameters.py
1f1099ab2ac1513eaaff2137a36bd4910bdb225e
[]
no_license
Quantumapple/MadGraph5_cards
285f8a303b04b9745abfc83f5ea4fb06a2922fc9
3db368ada01f59bace11b48eab2f58ab40ba29f2
refs/heads/master
2020-05-02T20:43:23.791641
2020-01-17T16:10:46
2020-01-17T16:10:46
178,199,838
0
2
null
null
null
null
UTF-8
Python
false
false
15,885
py
# This file was automatically created by FeynRules 2.0.28 # Mathematica version: 9.0 for Linux x86 (64-bit) (February 7, 2013) # Date: Tue 7 Mar 2017 15:17:59 from object_library import all_parameters, Parameter from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot # This is a default p...
7ec62fa65d189134f96ad76d02130a15a9598acd
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/web/latest/web_app_swift_virtual_network_connection.py
3e8952e7afad52a8498263aaa96cb79bcd78486d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
6,147
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 from ... import _utilities, _tables __a...
1561dc7a0d4fdcc7d078decb8d7a38e0e0838680
8600ea155f279e5a8dfe5a1926038511f6b6a7ea
/membership/wizard/__init__.py
ab1f292ce8f004d75e6a9cebe2c074fb580a2a84
[]
no_license
MarkNorgate/addons-EAD
c2fff89ab16fce3ba19fbe433ee5863705a6f4e5
840f28642b5d328e4b86839c413e5164622295a5
refs/heads/master
2020-04-23T22:11:00.164438
2015-07-22T12:24:53
2015-07-22T12:24:53
39,501,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
e9e2037b55eee5289c172664d2628b589cfd35ef
b7620d0f1a90390224c8ab71774b9c906ab3e8e9
/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveStreamWatermarksRequest.py
75fdfa4674d65607a75e94f5a4e7d72a1d5becb4
[ "Apache-2.0" ]
permissive
YaoYinYing/aliyun-openapi-python-sdk
e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f
e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627
refs/heads/master
2022-10-17T16:39:04.515562
2022-10-10T15:18:34
2022-10-10T15:18:34
117,057,304
0
0
null
2018-01-11T06:03:02
2018-01-11T06:03:01
null
UTF-8
Python
false
false
1,844
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...
ae433691f368227705fc5d0df3b181e7c53763e9
25ba4b387bf6bb278af1335b18e99ea0389548be
/think_python_solutions/chapter-06/exercise-6.8.py
9b6ed0d969a178a8c2633a592518055b1d9abade
[]
no_license
adwanAK/adwan_python_core
56ffc63b326ec3f6739bc4733c060dc49554f1ae
745922331cf36f65376c55115ee9a3df4d5c0450
refs/heads/master
2022-12-12T21:35:42.387685
2018-09-26T08:53:43
2018-09-26T08:53:43
148,442,004
2
1
null
2022-12-08T02:23:54
2018-09-12T07:46:34
Python
UTF-8
Python
false
false
841
py
#!/usr/bin/env python # encoding: utf-8 """ exercise-6.8.py Greatest commond divisor with Euclid's algorithm. PITA to realize that we must return the function vaule, not simply invoke the gcd function via recursion. Created by Terry Bates on 2012-08-19. Copyright (c) 2012 http://the-awesome-python-blog.posterous.com....
f75a4829b19ba35e524480bfe8810f6d7f6964e9
81aaa9ffcbdddf0b6f99a5c4c84adf179fef8f3e
/maml_rl/tests/utils/test_torch_utils.py
3c9d2a02ccef8f45ec2b222cc40ed8c90c499847
[ "MIT" ]
permissive
dkkim93/pytorch-maml-rl
5ffd728d356224136244f46bc32b18c72568d007
6dd0dd7dbf2e8aed29e5c3bbab9f42cfd780c99a
refs/heads/master
2021-07-09T07:28:40.184950
2020-08-10T03:50:10
2020-08-10T03:50:10
174,039,301
1
0
MIT
2019-03-06T00:01:14
2019-03-06T00:01:13
null
UTF-8
Python
false
false
3,711
py
import pytest import numpy as np import torch import torch.nn as nn from maml_rl.utils.torch_utils import (weighted_mean, weighted_normalize, vector_to_parameters) def test_weighted_mean(): lengths = [2, 3, 7, 5, 11] # Inputs inputs_np = np.random.rand(13, 5).astyp...
d5e42271c0c9c4f4137445c35e1ded34b0605485
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/LArCalorimeter/LArCafJobs/python/GetLBsToIgnore.py
d5216ef4195445e6fc9d1d5401447eaec33faf2e
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
8,238
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration import sys, string ,re import xmlrpclib from PyCool import cool from CoolConvUtilities.AtlCoolLib import indirectOpen from DQDefects import DefectsDB try: serverfile=open("/afs/cern.ch/user/l/larmon/public/atlasdqmpass.txt") password=serv...
51f33cc29c4bf5e9a4b13ce80679ec1ace1b8c61
a298d0b4a3e9e12170651a6bf728093b4badfac7
/LeetCode/394 - Decode String/decodeString.py
98d734f3743b24e348b307092d67a1c6b79350b9
[]
no_license
gavinz0228/AlgoPractice
fc8ecd194ea2d26de59df45909838161c802b8cd
1cb183a326a0612a5cd941778500a8265e1d7255
refs/heads/master
2022-07-27T11:42:06.887668
2022-07-18T20:38:31
2022-07-18T20:38:31
172,929,652
1
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
class Solution(object): def decodeString(self, s): """ :type s: str :rtype: str """ return self.getString(s)[0] def getChars(self, s): if not s: return "","" if ord(s[0]) > 57: for i in range(len(s)): if...
8f9b74e584166ea6b796806111f5fc467dbaebf4
f36b733f9c24d4cabd0d3354e0344094fbf3c026
/a10_saltstack/helpers/helper_modules/a10_cgnv6_lsn.py
cd9e9303c79271c0cf98e7829c74d1a2739c5a8a
[ "Apache-2.0" ]
permissive
a10networks/a10-saltstack
08e13647e0187b09500ed3d9053ae06e7e808746
0d86043b1d09e75ea170e72fac5068254fc4037c
refs/heads/master
2021-03-19T16:11:14.211706
2019-07-24T17:18:04
2019-07-24T17:18:04
123,501,933
2
3
null
2019-07-24T17:18:05
2018-03-01T22:55:53
Python
UTF-8
Python
false
false
2,223
py
# Copyright 2019 A10 Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
b032bab5b656e6bb9d18d5ee3d3dded0406cb869
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_thailand_license_plate_request.py
c1acf5879b063b5598ca85dc49a3cc438cd447aa
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
6,709
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class RecognizeThailandLicensePlateRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): Th...
6d49fc4df7c3b8e4dd925d25afe79a6b324151f9
78b160d8131f3c4b7aef0d051b040825a9c50e0d
/algoexpert/threeNumberSum.py
864ca5a9c129c8a28975b66b5644991a336c3890
[ "MIT" ]
permissive
ardakkk/Algorithms-and-Data-Structures
744f8c9ffb233b95040e5bdcbddb9f5d2ff7a5ba
c428bb0bd7eeb6c34448630f88f13e1329b54636
refs/heads/master
2021-07-08T22:40:40.361282
2020-07-20T10:39:58
2020-07-20T10:39:58
156,005,721
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
# Time: 0(n^2) | Space: O(n) def threeNumberSum(array, target_sum): array.sort() triplets = [] for i in range(len(array) - 2): left = i + 1 right = len(array) - 1 while left < right: current_sum = array[i] = array[left] + array[right] if current_sum == target...
c780e1290022738f2784cc181bb9b35646860418
315145ec1f997da0ac2dcedc221285b9a8aae3a9
/2016/get_tweetid_boundary.py
91f38626644492392eded816ed26277cf40cc24c
[]
no_license
lukuang/2016-rts
55cc7f942ad674c325e1e906246873016e3b9678
bfe8c57711aa3243419ff4c0487e971eee667aa6
refs/heads/master
2021-01-19T04:21:53.707708
2019-01-03T23:14:46
2019-01-03T23:14:46
61,137,503
1
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
""" generate tweet boundary for each day """ import os import json import sys import re import argparse import codecs import subprocess def get_tweet_id(output): for line in output.split("\n"): tweetid_finder = re.search("<DOCNO>(\d+)",line) if tweetid_finder: return tweetid_finder.gr...
484932b2584a92629dfb5af13608264e37cf192e
3b8ea489dcf2eea47c37156527a2727221e216f3
/virtual/lib/python3.6/site-packages/gunicorn/__init__.py
0edcf51907fe1909fae903ba27d6f143406cb4ac
[ "MIT" ]
permissive
toelapiut/unsplash
d57ec93825ebae7107aea43823b1acbe4e5493f6
a93a694bef7214c64d248e20f3a6b904b463672d
refs/heads/master
2021-08-31T14:49:31.383197
2017-12-21T19:07:11
2017-12-21T19:07:11
111,072,300
5
0
MIT
2017-12-21T19:07:12
2017-11-17T07:31:39
Python
UTF-8
Python
false
false
255
py
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. version_info = (19, 7, 1) __version__ = ".".join([str(v) for v in version_info]) SERVER_SOFTWARE = "gunicorn/%s" % __version__
ac563116caaf0fd04a8dc147dae27c0f347f95fe
75fa11b13ddab8fd987428376f5d9c42dff0ba44
/metadata-ingestion/tests/integration/git/test_git_clone.py
3436c692f5d95399a53d6f910545ab484c6be3d1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "MIT" ]
permissive
RyanHolstien/datahub
163d0ff6b4636919ed223ee63a27cba6db2d0156
8cf299aeb43fa95afb22fefbc7728117c727f0b3
refs/heads/master
2023-09-04T10:59:12.931758
2023-08-21T18:33:10
2023-08-21T18:33:10
246,685,891
0
0
Apache-2.0
2021-02-16T23:48:05
2020-03-11T21:43:58
TypeScript
UTF-8
Python
false
false
3,961
py
import os import pytest from pydantic import SecretStr from datahub.configuration.common import ConfigurationWarning from datahub.configuration.git import GitInfo, GitReference from datahub.ingestion.source.git.git_import import GitClone LOOKML_TEST_SSH_KEY = os.environ.get("DATAHUB_LOOKML_GIT_TEST_SSH_KEY") def t...
2b811bc4a558ca355bc8465310d5280b36813baf
8ee8fe3c2acea497a85428bfb3dfde19e58b2bc3
/test-examples/issue_673_reproduce.py
aa8cc0108c7bfb6feebd605779c329efcf6936d2
[ "BSD-3-Clause" ]
permissive
sofroniewn/image-demos
a6e46f08fd4ce621aa96d6b6378b50f63ac2b381
2eeeb23f34a47798ae7be0987182724ee3799eb8
refs/heads/master
2022-11-02T23:50:23.098830
2022-10-30T04:38:19
2022-10-30T04:38:19
179,378,745
11
1
null
null
null
null
UTF-8
Python
false
false
729
py
""" Test adding 4D followed by 5D image layers to the viewer Intially only 2 sliders should be present, then a third slider should be created. """ import numpy as np from skimage import data, measure import napari import scipy.ndimage as ndi image = data.binary_blobs(128, n_dim=3) verts, faces, normals, values = ( ...
05f26dba9cb6933495ecf2bc530966099292e3d2
6c14069181f313e84eeb524dd495e3882156ef50
/samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-cfgmgr-rollback-act/nc-execute-xr-cfgmgr-rollback-act-42-ydk.py
9ef12861c74cd7aea090947f557c9240b9294995
[ "Apache-2.0" ]
permissive
decolnz/ydk-py-samples
dde0fd64fd4df12a215588766a0f1fb8baf07fcd
7fa3f53c4d458c3332d372fb2fe3c46c5e036f07
refs/heads/master
2021-01-19T03:24:19.877929
2017-04-04T17:16:46
2017-04-04T17:16:46
87,310,389
1
0
null
2017-04-05T13:06:57
2017-04-05T13:06:57
null
UTF-8
Python
false
false
3,204
py
#!/usr/bin/env python # # Copyright 2016 Cisco 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 applicab...
bf676537a89da5673703b3507daf8b5d7be47720
161d96f4b16e1cc7e473f12b7070aa9f5615e28e
/iternal/discord/cogs/admin/debug.py
d348403298838515aca40e1a29a7ddeae2b6b833
[]
no_license
pikoUsername/prison-bot
be717d4d64eb18d922bf808bb9d48db659269318
c6b8df54e71a4f0fc0fa1568d9da070a290d43da
refs/heads/master
2023-04-02T18:46:52.034934
2021-04-13T05:07:41
2021-04-13T05:07:41
345,583,521
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
from discord.ext import commands as commands from discord import Embed as Embed from .utils import log as log from iternal.discord.loader import _ as __, proj_root as proj_root from iternal.store.prison import Prison as Prison class Debugger(commands.Cog, name='pantry | Кладовка'): """ Использвать для того ч...
064c47c344a4c113a40b9dfe3e8c77cca1f181ac
415a8a4315e6331b2a157de8a1429fe0562729f8
/python/matplotlib/axisSciNotation.py
72ae2b7e657fd9d1a2ed94320b673af0cd30a29a
[]
no_license
alfaceor/programming-examples
784690dd1104e4adbdf958e4163b3b462f635881
abea970a54cfab0eacc5280ae62383495e9e6eeb
refs/heads/master
2022-05-04T23:14:30.503114
2022-04-29T10:11:45
2022-04-29T10:11:45
36,015,541
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mtick ###### BEGIN PLOT DECORATION VARIABLES font = {'family' : 'normal', 'weight' : 'bold', 'size' : 18} plt.rc('font', **font) plt.rc('text', usetex=True) ###### END PLOT DECORATION VARIABLES XX = n...
[ "alfaceor" ]
alfaceor
548b27946f87ef8704f9fc1a9ba223e08c830efa
6a3af6fe669b2e17db1fa7d0751cbc4e04948079
/fn_icdx/tests/test_icdx_helper.py
9b02b54530b75dba078fdc5e236bea2fe5278b8f
[ "MIT" ]
permissive
jjfallete/resilient-community-apps
5f0a728fe0be958acc44d982bf0289959f84aa20
2e3c4b6102555517bad22bf87fa4a06341714166
refs/heads/master
2022-04-17T13:20:36.961976
2020-04-13T07:03:54
2020-04-13T07:03:54
169,295,943
1
0
MIT
2020-04-13T07:03:56
2019-02-05T19:06:57
Python
UTF-8
Python
false
false
5,963
py
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. """Tests using pytest_resilient_circuits""" from __future__ import print_function import pytest from fn_icdx.util.helper import ICDXHelper class TestIcdxUtilitiesHelper: """ Tests for the helper class""" @pytest.mark.parametr...
677afc8e9b4fedb3137341367891adad32492c94
00fc70953dd85f2699fc80cd7c59e9c472cbb90e
/test/test_retention_metadata.py
841367183a76561a116775360f9a0f8cb528dae3
[ "MIT" ]
permissive
solidgoldbomb/python-harbor
89b270caaa6ac450245753c0a3a13af3ff96c142
4a12789a9712cc101abd3f8d32464bc8a474e0a4
refs/heads/main
2023-02-25T20:22:19.137094
2021-02-01T11:58:24
2021-02-01T11:58:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
# coding: utf-8 """ Harbor API These APIs provide services for manipulating Harbor project. # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import harbor from harbor.models.rete...
a1a70d3b122ddbe41c7677983806a28e4eeed340
0b60be2c526149603fcbd3f1a40545ed5d6ed1fc
/uiautomator2/exceptions.py
c5cc3d53d859bec09c096e8a1a9a6578010f23ac
[ "MIT" ]
permissive
levixie/uiautomator2
6f2d4eb1bd1e416dc6ad8a0e50f56dd2f1344530
7fa465601d747aad5c673d603486ad2145b9e860
refs/heads/master
2020-05-20T20:55:13.068591
2019-06-23T23:03:57
2019-06-23T23:03:57
185,751,403
0
0
MIT
2019-06-23T23:03:58
2019-05-09T07:46:01
Python
UTF-8
Python
false
false
1,802
py
# coding: utf-8 # # class ATXError(Exception): # pass class UiaError(Exception): pass class ConnectError(UiaError): pass class XPathElementNotFoundError(UiaError): pass class GatewayError(UiaError): def __init__(self, response, description): self.response = response self.des...
1b2d28b012a3ae9806e7d4ee05e0969f02935089
ed9e1b622dad6b559cd0fe6fa23d6a27f857dc7f
/galsim/deprecated/gsobject_ring.py
6a44668976b265c701e31f9d701d4287480961e9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
ajwheeler/GalSim
40d6f8c64789b601ed2547eefed05f1577592613
cf0ef33e5f83da1b13a0617d362d8357056d6f22
refs/heads/master
2021-01-22T06:14:31.486159
2017-04-20T01:20:20
2017-04-20T01:20:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,029
py
# Copyright (c) 2012-2017 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
36a144965c4bb6563e225c7952ef2dcb1868ab71
b9022c3d2a463ca3f363b09ee5c387a76fa10fbd
/abc029b.py
82ea3b373a5f42cfaede47fb7738b4ce580a32e6
[]
no_license
galileo15640215/atcoder
1371c90bbed185327cd5c3ce32516b5306889db8
27f17573589a43e5ac479e8df048ba461b942b83
refs/heads/master
2021-07-20T14:19:29.361693
2021-07-11T14:34:56
2021-07-11T14:34:56
194,278,891
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
S = [input() for i in range(12)] a=0 for i in range(12): if 'r' in S[i] : a+=1 print(a)
9d492d34a91b9b6a2adaf147e43b85fd5e1810c3
6bf7149077f539ab599db1f717c93aca82724512
/static-and-class_metods/movie-world/customer.py
3aed9a54bd7db6ed12a7a149c4e8651417f97feb
[]
no_license
KalinHar/OOP-Python-SoftUni
8b53e8b734b364878c5372525c4249fdd32f0899
9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7
refs/heads/master
2023-07-09T08:15:59.765422
2021-08-16T06:01:08
2021-08-16T06:01:19
380,813,294
0
1
null
null
null
null
UTF-8
Python
false
false
361
py
class Customer: def __init__(self, name, age, id): self.name = name self.age = age self.id = id self.rented_dvds = [] def __repr__(self): return f"{self.id}: {self.name} of age {self.age} has {len(self.rented_dvds)} " \ f"rented DVD's ({', '.join([dvd.fami...
13ecdc3abf138774ecd6ae0a21a5abc0bc3c11a0
a321652061fd5c389490030f898a0191a35f21c3
/managers/operatorsTranscribe/metadata_filegenerator.py
d22dd980ee14d63ef5b5c619fa7a92e2f3597a43
[ "BSD-3-Clause" ]
permissive
cerebunit/cerebmodels
5c4b1485e68d078988ff7057385309a26e05415a
316d69d7aed7a0292ce93c7fea20473e48cfce60
refs/heads/master
2023-02-18T06:45:08.716877
2022-07-18T11:34:13
2022-07-18T11:34:13
139,698,484
0
1
BSD-3-Clause
2023-02-10T21:20:07
2018-07-04T09:15:24
AMPL
UTF-8
Python
false
false
7,147
py
# ~/managers/operatorsTranscribe/metadata_filegenerator.py import platform import uuid import time from datetime import datetime from dateutil.tz import tzlocal class FileGenerator(object): """ **Available Methods:** +---------------------------------+----------------------------------+ | Method name ...
6decd7a44b88980b1b2eb4cf82a52ae9b74c63df
4c499782655f8e929a5dd6b39d6c5d378fcfd7bd
/2_7_grid.py
4c2dab664014608b73819477edbe701451b3cf3f
[]
no_license
IanCBrown/practice_questions
53a3fd66bee807f6e30e6d57632966f146c704c9
838b94c26cd3c26b76c3908277944a3b5f9bc7c7
refs/heads/master
2021-08-06T07:14:57.237709
2020-04-16T05:03:33
2020-04-16T05:03:33
149,521,025
1
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
from __future__ import absolute_import import sys grid = [] def bfs(grid, n, m): visited = [] q = [(0,0)] while q: node = q.pop(0) if node[0] == n and node[1] == m: visited.append(node) return visited if node not in visited: visited.append(node)...
bdc8891fa9754d6a88a31b22a34e0d3fbb425a84
2d4380518d9c591b6b6c09ea51e28a34381fc80c
/CIM16/IEC61970/Informative/InfLoadControl/LoadShedFunction.py
026cb4a998ab4aeff40560258328b4003d84f7c7
[ "MIT" ]
permissive
fran-jo/PyCIM
355e36ae14d1b64b01e752c5acd5395bf88cd949
de942633d966bdf2bd76d680ecb20517fc873281
refs/heads/master
2021-01-20T03:00:41.186556
2017-09-19T14:15:33
2017-09-19T14:15:33
89,480,767
0
1
null
2017-04-26T12:57:44
2017-04-26T12:57:44
null
UTF-8
Python
false
false
2,090
py
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
c227554a1f48abf4ce05d9d0b46bc3a3308ee863
443a3a4fd4a53a3dd900b86037a526951bc929a2
/tests/test_hgvs_location.py
298c9f1ecfc1f0d44392d8a89307b7dbe2a22492
[ "Apache-2.0" ]
permissive
imaurer/hgvs
224a48de4628ebf5c6e3687122ac99261499c0b6
b53b033609bd51bf1af96e8c7fbecc3bdd1fdf3c
refs/heads/master
2021-01-22T23:05:48.777440
2017-03-16T12:20:16
2017-03-16T12:20:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,444
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import unittest from nose.plugins.attrib import attr from hgvs.exceptions import HGVSError, HGVSUnsupportedOperationError import hgvs.location import hgvs.parser @attr(tags=["quick", "models"]) class Test_Sim...
97f2b7fc974fd31f932b8119a1893c6cdcfbf035
55a273347cb103fe2b2704cb9653956956d0dd34
/code/tmp_rtrip/encodings/cp1257.py
f99bc227bb34ce2c00c56c2c65c9741d841809b6
[ "MIT" ]
permissive
emilyemorehouse/ast-and-me
4af1bc74fc967ea69ac1aed92664f6428acabe6a
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
refs/heads/master
2022-11-18T03:50:36.505882
2018-05-12T17:53:44
2018-05-12T17:53:44
115,035,148
25
1
MIT
2022-11-04T11:36:43
2017-12-21T18:27:19
Python
UTF-8
Python
false
false
1,767
py
""" Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py. """ import codecs class Codec(codecs.Codec): def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_table) def decode(self, input, errors='...
cff6911a30320c0e916ef582ab4652791fb96ef3
3b07edf0cd5c546a09ef79fd93ebfd2b04e162e1
/data/ebs-ai-basic/2/2/05.py
09b0cd80cc813b63c21f1f472eb40eb13a01d637
[]
no_license
neverlish/Learned
603b41f7c6ba3cf4e5eea162f501fc42f8326aa3
47f9160c2e516c8b4d1692f1f7dbf200f1cadbb6
refs/heads/master
2023-06-24T06:03:35.848932
2023-06-10T11:38:53
2023-06-10T11:38:53
78,947,372
8
1
null
2023-09-14T05:26:47
2017-01-14T15:12:57
Jupyter Notebook
UTF-8
Python
false
false
2,670
py
# 행렬의 차이를 이용해서 두 이미지 표현하기 import turtle import numpy as np pixelSize = 10 def putPixel(x, y, pSize, pCol): turtle.penup() turtle.goto(x*pSize, (-1)*y*pSize) turtle.pendown() turtle.begin_fill() turtle.fillcolor(pCol) turtle.setheading(45) turtle.circle(pSize/2, steps=4) turtle.end_fi...
4d7128e1848b65dbcfc95770e62a47980627bd14
a463f5858c663199b6f6e38d9b2dc93e9a9ae730
/problem/2003/00_200316/4522_세상의모든팰린드롬.py
e11adf0825d5dc9730b7dab4969ef9b58acbd159
[]
no_license
do-park/swexpertacademy
4993f79e3a73697ecdc71e0f654306466626b00b
7cbbb0957ce5191cb44cd35094da5b0d29783e49
refs/heads/master
2020-12-22T19:26:35.257666
2020-10-19T02:02:32
2020-10-19T02:02:32
236,907,286
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
for tc in range(1, int(input()) + 1): flag = ['Not exist', 'Exist'] f = 1 string = list(map(str, input())) for i in range(0, len(string) // 2): if string[i] != string[len(string) - i - 1]: if string[i] == '?' or string[len(string) - i - 1] == '?': continue ...
d6391f42975e1fd64be45e9ba6750c4ab0765042
bb06411e37bcba25a89bd523133a4e4d083558f1
/sdk/python/pulumi_xyz/provider.py
aba9d6d647b165a5401f010edb5b6ccd24ccc548
[ "Apache-2.0" ]
permissive
zelarhq/pulumi-provider-boilerplate-openapi
7410b57bc220bee9c7095d0a6e9d8e8250ff5620
aec2430937a0c5df072c713f4641ea5ba128569f
refs/heads/master
2023-08-14T19:14:58.092965
2021-06-03T13:32:23
2021-06-03T13:32:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,776
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 __al...
87ea8efb7076d210da8faaf220c1197c97519945
a9bd335b3948d707a6785490e132d59e375c7242
/Problem 101 - 200/P107.py
a61e07fcfa2ee8db5f4498938d386c14f1f48737
[]
no_license
xzguy/LeetCode
cc52f5329843bb2f692cea131c20b629af910bab
54d99f5e54391ea6ed467e2b5c984848a918dc2a
refs/heads/main
2023-03-25T17:50:50.173621
2021-03-28T16:06:03
2021-03-28T16:06:03
331,409,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def levelOrderBottom(self, root: TreeNode) -> [[int]]: if not root: return [] queue = [root] res = [] while qu...
[ "xuzhou.guy@gmai" ]
xuzhou.guy@gmai
1dd8bdd14d661670b6c8fefa7039e907d5c112bc
e32ee307e4c59cc18f9dea18d797784a1b23148f
/removing the longest palindrome from it..py
6f68218a0b80234c2729e290897466feffb27853
[]
no_license
GuhanSGCIT/SGCIT
f4ab44346186d45129c74cbad466c6614f9f0f08
8b2e5ccf693384aa22aa9d57f39b63e4659f6261
refs/heads/master
2020-07-11T05:47:54.033120
2020-07-07T05:02:41
2020-07-07T05:02:41
204,459,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
# Python 3 implementation to find # minimum number of deletions # to make a string palindromic # Returns the length of # the longest palindromic # subsequence in 'str' def lps(str): n = len(str) # Create a table to store # results of subproblems L = [[0 for x in range(n)]for y in range(n)] ...
8aefb0884aeec07500f70bb238b221cef9a1b21b
cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b
/python_test/except.py
a006780e3fc9b3e0aafc7e7df11473ee0268902a
[]
no_license
1026237416/Python
ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14
ffa8f9ffb8bfec114b0ca46295db05c4213c4c30
refs/heads/master
2021-07-05T00:57:00.456886
2019-04-26T10:13:46
2019-04-26T10:13:46
114,510,323
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
s=raw_input("Please input your age:") if s == "": raise Exception("Input must no be empty.") try: i = int(s) except ValueError: print "Could not convert data to an integer." except: print "Unknow exception!" else: print "You are %d"%i, "years old" finally: print "Goodbye"
f96f89d9b4a367edb8f8dbf294ee4d21024402b0
283464882733bf4fb9d98c74f46279e98cfd20f9
/calenguay/events/views.py
20e252ce8b369cbac61b1125d1ab5f7e54873b6a
[]
no_license
mariocesar/calenguay
8647734f3fdf3fdeacca44f493b7128be9de54f0
f1759a2a0c35bfc82976b36d7cea65e10a81f572
refs/heads/master
2021-09-25T11:43:08.339647
2020-03-24T22:55:57
2020-03-24T22:55:57
249,537,405
0
0
null
2021-09-22T18:46:55
2020-03-23T20:30:14
Python
UTF-8
Python
false
false
1,560
py
from django import forms from django.contrib import messages from django.core.exceptions import ValidationError from django.core.mail import message from django.shortcuts import get_object_or_404, redirect, render from calenguay.events.models import Category, Event, EventType def landing(request): categories = C...
49606bc5d3a8da0cae3a8792f1f6867089dfb5f2
f9d3ee7b3b203d23f9ef2c95055e1d26bfddd74b
/nn/embedding/embedding.py
29d3ea957df9c0aae268444adcd8460d4784fb39
[ "MIT" ]
permissive
kefirski/amt
ec4b1d4f2bb9a0103c82ef3c09357894272b44f4
6dcca5743ea8750a740c569181ec6998352ef784
refs/heads/master
2021-05-12T19:26:27.756474
2018-01-14T19:56:24
2018-01-14T19:56:24
117,093,089
28
2
null
null
null
null
UTF-8
Python
false
false
2,362
py
from math import sqrt import numpy as np import torch as t import torch.nn as nn from gensim.models.keyedvectors import KeyedVectors from torch.autograd import Variable class Embeddings(nn.Module): def __init__(self, path, vocab_size, max_len, h_size): super(Embeddings, self).__init__() self.voc...
0845d1f075a7811404b355d17f30f0b0df9abc6c
045cb1a5638c3575296f83471758dc09a8065725
/addons/whatsapp_live/__manifest__.py
38438a168cf3acf2f7b5d8951b7acb880a863574
[]
no_license
marionumza/saas
7236842b0db98d1a0d0c3c88df32d268509629cb
148dd95d991a348ebbaff9396759a7dd1fe6e101
refs/heads/main
2023-03-27T14:08:57.121601
2021-03-20T07:59:08
2021-03-20T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# -*- coding: utf-8 -*- # Copyright 2019 GTICA C.A. - Ing Henry Vivas { 'name': 'Whatsapp Connect Chat Live', 'summary': 'Marketing, Sale, connect Chat Whatsapp live for your business', 'version': '13.0.1.0.0', 'category': 'Website', 'author': 'Harpiya Software Technologies', 'support': 'info@h...
4bcaa3376d450b8aa1c54c76e3908d3796c1edd3
68bfd128be73ab94ce3b2084585d2957376477d5
/use_cos_loss/data_process.py
b71008b8eac28d7d60168c393e09fd653501c2c9
[]
no_license
SunnyangBoy/Table_Derection
88ceaab3c5f9f8b5ca5d62b7cdb8bffe6e5520b0
35eb4d48858f5aaabe4e46602b169acf67aca2d0
refs/heads/master
2022-10-21T08:20:22.546040
2020-06-17T15:46:30
2020-06-17T15:46:30
273,015,655
1
0
null
null
null
null
UTF-8
Python
false
false
4,758
py
import cv2 import numpy as np import os import math def avg_count(img): sum_r = 0 sum_g = 0 sum_b = 0 for i in range(10): for j in range(10): sum_r += img[i][j][0] sum_g += img[i][j][1] sum_b += img[i][j][2] return sum_r/100, sum_g/100, sum_b/100 def av...
7bb05a4bbe2e8267a6c43e3620d67b4f465c3b44
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/1-Python-Basics/28-tuples2_20200413203128.py
8c41bfd70429203ae803473b037a15cffd43b26d
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
#Tuples part 2 my_tuple = (2, 1, 4, 10)
d6d7a75916aede2d40d4a98a66ef61730b3e96b4
0b9e588b3d6ddf95d87a0a0f02d10ef6efcccf51
/eduapi/api/views/mixins.py
3813677de2e8238d750d2f38aae79b5771ad513e
[]
no_license
omni360/inspiration-edu-api
b5d07a7fe3a473689d5323e60e6f88dd3d6fb4cb
6e1bbf8d895082d4c44af4ae35b9f5aa5cc9addc
refs/heads/master
2022-01-22T23:30:09.879433
2016-04-28T02:02:46
2016-04-28T02:02:46
57,559,736
0
0
null
2022-01-06T22:24:03
2016-05-01T06:35:12
Python
UTF-8
Python
false
false
36,165
py
import types from django.db.models import Q from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404 from django.http import Http404 from rest_framework import generics from rest_framework import exceptions from rest_framework.request import clone_request from rest_frame...
b372f136945c7c140f928e3fcc06b705264dd82a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2606/60797/247414.py
a53d3bf72630c68d1fad189adb9a6e4ed7f2c6f0
[]
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
471
py
import math def search(nums, target): left = 0 right = len(nums) - 1 i = (left + right) // 2 while target != nums[i]: if target < nums[i]: right = i - 1 i = (left + right) // 2 else: left = i + 1 i = (left + right) // 2 return i if __...