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
277537b8ae7e47142a220286372b6306e21c780c
a024fe3b05dd320a7860165dd72ebd832ce6e484
/account_cajas/models/payment_group.py
833df438839be2ce04c80b1330df47f33925d155
[]
no_license
acostaw/erp_odoo
97d02a675908e441cf8e1ba4e3dcbc62691f8dec
2437997b650c9fdbf6a6f007c0a1fea2aab018e2
refs/heads/main
2023-04-19T14:52:48.877851
2021-04-22T18:40:07
2021-04-22T18:40:07
360,644,871
0
0
null
null
null
null
UTF-8
Python
false
false
3,102
py
from odoo import fields, api, models, exceptions class PaymentGroup(models.Model): _inherit = 'grupo_account_payment.payment.group' caja_session_id = fields.Many2one( 'account.caja.session', string="Sesión de caja") def get_sesion(self): sesion = self.env['account.caja.session'].search( ...
0f7ba2626ddb918345b5b65b7b33821c1416ba0d
63daf225819636397fda6ef7e52783331c27f295
/cbb/taobao/top/api/rest/WangwangEserviceNewevalsGetRequest.py
6ec015f4437fc789e6fe969e968f93ce8d6d80c1
[]
no_license
cash2one/language-Python
e332ecfb4e9321a11407b29987ee64d44e552b15
8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab
refs/heads/master
2021-06-16T15:15:08.346420
2017-04-20T02:44:16
2017-04-20T02:44:16
112,173,361
1
0
null
2017-11-27T09:08:57
2017-11-27T09:08:57
null
UTF-8
Python
false
false
370
py
''' Created by auto_sdk on 2014.03.24 ''' from top.api.base import RestApi class WangwangEserviceNewevalsGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.btime = None self.etime = None self.query_ids = None def getapiname(self): ...
d948e6f2cea3277ef12bf61e893e539a196cdc75
ae326c4e6a2b2d5b67fa8d175249ef90f6a3021a
/leo/external/npyscreen/wgbutton.py
3c3864dccecbf6a1b774d0f84bc4e561b11aed17
[ "MIT" ]
permissive
frakel/leo-editor
f95e6c77d60485d80fddfbeaf35db961cf691177
b574118ee3b7ffe8344fa0d00dac603096117ac7
refs/heads/master
2020-03-28T10:40:24.621077
2018-10-23T14:39:31
2018-10-23T14:39:31
148,132,817
0
0
MIT
2018-09-10T09:40:18
2018-09-10T09:40:18
null
UTF-8
Python
false
false
4,629
py
#@+leo-ver=5-thin #@+node:ekr.20170428084207.524: * @file ../external/npyscreen/wgbutton.py #!/usr/bin/python #@+others #@+node:ekr.20170428084207.525: ** Declarations import curses import locale # import weakref from . import npysGlobalOptions as GlobalOptions # from . import wgwidget as widget from . import wgche...
298d140fe1ca68d7da2b2955a7a16d0ea3e33fb9
5a281cb78335e06c631181720546f6876005d4e5
/zaqar-8.0.0/zaqar/api/v2/response.py
d21d69c7c5b7498626cfe10c752628278f624316
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
15,561
py
# Copyright (c) 2013 Rackspace, 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 law or agreed to in wr...
[ "Wayne [email protected]" ]
cbec1b9899516b898ddf2b75425a155a5e2e9388
5aa80aab7a75d76b0aa838bf8f74a276a12c876e
/src/dns/scripts/del_virtual_dns.py
d01e287f11d833d931e334fea48bc13f10915239
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
tungstenfabric/tf-controller
83b6d58afadb5697b540b5345711a5b2af90d201
f825fde287f4eb2089aba2225ca73eeab3888040
refs/heads/master
2023-08-28T02:56:27.329584
2023-08-20T12:15:38
2023-08-20T12:31:34
231,070,970
55
29
Apache-2.0
2023-07-23T01:38:17
2019-12-31T10:24:38
C++
UTF-8
Python
false
false
2,811
py
#!/usr/bin/python # #Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import object import sys import argparse from six.moves import configparser from provision_dns import DnsProv...
51f512a009d612d8737cedcd92ab98789dd019e2
13f5984be7be77852e4de29ab98d5494a7fc6767
/LeetCode/029两数相除.py
1156923f619001bb4fb9a6633818ed77385df8ac
[]
no_license
YuanXianguo/Python-Interview-Master
4252514763fc3f563d9b94e751aa873de1719f91
2f73786e8c51dbd248341559de171e18f67f9bf2
refs/heads/master
2020-11-26T18:14:50.190812
2019-12-20T02:18:03
2019-12-20T02:18:03
229,169,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,793
py
""" 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。 返回被除数 dividend 除以除数 divisor 得到的商。 """ def divide(dividend, divisor): if dividend > 0 and divisor > 0 or dividend < 0 and divisor < 0: sign = 1 # 判断是否异号 else: sign = -1 m = 1 # 记录当前除数是原除数的倍数 cnt = 0 # 记数 dd, dr = abs...
27d2228fcf7d6359ffa01c55e6fa92812d23a53d
c7a6f8ed434c86b4cdae9c6144b9dd557e594f78
/ECE364/.PyCharm40/system/python_stubs/348993582/gtk/gdk/EventMask.py
d9b44af804a2c42a9f51aefc54aa18bc8e118408
[]
no_license
ArbalestV/Purdue-Coursework
75d979bbe72106975812b1d46b7d854e16e8e15e
ee7f86145edb41c17aefcd442fa42353a9e1b5d1
refs/heads/master
2020-08-29T05:27:52.342264
2018-04-03T17:59:01
2018-04-03T17:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
# encoding: utf-8 # module gtk.gdk # from /usr/lib64/python2.6/site-packages/gtk-2.0/bonobo/ui.so # by generator 1.136 # no doc # imports from exceptions import Warning import gio as __gio import gobject as __gobject import gobject._gobject as __gobject__gobject import pango as __pango import pangocairo as __pangocai...
16ea2edf996fdde207855365be0fe52b0d5e8b2d
05b0162d5ee7ab74f71ad4f21d5188a8735dfaef
/plugins/modules/telemetry_info.py
bda5b2c9f1557fd1446ffb91c4bca170ffd1fd56
[ "MIT" ]
permissive
steinzi/ansible-ise
567b2e6d04ce3ca6fbdbb6d0f15cd1913a1e215a
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
refs/heads/main
2023-06-25T15:28:22.252820
2021-07-23T14:21:40
2021-07-23T14:21:40
388,820,896
0
0
MIT
2021-07-23T14:03:07
2021-07-23T14:03:06
null
UTF-8
Python
false
false
2,955
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: telemetry_info short_description: Information module for Telemetry Info description: - Get all Telemetry Info. - G...
d4c171602f31cd1882324afc4197bdd92fee1638
ee4f7d4a0d81e902520b339dd77e5960014fa339
/migrations/versions/bf3e0c0e76b8_.py
41ff51012432dcaffd146da5ebd531869980da86
[]
no_license
davejonesbkk/flask_by_example
96b8865fa9ab31f0887412ef152de221bf7661f3
9d9fad6afc85ed4cdbbd2f583029a3c29e2d035f
refs/heads/master
2016-09-12T20:56:51.007430
2016-05-08T04:39:56
2016-05-08T04:39:56
58,139,690
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
"""empty message Revision ID: bf3e0c0e76b8 Revises: None Create Date: 2016-05-07 13:52:41.241555 """ # revision identifiers, used by Alembic. revision = 'bf3e0c0e76b8' down_revision = None from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): ### commands auto...
a412918ce5dcec8fee3151308724b448fd5d6002
433ca57245fe15afd309323e82f3bdf3287b4831
/core/migrations/0008_auto_20160307_2140.py
62fda1323eb7db7c7c2c7350624efb31a595440e
[]
no_license
greenteamer/ceiling-django
db5170faada0f1582c744fa28c638e8671dc2ab9
b4a469ae7d2ce6ed36ae51af60633de1fdb43ea4
refs/heads/master
2020-04-09T19:01:40.273226
2018-12-05T14:39:15
2018-12-05T14:39:15
160,531,789
0
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-07 21:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20160307_2129'), ] operations = [ migrations.CreateModel( ...
5fcadfe2c989d6236fd9e16b9ef2e8f43df5ac97
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/kxe.py
c40379199b994eb20da11cca988f332d3ab394a2
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
b5b8943bbb5130ddcfdefa25858db25f6cc56290
1166cad08dd1b57ce5a48721fac9c3c58426c431
/pyBlackScholesAnalytics/example_options_IV.py
76e281499403f56f0972f935f50a534b04a368c3
[]
no_license
gabrielepompa88/IT-For-Business-And-Finance-2019-20
411956bc1999b1bc3a83494ac23e5d32cb6bf263
7c0ecab93a13ebcd62de0d00615320fee0af6bb4
refs/heads/master
2021-07-16T09:49:41.808308
2021-03-07T12:35:37
2021-03-07T12:35:37
241,672,404
6
6
null
null
null
null
UTF-8
Python
false
false
5,627
py
""" Created by: Gabriele Pompa ([email protected]) File: example_options_IV.py Created on Tue Jul 14 2020 - Version: 1.0 Description: This script shows usage of PlainVanillaOption and DigitalOption classes to compute of Black-Scholes implied volatility surfaces for plain-vanilla and digital option con...
20837687ebe33143cbbc0a6ecf06987128e7ddcd
e5d83ede8521027b05d9b91c43be8cab168610e6
/0x0F-python-object_relational_mapping/11-model_state_insert.py
3b320438e74aeaf232b7feb9798f734e04f290b2
[]
no_license
Danielo814/holbertonschool-higher_level_programming
8918c3a6a9c136137761d47c5162b650708dd5cd
832b692529198bbee44d2733464aedfe650bff7e
refs/heads/master
2020-03-28T11:09:00.343055
2019-02-22T03:33:54
2019-02-22T03:33:54
148,181,433
1
0
null
null
null
null
UTF-8
Python
false
false
658
py
#!/usr/bin/python3 """ '11-model_state_insert' module, uses sqlalchemy to list state objects from a database """ if __name__ == '__main__': from model_state import Base, State from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import sys engine = create_engine("mysql+mysqld...
59c36e7a733d2586f940c8d7f2cda193587e2e64
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/631/631.design-excel-sum-formula.233766026.Accepted.leetcode.py
43c751d9a3847fbc50be93236347e9397d60a780
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
1,185
py
class Excel(object): def _indices(self, r, c): return [r - 1, ord(c) - ord("A")] def __init__(self, H, W): rows, cols = self._indices(H, W) self.excel = [[0 for _ in range(cols + 1)] for _ in range(rows + 1)] def set(self, r, c, v): r, c, = self._indices(r, c) self....
181c63752e67f0a960150c332ecb3bf92cf34a26
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/9/vtv.py
505b75b184887e252648e4584542cf114b232a69
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
365ceaa7222b7532942e6aad67b9545a9a634088
65c3e7139829829dd1410228e17f85c285ab0706
/Aniyom Ebenezer/phase 1/python 2 basis/Day_25_Challenge_Solution/Question 5 Solution.py
5ceac0d832e2fe6730aa996bf1728961909326a7
[ "MIT" ]
permissive
eaniyom/python-challenge-solutions
167e9d897d0a72f1e264ff2fed0e4cc5541b0164
21f91e06421afe06b472d391429ee2138c918c38
refs/heads/master
2022-11-24T02:57:39.920755
2020-08-05T09:23:04
2020-08-05T09:23:04
277,686,791
1
0
MIT
2020-07-07T01:31:00
2020-07-07T01:30:59
null
UTF-8
Python
false
false
686
py
""" From Wikipedia: An isogram (also known as a "nonpattern word") is a logological term for a word or phrase without a repeating letter. It is also used by some people to mean a word or phrase in which each letter appears the same number of times, not necessarily just once. Conveniently, the word itself is an isogram ...
7a592cdf6a9b54e598ddd17945122d921db69bb3
7548c8efccb43b1d8daec719bd7d8ad4a4d03630
/Check Completeness of a Binary Tree/Leetcode_958.py
0a338ef629921b6783c50f373af6e33940a2e591
[]
no_license
arw2019/AlgorithmsDataStructures
fdb2d462ded327857d72245721d3c9677ba1617b
9164c21ab011c90944f844e3c359093ce6180223
refs/heads/master
2023-02-17T11:50:07.418705
2021-01-19T19:37:17
2021-01-19T19:37:17
204,222,584
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None from collections import deque class Solution: def isCompleteTree(self, root: TreeNode) -> bool: levelOrder = [root] i = 0 while le...
e3d45c0faaf86b27d3e9a66e838c30803505fdcd
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/sN5.py
37a225513018600c0b319a3af69b558ec72dabd4
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
5a14f95c907ff7ad332c002c84f30f49f49b8cdf
2059f378d07c7c067aca01b835502472a2eb3f27
/app/run.py
362e8d3b40fee57c62f770dd56f46083595f82c5
[]
no_license
zhangliang852469/FlaskLogin
d51a79d63c4a812dc6764f1892efb7ba37c13b9f
fbdccdca5cfb947b6a77cbb27e17d9792799463c
refs/heads/master
2020-04-23T20:10:12.595991
2019-02-19T07:44:13
2019-02-19T07:44:13
171,430,398
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from app import app app.run( debug=True )
3a38b3a0c03e6b40a19ba9eca87d5c6ad252d8c7
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/pip/_vendor/distlib/version.py
df4c094a926591eda8f0a2f518c0a097f745ebc2
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
24,252
py
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2017 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """ Implementation of a flexible versioning scheme providing support for PEP-440, setuptools-compatible and semantic versioning. """ import logging import re from .compat import s...
743fb306d02fdd8647e4e3fdc698e0da32610bad
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/upsolve/ABC/abc077/c/main.py
0d82c8873315de4343231f2620a0fa633e717d3a
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
1,196
py
# -*- coding: utf-8 -*- from bisect import bisect_left, bisect_right from typing import List def bisect_lt(sorted_array: List[int], value: int): """Find the largest element < x and its index, or None if it doesn't exist.""" if sorted_array[0] < value: index: int = bisect_left(sorted_array, value) - ...
78a0851ea9299d16a556f87dd0545a5c9477d748
21dfcc44840cb94058bcd014946f2a38fbf30c54
/scripts/EmuSo.py
d0f8e85d777d129c382cb83107cca556152999c8
[ "SGI-B-2.0", "MIT", "Libpng", "BSD-3-Clause", "LicenseRef-scancode-glut", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "Unlicense" ]
permissive
nigels-com/regal
819a74deeeac00860bcb6f21c3e59ccad1b78448
3f1a06d5c098339d30221c9e999640e4c5437a0b
refs/heads/master
2020-12-14T16:19:29.701418
2015-10-18T08:57:48
2015-10-18T08:58:56
9,986,650
2
3
null
2014-07-12T07:28:49
2013-05-10T17:35:20
C++
UTF-8
Python
false
false
3,670
py
#!/usr/bin/python -B soFormulae = { # TODO 'GenSamplers' : { 'entries' : [ 'glGenSamplers' ], 'impl' : [ '_context->so->GenSamplers( ${arg0plus} );' ], }, 'DeleteSamplers' : { 'entries' : [ 'glDeleteSamplers' ], 'impl' : [ '_context->so->DeleteSamplers( ${arg0plus} );'...
833bef43af8a0f95c7a90575647b304575e902ec
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/CISCO-UNIFIED-COMPUTING-COMPUTE-MIB.py
dbf7b723c65e8058719374600bb894515432ab32
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
393,280
py
# # PySNMP MIB module CISCO-UNIFIED-COMPUTING-COMPUTE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-UNIFIED-COMPUTING-COMPUTE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:58:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Usi...
0e2bbbc4a67fd094f67dd7d060888036adf62cba
030aef4b13a29246ef21342efea9b26f5620f0b0
/code/SWEA/1859_백만장자_프로젝트.py
757a273af12d8f69c335f163cf7e6678348557f7
[]
no_license
kyeah01/Problem_Solving
d70049efb72d09c4ea07a8dba9144d482857b36a
efec0486ec07843e085abf4e66cdf694fdde104b
refs/heads/master
2021-07-03T14:28:56.001123
2020-09-23T17:37:42
2020-09-23T17:37:42
176,175,363
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
T = int(input()) for tc in range(1, T+1): N = int(input()) days = list(map(int, input().split())) max_index = N-(days[::-1].index(max(days))+1) ans = 0 # max_index까지 값을 구해야함 for i in range(max_index): ans += max(days) - days[i] if ans < 0: ans = 0
570430474d734ea45b7b4bf3c1ec9a6489e26a5b
a05716cdf916edb42efdcec4fd10c65bdd043f3d
/elasticsearch/_async/client/monitoring.py
2f7b570d21a89b3af2d569d08af6dd9e023b1547
[ "Apache-2.0" ]
permissive
mesejo/elasticsearch-py
0a30e104f3f4e6b2426c1eb01ba51e5d86efab14
041a433de263482e306b3855ab67b93c03978966
refs/heads/master
2022-11-11T11:57:44.792382
2020-06-23T18:36:32
2020-06-23T18:36:32
274,199,907
0
0
Apache-2.0
2020-06-22T17:20:49
2020-06-22T17:20:49
null
UTF-8
Python
false
false
1,494
py
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bulk_body class MonitoringClient(Name...
4f6e98d736958850f3715a80606ca28c7eabddf4
f3b233e5053e28fa95c549017bd75a30456eb50c
/tyk2_input/43/43-31_wat_20Abox/set_1ns_equi_m.py
eeadbfffcabc77af30b8d082f6dcced30aacc839
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
import os dir = '/mnt/scratch/songlin3/run/tyk2/L43/wat_20Abox/ti_one-step/43_31/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j...
44ea4283cb706f70dc5b653285510c61915d9fcb
931a3304ea280d0a160acb87e770d353368d7d7d
/vendor/swagger_client/models/get_characters_character_id_mail_labels_ok.py
c6952fb75c441a4204eea1c255bb24fb9afe18e6
[]
no_license
LukeS5310/Broadsword
c44786054e1911a96b02bf46fe4bdd0f5ad02f19
3ba53d446b382c79253dd3f92c397cca17623155
refs/heads/master
2021-09-08T00:05:26.296092
2017-10-24T07:01:48
2017-10-24T07:01:48
105,143,152
0
1
null
2017-11-03T14:29:38
2017-09-28T12:03:19
Python
UTF-8
Python
false
false
4,288
py
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online OpenAPI spec version: 0.6.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class GetCharactersCharacterIdMailLabelsOk(object): """ ...
15fc40bda909702b808b9f6a350ed20b9f7666e1
62484d13c69e2b37998e1338a84d1b798afe93cf
/funcExamples/PhraseRepeated.py
416eff424fab19dd0cd41fb5983fbcb10f520f62
[]
no_license
sathayas/PythonClassFall2019
029514f6d7de9d339261b420d19778271cb2d892
7ee9e53370e75691650d65aa5bdb01963468f091
refs/heads/master
2020-06-30T19:04:37.348185
2019-11-21T21:16:12
2019-11-21T21:16:12
200,921,316
1
0
null
null
null
null
UTF-8
Python
false
false
82
py
def RepPhrase(word, times): print((word + ' ') * times) RepPhrase('Wow!', 3)
ef3f05716502649f5e7d9ddc4e67ec5912e7270a
3851d5eafcc5fd240a06a7d95a925518412cafa0
/Django_Code/gs28/gs28/asgi.py
e1f1a15c27ff9ec6f8b42b0f1666ea6af01dd283
[]
no_license
Ikshansaleem/DjangoandRest
c0fafaecde13570ffd1d5f08019e04e1212cc2f3
0ccc620ca609b4ab99a9efa650b5893ba65de3c5
refs/heads/master
2023-01-31T04:37:57.746016
2020-12-10T06:27:24
2020-12-10T06:27:24
320,180,735
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for gs28 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
56658b1b204f9655fbd8f8276cc516986cabee06
3e6dffad73b8d5024024b52b044c57a05e7e9655
/assets/2019-11-30/commondb_server.py
6b08cb78bef355870da187cefdbe820cdc3509bc
[ "MIT" ]
permissive
dhilipsiva/talks
07f33b162d8db6e20e3d5974576d71c273629187
05581b6b8fdd0598d4ffed4bf75204d718719ed9
refs/heads/master
2022-08-05T12:27:39.932612
2022-07-21T07:43:36
2022-07-21T07:43:36
68,734,565
5
3
MIT
2021-07-30T11:24:12
2016-09-20T17:05:44
Python
UTF-8
Python
false
false
1,022
py
from concurrent.futures import ThreadPoolExecutor import grpc from grpc_opentracing.grpcext import intercept_server from grpc_opentracing import open_tracing_server_interceptor from github_pb2 import Reply from utils import get_config, wait_for_termination from github_pb2_grpc import CommonDBServicer, add_CommonDBSer...
678a035115b9bab5ee37b4008fa8b1f71d3795dc
91b80ef798cbcdaab7f6ae0be994f5a3b12f1515
/198.py
155ed9d04a687a65692c489eeaa6c5e9ef28c808
[]
no_license
luckkyzhou/leetcode
13377565a1cc2c7861601ca5d55f6b83c63d490e
43bcf65d31f1b729ac8ca293635f46ffbe03c80b
refs/heads/master
2021-06-21T11:26:06.114096
2021-03-24T21:06:15
2021-03-24T21:06:15
205,568,339
0
1
null
null
null
null
UTF-8
Python
false
false
271
py
from typing import List class Solution: def rob(self, nums: List[int]) -> int: prevMax = 0 curMax = 0 for num in nums: temp = curMax curMax = max(prevMax + num, curMax) prevMax = temp return curMax
10b521f82bc66ef9eca34617899ca120391d14d3
00820b522cc16bf996f1ef44a94a2f31989c4065
/abc/abc144/c.py
6932b9a69d517fcc35addc7fce7e72fb3b8071b0
[]
no_license
yamato1992/at_coder
6dffd425163a37a04e37507743a15f67b29239fc
6e0ec47267ed3cae62aebdd3d149f6191fdcae27
refs/heads/master
2020-08-31T11:17:03.500616
2020-06-12T15:45:58
2020-06-12T15:45:58
218,678,043
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
import math INF = 1e12 n = int(input()) cnt = INF m = math.sqrt(n) for i in range(1, math.ceil(m) + 1): if n % i == 0: j = n // i cnt = min(cnt, i + j - 2) else: continue print(cnt)
bfc96905759dddb3a1e1d364586c7779eb1c0fcf
d6589ff7cf647af56938a9598f9e2e674c0ae6b5
/clickhouse-20191111/alibabacloud_clickhouse20191111/client.py
a17bbd2e8b2d107874e65eb08969dd3eae30d01f
[ "Apache-2.0" ]
permissive
hazho/alibabacloud-python-sdk
55028a0605b1509941269867a043f8408fa8c296
cddd32154bb8c12e50772fec55429a9a97f3efd9
refs/heads/master
2023-07-01T17:51:57.893326
2021-08-02T08:55:22
2021-08-02T08:55:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
110,610
py
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from typing import Dict from Tea.core import TeaCore from alibabacloud_tea_openapi.client import Client as OpenApiClient from alibabacloud_tea_openapi import models as open_api_models from alibabacloud_tea_util.client import Client as UtilCl...
917ee557f9fe287f3752878d2f57f0990122fb69
ba0a2b0d2d1534443ea34320675aadfa378457b6
/OA/Akuna/QAkuna_Order Marketing.py
dbf97a7359f5393adf302b66732ef5fea9e7cc95
[]
no_license
Luolingwei/LeetCode
73abd58af116f3ec59fd6c76f662beb2a413586c
79d4824879d0faed117eee9d99615cd478432a14
refs/heads/master
2021-08-08T17:45:19.215454
2021-06-17T17:03:15
2021-06-17T17:03:15
152,186,910
0
1
null
null
null
null
UTF-8
Python
false
false
5,571
py
import json import copy from collections import defaultdict # Implement the class below, keeping the constructor's signature unchanged; it should take no arguments. class Company: def __init__(self, name): self.name = name self.own = 0 self.sell = 0 self.buy = 0 def __eq__(self...
7c4624679b56a92e566f8525561a6d268d4791f7
e0b81ac782cb6b5b96f49914ac5707971d31d5b4
/week14/todo_list/main/urls.py
0f9b60b7a5903820284a2eb17db67cb3f931aec3
[]
no_license
balnur00/djangoSpring2020
33ba23472715aa143e2a9b1ff785730c2778a1fd
ca3500875a339601a44dc105bc946d72e4d143eb
refs/heads/master
2021-09-29T05:44:34.941331
2020-04-21T10:26:29
2020-04-21T10:26:29
237,578,070
0
0
null
2021-09-22T19:45:38
2020-02-01T07:19:09
Python
UTF-8
Python
false
false
692
py
from rest_framework.routers import DefaultRouter from django.urls import path from main import viewsets from .views import BusTaskListApiView, BusTaskListDetailApiView, BusTaskApiView, BusTaskDetailApiView, ReceiverApiView urlpatterns = [ path('business/', BusTaskListApiView.as_view()), path('business/<int:pk>...
a32ad3c7390782052e0d15a239f6e45437ed713e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_274/ch71_2020_03_09_14_29_38_361917.py
6ebfb914c1c8014bcdcef462b0fd223be9d837a3
[]
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
57
py
def esconde_senha(pswd): n=len(pswd) return "*"*n
75c80e1240c4b7484191142b451cc2239905cbfd
40ba3112a116b361673732efc10402a067322ad1
/PycharmProjects/untitled/Error/DIYError.py
adf55f4e1b8b0fb4049b232aef954deef85589c9
[]
no_license
oumingwang/----Python
622be90adffefcab1696bb145b171fa9a8bff5b7
003c0b7880de2b9e0737120bc15bf6eaeb7a644f
refs/heads/master
2020-07-03T03:16:13.687118
2017-04-08T16:55:01
2017-04-08T16:55:01
74,200,264
0
2
null
null
null
null
UTF-8
Python
false
false
112
py
class FileError(IOError): pass try: raise FileError, "Test FileError" except FileError,e: print e
76c2be24cd3471acd4c320fa2ff5671d516aa254
49ba5356bdc5df7dd9803b56fe507c5164a90716
/unique-number-of-occurrences/solution.py
8947b64feeaba863e1fa0f2965c3530126347f56
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
class Solution(object): def uniqueOccurrences(self, arr): """ :type arr: List[int] :rtype: bool """ m = {} for i in arr: if i in m: m[i] += 1 else: m[i] = 1 return len(m.values()) == len(set(m.values()))...
c7473e0b86b77ea6781aa54b3063668f7f9695b3
846c067f53006d18caa467997b2143ae4df50519
/config/config.py
efbc2a7e2fd6de4de26c10e551251379b239c5c8
[]
no_license
radusuciu/dancealytics
7e791d9732c8a19f3b6df2f61bb2837360cf4c65
7246ab8a32f2b7cbf7a42e08605e58c4a61b8a38
refs/heads/master
2022-12-13T23:12:54.065740
2017-07-14T02:21:49
2017-07-14T02:21:49
97,040,963
0
0
null
2022-12-08T00:01:27
2017-07-12T18:38:53
JavaScript
UTF-8
Python
false
false
1,377
py
"""Main configuration file for project.""" import yaml import os import pathlib PROJECT_NAME = 'dancealytics' PROJECT_HOME_PATH = pathlib.Path(os.path.realpath(__file__)).parents[1] # debug is true by default DEBUG = bool(os.getenv('DEBUG', True)) _secrets_path = PROJECT_HOME_PATH.joinpath('config', 'secrets.yml')...
cec3a985e7ce8c9aa91b159664568dd89362fb14
ab621c65fc91f5194c4032d68e750efaa5f85682
/docline_sequence/models/sale.py
56ef1d787c8c291ba4c97ac9796b71da170e942c
[]
no_license
pabi2/pb2_addons
a1ca010002849b125dd89bd3d60a54cd9b9cdeef
e8c21082c187f4639373b29a7a0905d069d770f2
refs/heads/master
2021-06-04T19:38:53.048882
2020-11-25T03:18:24
2020-11-25T03:18:24
95,765,121
6
15
null
2022-10-06T04:28:27
2017-06-29T10:08:49
Python
UTF-8
Python
false
false
874
py
# -*- coding: utf-8 -*- from openerp import models, api, SUPERUSER_ID from .common import DoclineCommon, DoclineCommonSeq class SaleOrder(DoclineCommon, models.Model): _inherit = 'sale.order' @api.multi @api.constrains('order_line') def _check_docline_seq(self): for order in self: ...
5f9bd3f574357e4086032aec7e61d62623341ce2
c59b91482ea23003e055688fdbfb409a6b99c8da
/qanta/guesser/nn.py
c36167748e721fbb6530602b0284bbe0f77a6c37
[ "MIT" ]
permissive
nadesai/qb
83a3618227e87fef46680fade3a168585aebb889
f2dd64499eb66ae409f08eb9f762d4a6b0a7feda
refs/heads/master
2021-08-24T15:13:23.959664
2017-12-08T15:28:33
2017-12-08T15:28:33
112,909,453
0
0
null
2017-12-03T07:40:36
2017-12-03T07:40:35
null
UTF-8
Python
false
false
4,823
py
from typing import Set, Dict, List import random import numpy as np import os import pickle from qanta.util.io import safe_open from qanta.config import conf from qanta import logging log = logging.get(__name__) def create_embeddings(vocab: Set[str], expand_glove=False, mask_zero=False): """ Create embeddi...
d699f65005232a77e7031d8d4cf5b557251724ae
f983809974ad78d099fc5e8a08038723fdb1d172
/det3d/datasets/nuscenes/nuscenes.py
8afeae8a75a41a03cff8fcb08beff274f7f26d13
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
you4ever/CenterPoint
169df36e1bfcd9e0efcea37f983b04bddf59a66b
1a87d2ea18b11801214f41aeb042373364ba99c1
refs/heads/master
2023-03-04T11:04:32.251822
2021-02-12T18:17:55
2021-02-12T18:20:06
298,402,953
0
0
MIT
2020-09-24T21:51:22
2020-09-24T21:51:21
null
UTF-8
Python
false
false
11,057
py
import sys import pickle import json import random import operator import numpy as np from functools import reduce from pathlib import Path from copy import deepcopy try: from nuscenes.nuscenes import NuScenes from nuscenes.eval.detection.config import config_factory except: print("nuScenes devkit not fou...
88064737146f8486c48bb2156213112e065c2bf0
74698be74d244ebbabcb0b3cf17ebed26adfa37c
/official/modeling/progressive/trainer_test.py
0dae36b770f956b6e57d931152bd5528377b1bd7
[ "Apache-2.0" ]
permissive
lfads/models
aa75616fee2476641aa98ca1cbdce7e5d27a9aff
fd700f0cb2e104544c445d9fbf3991d8388ff18a
refs/heads/master
2021-01-25T13:50:55.423010
2021-01-05T18:27:01
2021-01-05T18:27:01
123,619,512
16
9
Apache-2.0
2021-01-05T18:27:02
2018-03-02T19:07:50
Python
UTF-8
Python
false
false
9,150
py
# Copyright 2020 The TensorFlow 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 applica...
0c3bfbea643ac9fd23c1c480c171e9ec77ba22e6
0191140830e827ddfde9300d5cc5962018a7bac1
/celauco/migrations/0001_initial.py
9423288d3a9aaa9dec80cbf2469bbfe1324ef34e
[]
no_license
NicolleLouis/LouisNicolle
d816a60f30d92a9c2bc1b6ef6443c477505bf1bc
b99ae034d58afce5670d0b2fb0e5f3ce57bf1449
refs/heads/master
2023-08-17T20:37:29.024430
2021-09-13T14:26:02
2021-09-13T14:26:02
291,709,252
0
1
null
null
null
null
UTF-8
Python
false
false
794
py
# Generated by Django 3.2.4 on 2021-09-11 17:26 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Board', fields=[ ('id', models.AutoField(pr...
391053f155a0c7fe44b5bdddb2c4f93f2fa2dd38
1c91439673c898c2219ee63750ea05ff847faee1
/configs/vision_transformer/vit-large-p16_ft-64xb64_in1k-384.py
5be99188bfe0fbbce2de927c9d9c55ed74131d2f
[ "Apache-2.0" ]
permissive
ChenhongyiYang/GPViT
d7ba7f00d5139a989a999664ab0874c5c9d53d4d
2b8882b2da41d4e175fe49a33fcefad1423216f4
refs/heads/main
2023-06-08T00:10:07.319078
2023-05-26T15:52:54
2023-05-26T15:52:54
577,075,781
78
2
null
null
null
null
UTF-8
Python
false
false
1,140
py
_base_ = [ '../_base_/models/vit-large-p16.py', '../_base_/datasets/imagenet_bs64_pil_resize_autoaug.py', '../_base_/schedules/imagenet_bs4096_AdamW.py', '../_base_/default_runtime.py' ] model = dict(backbone=dict(img_size=384)) img_norm_cfg = dict( mean=[127.5, 127.5, 127.5], std=[127.5, 127.5, 1...
fc60af11b3d368c537f0f4df6d74171c61349d76
364edc98a05ddecf5ad7b7614d2a35a95d19705b
/rxpy/subject.py
02dcecc1bc9be7f5921fc1486dee19a05d51b19c
[]
no_license
as950118/outsource
f7f10b5ba62487da8ccddd894aaedc8af48e9d50
05a9f654aa222f4da4ce9c4902dde094c9d158d0
refs/heads/master
2022-12-21T00:18:45.405708
2020-02-03T15:53:16
2020-02-03T15:53:16
193,331,277
0
0
null
2022-12-06T22:38:00
2019-06-23T09:50:33
HTML
UTF-8
Python
false
false
401
py
from rx import Observable, Observer from rx.subjects import Subject class PrintObserver(Observer): def on_next(self, value): print("Value :", value) def on_error(self, error): print("Error :", error) def on_completed(self): print("Completed") subject = Subject() subject.subscribe(P...
a76cca19fa4d0bfcf0f465ae0c1bec1dce41ed75
c824722d02a36f888f74bf60455361a2a1fe5212
/rnacentral_pipeline/rnacentral/genes/methods/singletons.py
23f128344be241778a004c7535b3cea245c45a8c
[ "GPL-1.0-or-later", "Apache-2.0", "Artistic-1.0-Perl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RNAcentral/rnacentral-import-pipeline
d1b52291fc083470d75cf400b10792e1613662db
4505f748f9a932ffe4663c16b6c81574e4c04178
refs/heads/master
2023-08-31T23:37:29.744476
2023-04-11T11:10:48
2023-04-11T11:10:48
29,351,993
5
0
Apache-2.0
2023-07-12T13:58:10
2015-01-16T14:34:15
Python
UTF-8
Python
false
false
1,074
py
# -*- coding: utf-8 -*- """ Copyright [2009-2021] EMBL-European Bioinformatics Institute 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...
ec68fcbdad6e89265b1e12e9341ad203211a2bb2
283bbf2ce575ea72010e9823907285b08d20fce4
/breathecode/services/slack/commands/cohort.py
2836ed2bf671bb37af7aab2ef7b781a00670daf5
[]
no_license
AnMora/apiv2
c084ffcb4ff5b7a0a01dac8fca26f4f4c37aad97
fa3b3f0ce4a069facdecd18e133c7b4222a0004a
refs/heads/master
2023-05-19T23:00:34.257230
2021-06-08T21:17:56
2021-06-08T21:17:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
import os from breathecode.admissions.models import Cohort, CohortUser from ..decorator import command from ..utils import to_string """ Possible parameters for this command: - users: Array of user slack_ids mentioned inside the slack command text content - user_id: Slack user ID of the message author - team_id: Slac...
c435f6f9e7b20dc1af9c920cba94abff9c3cc1da
799fee946fa3f4773cb1340bb36af5b465fdc570
/tests/test_models/test_body_models/test_utils.py
98127bf148f16a4805906a814f7a689e4be4c29c
[ "Apache-2.0" ]
permissive
open-mmlab/mmhuman3d
8c534d3c252f68f2d14d3e67fe67bfbccadfad36
9431addec32f7fbeffa1786927a854c0ab79d9ea
refs/heads/main
2023-08-31T13:30:59.894842
2023-07-10T02:32:20
2023-07-10T02:32:20
432,877,190
966
139
Apache-2.0
2023-08-31T08:49:16
2021-11-29T02:10:31
Python
UTF-8
Python
false
false
4,440
py
import torch from mmhuman3d.models.body_models.builder import build_body_model from mmhuman3d.models.body_models.utils import ( batch_transform_to_camera_frame, transform_to_camera_frame, ) from mmhuman3d.utils.transforms import ee_to_rotmat def test_transform_to_camera_frame(): # initialize body model ...
eb2d15ca8f556155a42d6387f633b23755a40b50
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/client/gui/battle_control/controllers/progress_circle_ctrl.py
4c979246ebce6a237814dd811c6e984512e6c7c5
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
18,137
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_control/controllers/progress_circle_ctrl.py from functools import partial import BigWorld import Event from constants import REPAIR_POINT_ACTION, SECTOR_BASE_ACTION from debug_utils import LOG_WARNING, LOG_ERROR from gui....
f6e74ba49764c4245f61beabf3c6737993b74fa6
057d662a83ed85897e9906d72ea90fe5903dccc5
/.PyCharmCE2019.2/system/python_stubs/-1247971762/gi/_gi/FunctionInfo.py
08fe51300b7b7b03f1451dd70de9ae5fb449ad8f
[]
no_license
Karishma00/AnsiblePractice
19a4980b1f6cca7b251f2cbea3acf9803db6e016
932558d48869560a42ba5ba3fb72688696e1868a
refs/heads/master
2020-08-05T00:05:31.679220
2019-10-04T13:07:29
2019-10-04T13:07:29
212,324,468
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
# encoding: utf-8 # module gi._gi # from /usr/lib/python3/dist-packages/gi/_gi.cpython-37m-x86_64-linux-gnu.so # by generator 1.147 # no doc # imports from gobject import (GBoxed, GEnum, GFlags, GInterface, GParamSpec, GPointer, GType, Warning) import gi as __gi import gobject as __gobject class FunctionInfo(_...
38cd0029c788bca9efbf7774f3d7caafaafcf326
a66b7da9b7d04e1fea8669bb736b92f87e49b030
/tests/django18_sqlite3_backend/base.py
f7efd2e03cbdfa0e9838ed984b10d342fdd24a4d
[ "MIT" ]
permissive
zebuline/django-perf-rec
5e8e4ff2e690e326618cb4abf9ed25a67c16843b
e0bed464976b113df5cb58205a847b3d8e81b27f
refs/heads/master
2020-04-09T07:38:49.180825
2018-12-02T15:41:50
2018-12-02T15:41:50
152,588,701
0
0
MIT
2018-10-11T12:33:25
2018-10-11T12:33:44
null
UTF-8
Python
false
false
429
py
# -*- coding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from django.db.backends.sqlite3.base import DatabaseWrapper as OrigDatabaseWrapper from .operations import DatabaseOperations class DatabaseWrapper(OrigDatabaseWrapper): def __init__(self, *args, **kwargs)...
3636b76404a69947dae29bd528db4ccab84c8469
315450354c6ddeda9269ffa4c96750783963d629
/CMSSW_7_0_4/src/TotemRawData/RawToDigi/python/.svn/text-base/ExampleClustering.py.svn-base
08efb09d86301e6ce3a10a1cf864bd0d73f76826
[]
no_license
elizamelo/CMSTOTEMSim
e5928d49edb32cbfeae0aedfcf7bd3131211627e
b415e0ff0dad101be5e5de1def59c5894d7ca3e8
refs/heads/master
2021-05-01T01:31:38.139992
2017-09-12T17:07:12
2017-09-12T17:07:12
76,041,270
0
2
null
null
null
null
UTF-8
Python
false
false
2,113
import FWCore.ParameterSet.Config as cms process = cms.Process("RealDataMonitorXML") # minimum of logs #process.load("Configuration.TotemCommon.LoggerMax_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(20000) ) # input of raw data process.source = cms.Source("RawDataSource", ...
95ea081218c6d5f432695b3b8e6be76adf492fb5
8ef8e6818c977c26d937d09b46be0d748022ea09
/cv/ocr/dbnet/pytorch/dbnet_cv/__init__.py
65b6016ceb237276f13baab4fba2ab2a8c266426
[ "Apache-2.0" ]
permissive
Deep-Spark/DeepSparkHub
eb5996607e63ccd2c706789f64b3cc0070e7f8ef
9d643e88946fc4a24f2d4d073c08b05ea693f4c5
refs/heads/master
2023-09-01T11:26:49.648759
2023-08-25T01:50:18
2023-08-25T01:50:18
534,133,249
7
6
Apache-2.0
2023-03-28T02:54:59
2022-09-08T09:07:01
Python
UTF-8
Python
false
false
373
py
# Copyright (c) OpenMMLab. All rights reserved. # flake8: noqa # from .arraymisc import * from .fileio import * from .image import * from .utils import * from .version import * # from .video import * # from .visualization import * # The following modules are not imported to this level, so dbnet_cv may be used # withou...
9028e75eec7c52e5c1103aa926a2fa0661cfce5a
18239524612cf572bfeaa3e001a3f5d1b872690c
/clients/keto/python/ory_keto_client/models/ory_access_control_policy_roles.py
cff6965d729259b822fa0830da11454472db44ab
[ "Apache-2.0" ]
permissive
simoneromano96/sdk
2d7af9425dabc30df830a09b26841fb2e8781bf8
a6113d0daefbbb803790297e4b242d4c7cbbcb22
refs/heads/master
2023-05-09T13:50:45.485951
2021-05-28T12:18:27
2021-05-28T12:18:27
371,689,133
0
0
Apache-2.0
2021-05-28T12:11:41
2021-05-28T12:11:40
null
UTF-8
Python
false
false
3,658
py
# coding: utf-8 """ ORY Keto A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.37 Contact: [email protected] Generated by: https://openapi-generato...
3292558238a1c314f6d4aa4e1d50871f9b3a95ab
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/algoexpert.io/python/KMP_Algorithm.py
f64b7085b85fe4297668d29e69091911d3e79cbb
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
660
py
def knuthMorrisPrattAlgorithm(string, substring): pattern = buildPattern(substring) return doesMatch(string, substring, pattern) def buildPattern(substring): pattern = [-1 for _ in substring] j, i = 0, 1 while i < len(substring): if substring[i] == substring[j]: pattern[i] = j i += 1 j += 1 elif j...
5c28515d3b5ab34c658293847d5bf7e618fa2754
3856c34baa38949498840ba1489c180964cbac6a
/Day4/ansiblevault/inheritance.py
ee797d43a0128e7af40f3c1a13979701b82f8d59
[]
no_license
vinodhmvm/ansibledockertraining
ffcb9c459fefe18507f81982e052c1880558715b
e28f42b5a09f96fc12f0b3044d617eca80aba154
refs/heads/master
2020-03-16T22:01:47.512777
2018-05-11T10:10:10
2018-05-11T10:10:10
133,023,943
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
class Parent1: def __init__(self): print("Paren1 Inside Constructor") self.__privateData1 = 100 self._protectedData1 = 200 self.publicData1 = 300 def setValues(self, val1, val2, val3): self.__privateData1 = val1 self._protectedData1 = val2 self.publicData1 = val3 def...
33207db912f627bcbaa44baf0ad4edf3f56c2638
0bda1f543ef3be8cd12a4709d44da95bc68ba507
/exs/mundo_3/python/075.py
f084fa0ca20c97ee710e02bcaf5c37a615eba6ae
[ "MIT" ]
permissive
BearingMe/exercicios-CeV
e5a18e897a725cd8a7a86fd0473dc2d66ee39771
d65a022041af81a161ae7c98b24a0896e6bb4a5e
refs/heads/master
2023-04-13T09:51:33.449706
2023-03-29T19:51:43
2023-03-29T19:51:43
519,369,091
1
0
MIT
2022-07-29T23:00:45
2022-07-29T23:00:45
null
UTF-8
Python
false
false
803
py
""" Desafio 075 Problema: Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre: A) Quantas vezes apareceu o valor 9; B) Em que posição foi digitado o primeiro valor 3; C) Quais foram os números pares. Resolução ...
3a56ab23accce20fe1187c8bc32ac64f54145555
5ecdac376b2f43272910c2429288297c4302b459
/65.py
cfafb6ab114b86be196304563f0f57c813d73120
[]
no_license
higher68/lang_process
c8ff7963ea2824e9387a982bf9ec1d28d91b467e
8b644b9a6f2ffa65e4358adb6e942c8b234a905f
refs/heads/master
2020-03-21T08:01:42.432014
2018-10-08T14:47:07
2018-10-08T14:47:07
138,314,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
##!!!!!!!!!!exercute 64.py and setup testdb!!!!!!!!!!!!! ##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11 import json from pymongo import MongoClient # mongodbへのクエリをだす from bson.objectid import ObjectId def support_ObjectId(obj): '''json.dumps()でObjectIdを処理するための関数 ObjectIdはjsonエンコードできない型なので、文字列型に変換する ...
bfd75890b5a55e701078feaa5066b2a9c9f9eb02
df4378e8bf32ca491a77706c46d5879299e6166d
/symbolic_expressions/merging_by_hand/tigress-0-challenge-3_hash_to_input.py
d76f3ec7a7ecdb1fa23ac698a8580ace83a07bab
[]
no_license
triplekill/Tigress_protection
a26d52a50d8f89c260e1748e4e23d4478cc0db3b
020e8bcd68996b85ccf993f81ddc4fa586fd8aa2
refs/heads/master
2021-05-03T13:30:58.205877
2016-10-28T11:55:57
2016-10-28T11:55:57
72,204,718
1
0
null
2016-10-28T12:16:32
2016-10-28T12:16:32
null
UTF-8
Python
false
false
2,484
py
#!/usr/bin/env python2 ## -*- coding: utf-8 -*- ## ## Triton ## import sys import z3 def sx(bits, value): sign_bit = 1 << (bits - 1) return (value & (sign_bit - 1)) - (value & sign_bit) ctx = z3.Context() s = z3.Solver() SymVar_0 = z3.BitVec('SymVar_0', 64) a = ((((((sx(0x40, (((SymVar_0 << (0x3F & 0x3F))...
cd400a68fac11c77858bc6409ccc7da10a5332b8
b26674cda3264ad16af39333d79a700b72587736
/corehq/util/mixin.py
4c0450bc10c880dc787cec04f29c0a71f4f55d22
[]
no_license
tlwakwella/commcare-hq
2835206d8db84ff142f705dbdd171e85579fbf43
a3ac7210b77bea6c2d0392df207d191496118872
refs/heads/master
2021-01-18T02:07:09.268150
2016-03-24T14:12:49
2016-03-24T14:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
import uuid class UUIDGeneratorException(Exception): pass class UUIDGeneratorMixin(object): """ Automatically generates uuids on __init__ if not generated yet. To use: Add this mixin to your model as the left-most class being inherited from and list all field names in UUIDS_TO_GENERATE to gener...
57eda055023149e7acd1f892a5d03da7db1cfc98
3485ceeca2dcb96e5fc10d353a8ca18a9b0d54af
/legacy_examples/exp_concat_visual_bpr.py
490764d84236ec822e47259593dedd4492a6dfb8
[ "Apache-2.0" ]
permissive
Yuan-T-Xuan/openrec
2d82cfa7ee4448744e70aa607d981ddb312f74ee
925cff19225874144f839aae30c304df32cc4b1d
refs/heads/master
2020-03-11T17:46:07.472963
2018-10-16T01:53:31
2018-10-16T01:53:31
116,905,600
1
0
Apache-2.0
2018-03-06T00:44:03
2018-01-10T03:54:54
Python
UTF-8
Python
false
false
1,561
py
import os import sys sys.path.append(os.getcwd()) from openrec.legacy import ImplicitModelTrainer from openrec.legacy.utils import ImplicitDataset from openrec.legacy.recommenders import ConcatVisualBPR from openrec.legacy.utils.evaluators import AUC from openrec.legacy.utils.samplers import PairwiseSampler from confi...
dca90dedaf030321cc01173965bf0a98d9e611f8
e0980f704a573894350e285f66f4cf390837238e
/.history/flex/models_20201029145653.py
c271e0bdba6e0a3670289d00d9c26ad51349a930
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
from django.db import models from wagtail.core.models import Page from wagtail.core.fields import StreamField from wagtail.admin.edit_handlers import StreamFieldPanel from wagtail.snippets.blocks import SnippetChooserBlock from wagtail.core import blocks as wagtail_blocks from streams import blocks from home.models im...
99028d394ffee3ec6127b4af8b4a21e4dac6cbe7
a5d0a0499dd069c555080c8cefc2434304afead4
/BOJ/2953.py
18289777d1ae4372c43d03089f4dc700f78adb42
[]
no_license
devjinius/algorithm
9bdf9afc021249b188d6930cf9d71f9147325d9f
007fa6346a19868fbbc05eefd50848babb5f1cca
refs/heads/master
2020-05-04T06:08:32.827207
2019-07-31T02:39:39
2019-07-31T02:39:39
178,999,456
1
1
null
null
null
null
UTF-8
Python
false
false
962
py
# 백준알고리즘 2953번 # https://www.acmicpc.net/problem/2953 # 문제 # 각 참가자가 얻은 점수는 다른 사람이 평가해 준 점수의 합이다. 이 쇼의 우승자는 가장 많은 점수를 얻은 사람이 된다. # 각 참가자가 얻은 평가 점수가 주어졌을 때, 우승자와 그의 점수를 구하는 프로그램을 작성하시오. # 입력 # 총 다섯 개 줄에 각 참가자가 얻은 네 개의 평가 점수가 공백으로 구분되어 주어진다. 첫 번째 참가자부터 다섯 번째 참가자까지 순서대로 주어진다. 항상 우승자가 유일한 경우만 입력으로 주어진다. # 출력 # 첫째 줄에 우승자...
f129c103ade98b9c151721146c3cefac3efbbb39
7c2a976cce8c2b32d644b079c9c5fa3199373491
/list_qsort.py
e5f38565187224fc079d5e0652fb6f166feab9d3
[ "Apache-2.0" ]
permissive
xartisan/Algo
f7bbf8627a4cfcc43d952f34482b5691cfd1fbf6
6ba61c84f9f111ba6c71ec4d7ce41ee8734d590d
refs/heads/master
2021-04-12T08:41:32.261209
2018-05-17T23:11:31
2018-05-17T23:11:31
126,271,781
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
# quicksort algorithms for linked list class ListNode: def __init__(self, val, next=None): self.val = val self.next = next def __repr__(self): rv = str(self.val) if self.next: rv = rv + ' -> ' + repr(self.next) return rv def qsort(start, end=None): if...
be605463e4ac1976451faca56113a86d84a55e52
d66818f4b951943553826a5f64413e90120e1fae
/hackerrank/Algorithms/Halloween Sale/test.py
833625794fb188739df4943a47e9facfcbea19f1
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
301
py
import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): self.assertEqual(solution.howManyGames(20, 3, 6, 80), 6) def test_case_1(self): self.assertEqual(solution.howManyGames(20, 3, 6, 85), 7) if __name__ == '__main__': unittest.main()
948fd7847c5cd59d02192e55b5ce7af68fdce4c5
aa265e03e73f718d4008cfe30ada7ee32c852eec
/other/cf_2015_morning_easy_b.py
3e3d8ddb67e1f17d63dff6d77afb83b3bb7f17fe
[ "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
168
py
N = int(input()) S = input() if N % 2 != 0: print(-1) exit(0) half = N//2 ans = 0 for i in range(half): if S[i] != S[i+half]: ans += 1 print(ans)
e43f804556ee3049d4fcaffe0a2c595238467584
0fa3ad9a3d14c4b7a6cb44833795449d761b3ffd
/day08_all/day08/exercise04.py
387bae00da3fef78a90100f8c8541ac5fb94018b
[]
no_license
dalaAM/month-01
3426f08237a895bd9cfac029117c70b50ffcc013
e4b4575ab31c2a2962e7c476166b4c3fbf253eab
refs/heads/master
2022-11-22T23:49:43.037014
2020-07-24T07:37:35
2020-07-24T07:37:35
282,154,216
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
""" 参照下列代码,定义函数,计算斤量. day02/exercise08 # total_weight = int(input("请输入多少两:")) # number_jin = total_weight // 16 # number_liang = total_weight % 16 # print("结果为:" + str(number_jin) + "斤" + str(number_liang) + "两") """ def calculation_weight(total_weight): """ 计算斤两 :param total_w...
9481bf27e9bd8c47d6a4ad24719e8ac76919e8b2
87d5b21265c381104de8f45aa67842a4adc880eb
/96. Unique Binary Search Trees.py
26dbb55326d8f87010e034de603ebc359adae505
[]
no_license
MYMSSENDOG/leetcodes
ac047fe0d951e0946740cb75103fc94aae967166
8a52a417a903a0742034161471a084bc1e494d68
refs/heads/master
2020-09-23T16:55:08.579319
2020-09-03T19:44:26
2020-09-03T19:44:26
225,543,895
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
from tree_node_lib import * class Solution: def numTrees(self, n: int) -> int: dp = [0]*(n+1) dp[0] = 1 if n == 0: return 0 else: for i in range(1,n+1): for j in range(i): dp[i] += dp[j] * dp[i-j-1] return dp[n] sol...
1e9a6f9036d6285996a9d0348b20777b728c667e
0c7dff41d828d30666f159e9f074551b490cdd8c
/models/TREES/XGBOOST/xgboostModelRegressor.py
0930ed04c788d335c432943c3de977b99ac2395f
[ "MIT" ]
permissive
SolbiatiAlessandro/kaggle-pets
6de6b5f1ae7478291463cc15c69515eeaba51c8f
562a8612f57a63cca0c519207210172ad22beca6
refs/heads/master
2022-12-15T11:49:50.262615
2019-05-19T21:56:07
2019-05-19T21:56:07
172,264,498
6
1
MIT
2022-12-08T04:57:39
2019-02-23T21:11:18
Jupyter Notebook
UTF-8
Python
false
false
13,692
py
#mod specific libraries from time import ctime import xgboost as xgb import sklearn.metrics as metrics import scipy as sp import pandas as pd import numpy as np class PredictiveModel(object): """ base class for the prediction task of Adoption Prediction competition this is catboost! https://www.cour...
60653133ec457b24ba0b502d0d5d416b5464ac9e
d807627695b0be66f5b666a0a7292e74b4168af0
/tests/server/util.py
f0589cc4579dc662a2f1f0aa55977e9451e996a4
[]
no_license
evvaletov/balsam
fc61c57c09807b2047d9fdc601929137749cb1e3
b0c908706ccb7aee2f01cae81da7a64272b29767
refs/heads/main
2023-08-10T16:39:20.546564
2021-09-02T17:35:35
2021-09-02T17:35:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,725
py
from fastapi import status from fastapi.encoders import jsonable_encoder class BalsamTestClient: def __init__(self, client): self._client = client @property def headers(self): return self._client.headers def check_stat(self, expect_code, response): if expect_code is None: ...
cd2e4f6d7aacbf6a2ac1b9a15e8fecf67de1ad0d
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20170928/example_marshmallow/00extend.py
af0aa4d3cf26db1f738db90211a4fc60cc7001be
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
347
py
from marshmallow import Schema, fields class S(Schema): v = fields.Integer(required=True) print(S().load({"v": 10})) print(S().load({"v": 10, "extra": "extra"})) print("----------------------------------------") s = S() s.fields["extra"] = fields.String(required=True) print(s.load({"v": 10})) print(s.load({"v...
4de008b82491430f5dd198909206a566a8046d33
3fc01457951a956d62f5e8cc0a8067f6796ee200
/misago/threads/views/list.py
1c38a3fb6308fac9b4d19fcc80f54dd524234a8b
[]
no_license
kinsney/education
8bfa00d699a7e84701a8d49af06db22c384e0e8d
48f832f17c2df7b64647b3db288abccf65868fe6
refs/heads/master
2021-05-04T01:15:03.078130
2016-12-04T03:18:20
2016-12-04T03:18:20
71,164,542
3
1
null
null
null
null
UTF-8
Python
false
false
2,752
py
from django.conf import settings from django.core.urlresolvers import reverse from django.http import Http404 from django.shortcuts import render from django.views.generic import View from ..viewmodels import ( PrivateThreadsCategory, ThreadsCategory, ThreadsRootCategory, ForumThreads, PrivateThreads) class ...
d7caadaca6dfd4a14e263ecf3bb340dbfb77cc43
5a3d3be73e19032b0f4574bcd827a73f9a90dc15
/pytorch_mjolnir/experiment.py
e6f9e16b582ac7d97956aa055614402bc1674f41
[ "MIT" ]
permissive
penguinmenac3/pytorch-mjolnir
2134d38b0777356626dd25d0982e9dc820dbf6d0
0b60f796e43c7abb17f9fc6f4087a645260bff56
refs/heads/main
2023-03-18T09:11:45.156514
2021-03-08T21:33:34
2021-03-08T21:33:34
337,863,208
1
0
null
null
null
null
UTF-8
Python
false
false
13,877
py
"""doc # pytorch_mjolnir.Experiment > A lightning module that runs an experiment in a managed way. There is first the Experiment base class from wich all experiments must inherit (directly or indirectly). """ import os from typing import Any, Tuple import pytorch_lightning as pl import torch import argparse import ps...
d52cda661269ab091019b51e08b40417560988e1
161643f32e3f909cbe75869f71ec8e233de8b0f7
/torchbiggraph/converters/import_from_tsv.py
0a2963e64c2e6f7043c87437f6015e3f6c5ce7ea
[ "BSD-3-Clause" ]
permissive
mengkunzhao/PyTorch-BigGraph
11e86262767fbbf02e73c5f1df853f9254a5a287
b15e1164f44817b8c7c330e77af56a3d80c5fc31
refs/heads/master
2020-06-08T06:27:38.128731
2019-06-20T08:17:43
2019-06-20T08:20:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,181
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. import argparse import json import os import os.path import random from typing import...
b63caf64a7adfc33fa4412914bdfd400318a63eb
e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d
/a10sdk/core/waf/waf_xml_schema.py
a6c1a7ac3aab778fc54295f60cf1cc95b76dda52
[ "Apache-2.0" ]
permissive
amwelch/a10sdk-python
4179565afdc76cdec3601c2715a79479b3225aef
3e6d88c65bd1a2bf63917d14be58d782e06814e6
refs/heads/master
2021-01-20T23:17:07.270210
2015-08-13T17:53:23
2015-08-13T17:53:23
40,673,499
0
0
null
2015-08-13T17:51:35
2015-08-13T17:51:34
null
UTF-8
Python
false
false
1,289
py
from a10sdk.common.A10BaseClass import A10BaseClass class XmlSchema(A10BaseClass): """Class Description:: Manage XML-Schema files. Class xml-schema supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param uuid: {"descripti...
7063bba9a5ccd6af262eae54a272ea3d37aa2445
6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5
/tests/beta_tests/test_required_data_2.py
48b091de71469858c02437d9e115177357e086c4
[ "MIT" ]
permissive
mveselov/CodeWars
e4259194bfa018299906f42cd02b8ef4e5ab6caa
1eafd1247d60955a5dfb63e4882e8ce86019f43a
refs/heads/master
2021-06-09T04:17:10.053324
2017-01-08T06:36:17
2017-01-08T06:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,473
py
import unittest from katas.beta.required_data_2 import given_nth_value class RequiredData2TestCase(unittest.TestCase): def setUp(self): self.list_1 = [3, 3, -1, 10, 6, 8, -5, 4, 22, 31, 34, -16, -16, 8, 8] self.list_2 = [3, 3, -1, 10, 6, 8, -5, 'Yes', 4, 22, 31] self.list_3 = [3, 3, -1, 1...
bd39e76f31f1c24a51b416369db58b831e6dfd68
9f13c7be7e88d2486076db0b89a215ab900fea1a
/main/apps/core/tests/test_views.py
2211728d9e898097fa1eadd09d136514d1880520
[]
no_license
truhlik/reimpay
534664d2e506f39ec6b0edea471e7cfbad179c3b
ac8291dc8a0ac543283ee10aecd32deba24a1641
refs/heads/main
2023-08-10T16:45:55.283272
2021-10-06T19:00:15
2021-10-06T19:00:15
414,333,776
0
0
null
null
null
null
UTF-8
Python
false
false
4,091
py
import datetime from django.test import Client from django.urls import reverse from django.utils import timezone from model_bakery import baker from rest_framework.test import APITestCase from main.apps.users import constants as user_constatnts class CoreViewsTestCase(APITestCase): def setUp(self) -> None: ...
2200eada0e86c8efa83ef9570debe0a0a5d506eb
8b9638839818331df2637cf389d38d541c2b94ed
/SSWW_fitting/n5_Asimov_Dataset_fitting/n0_Asimov_DatasetMaking.py
795663ef59a8f12f9a0f05eedb919b7f3b4d9d2c
[]
no_license
PKUHEPEWK/DNN
015bb5f862f6ee0363f8671890339469ef7aa76b
ad500137441b2f0a55bf462830aca42d9c9d6710
refs/heads/master
2020-03-25T01:34:54.253383
2019-01-29T07:56:26
2019-01-29T07:56:26
143,244,572
0
0
null
null
null
null
UTF-8
Python
false
false
5,606
py
from ROOT import * from math import sqrt import sys, os, math #from root_numpy import * import numpy as np sys.path.append("/Users/leejunho/Desktop/git/python3Env/group_study/project_pre/func") from c0_READ_PATH_FILE_ROOT import read_file_name_root class Asimov_Dataset: def __init__(self,infileLL,infileTTTL): ...
ba0d414f75ba433e54bc79826218257d4eb70aa8
5785d7ed431b024dd910b642f10a6781df50e4aa
/revise-daily/arjuna-vishwamitra-abhimanyu/educative/5-medium-subsets/4_permutation_case_sensitive.py
f355280b9cad1e435f0ad603dc1e781b88acf6e7
[]
no_license
kashyapa/interview-prep
45d77324446da34d99bf8efedb3544b367b5523e
7060c090c40602fb9c4778eace2078e1b51e235b
refs/heads/master
2023-07-28T13:12:49.515299
2021-09-06T14:33:25
2021-09-06T14:33:25
403,706,510
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
def permutation_swapcase(str): # abcd, Abcd, aBcd, ABcd, abCd, AbCd, aBCd, ABCd, abcD, AbcD, aBcD, ABcD, abCD, AbCD, aBCD, ABCD perms = [] perms.append(str) for i in range(len(str)): n = len(perms) if str[i].isalpha(): for j in range(n): new_perm = perms[j] ...
87f0fffaab7bc21ca9eeed785b838ae66c278d13
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/robust_loss/util.py
e16e1d6560e238c6a2ba80982aec7983c748cf1f
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
5,609
py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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...
0aba4c835bf050bf8a957d653f0f795cc8df0b45
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/1589. Maximum Sum Obtained of Any Permutation/1589.py
788bf7675e89f00c8c36280ac9384a28a4918035
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
507
py
class Solution: def maxSumRangeQuery(self, nums: List[int], requests: List[List[int]]) -> int: kMod = 1_000_000_007 ans = 0 # count[i] := # of times nums[i] has been requested count = [0] * len(nums) for start, end in requests: count[start] += 1 if end + 1 < len(nums): count[e...
4d98fe655147a64f31dce19a2237de013034d925
9419861577102f31261bcd5d0c365a8c8362c54d
/firstproject/urls.py
04fe0109a96dbcb862d69932f9ce4d8a6332f710
[]
no_license
16LeeSeul/django_wordcount
f09ae855406cf767e0555191385a22e07218a8ba
01d195298de0cd03390d397d01ccb2e79b8fd593
refs/heads/master
2020-04-17T23:25:44.141771
2019-01-22T17:16:19
2019-01-22T17:16:19
167,034,940
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
from django.contrib import admin from django.urls import path import wordcount.views urlpatterns = [ path('admin/', admin.site.urls), path('', wordcount.views.home, name="home"), path('about/', wordcount.views.about, name="about"), path('result/', wordcount.views.result, name="result"), path('inde...
0d6b5e20427885b3ea44219bd165433b76358e41
f62955f9f78fc0ebc84d2f58118a012edc3317b9
/.eggs/scikit_learn-0.19.1-py2.7-linux-x86_64.egg/sklearn/decomposition/cdnmf_fast.py
4d8deb50edc2ac72da6186c62a71462b276a2247
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
wouterkessels/PREDICTFastr
31aa5de9b0a85613af7e961297c13be2c19d3dfc
2ac3a34b4d43e6a88684e79fd14d5c3f02d27eb6
refs/heads/master
2021-04-03T05:21:20.425482
2018-05-14T07:57:40
2018-05-14T07:57:40
124,414,878
0
0
null
2018-03-08T16:00:55
2018-03-08T16:00:54
null
UTF-8
Python
false
false
286
py
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, 'cdnmf_fast.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
82e2d74564a2c116c8172cf12c9f4aae74c1cf6c
324ec5647849f97418c91151e4e1d1953d2d9257
/account_dashboard_bokeh/__manifest__.py
efb0b7a4ced07a7c134122ea173cb32a2235bc73
[]
no_license
MarcosCommunity/marcos_community_addons
84ab9ae7639b1d77ad36a167786160f54e0ef409
7adeceea5c12129baad36c037ff188cbccc98e2f
refs/heads/10.0
2020-04-04T07:27:54.837381
2017-10-10T01:44:17
2017-10-10T01:44:18
45,713,685
15
15
null
null
null
null
UTF-8
Python
false
false
1,690
py
# -*- coding: utf-8 -*- ############################################################################## # # iFenSys Software Solutions Pvt. Ltd. # Copyright (C) 2017 iFenSys Software Solutions(<http://www.ifensys.com>). # you can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3),...
5f530fb04413e8fe54b09e163502f22247cc0074
21b50b70ab307adfa39b9932b826f4de1b5e7786
/posts/urls.py
60d16029df27881878cb78d0c32dad61d9264664
[]
no_license
kamral/drf1
080da165852fb2e7247c3298c03f26f96a76046a
f78aea6e39aa0aa6b66bb094c583286970fe14b9
refs/heads/main
2023-01-20T04:45:41.676653
2020-11-26T15:57:08
2020-11-26T15:57:08
316,277,381
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from django.urls import path from .views import PostListApiView,PostDetailApiView urlpatterns=[ path('', PostListApiView.as_view()), path('<int:pk>/', PostDetailApiView.as_view()), ]
a82e2ff00c8f70e65e2c5564da32ab9055065709
39988ca6b376a37fe115816d6e707c4e7ea0b077
/reproducibilityPackages/independenceStudy/cuibm/gridIndependence/Re2000AoA35/plotForceCoefficientsCompareATol.py
6fc2b7a0aa8a39ee7e310044a2b9ecc90c862db6
[ "CC-BY-4.0", "CC-BY-3.0", "MIT" ]
permissive
mljack/snake-repro
beddb77e1a892e126005cb4a8843365214d84ec9
f594d975fd2ba00a66b90877a4f7bd7596838fc8
refs/heads/master
2023-03-18T16:24:37.684519
2020-05-10T17:34:03
2020-05-10T17:34:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,569
py
""" Compares the instantaneous force coefficients obtained on the coarse mesh (h=0.006) using a different absolute tolerance (1.0E-05 and 1.0E-06) as exit criterion for the Poisson solver. The velocity solver is solved with an absolute tolerance of 1.0E-16 (machine accuracy). This script generates the figure `forceCo...
cd66f69f537e8c40151685872ca78823e0a7c88c
7832e7dc8f1583471af9c08806ce7f1117cd228a
/aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsMessagePageQueryByTopicRequest.py
9b898029a797cbc69403d948e695eb39da98e762
[ "Apache-2.0" ]
permissive
dianplus/aliyun-openapi-python-sdk
d6494850ddf0e66aaf04607322f353df32959725
6edf1ed02994245dae1d1b89edc6cce7caa51622
refs/heads/master
2023-04-08T11:35:36.216404
2017-11-02T12:01:15
2017-11-02T12:01:15
109,257,597
0
0
NOASSERTION
2023-03-23T17:59:30
2017-11-02T11:44:27
Python
UTF-8
Python
false
false
2,478
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...
d47f5cff2feae7651c928e07fc84f08ff20b1a9b
8661524d0aab2ec62a0443d843cd2810a5d06201
/tiendadj/tienda/tienda/urls.py
b15dad841c769079d032df88bdae517ce5bd6541
[]
no_license
Garavirod/Django-DRF-Projects
e8fbfbbd86f09862ac4ae48cb7f9c46b9360978a
93ba2a5f59dbbe2c2c440abc89c6cd473b59fc4c
refs/heads/master
2023-01-13T13:06:06.647724
2020-11-23T19:28:12
2020-11-23T19:28:12
289,785,572
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
"""tienda 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-based ...
2bd53bae47464d656701a6fdfb49ed469fb6bbfe
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/iam/_delete_client_by_namespace.py
66c47c09ba25715164ca03371181b603b5a439d1
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,268
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Iam Service (6.2.0) # pylint: disable=duplicate-code # pylin...
62ead87a73ff1561c12a3a6a489e0494f0c0c0b8
3f09e77f169780968eb4bd5dc24b6927ed87dfa2
/src/Problems/Trapping_Rain_Water.py
790695e2d95e041b9c6897137e6540ec4299a717
[]
no_license
zouyuanrenren/Leetcode
ad921836256c31e31cf079cf8e671a8f865c0660
188b104b81e6c73792f7c803c0fa025f9413a484
refs/heads/master
2020-12-24T16:59:12.464615
2015-01-19T21:59:15
2015-01-19T21:59:15
26,719,111
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
''' Created on 19 Jan 2015 @author: Yuan ''' ''' This problem has several solutions. Solutoin1: 1. find the peak of the array. 2. for each bar to the left of the peak, if the tallest to its left is MAX, then it can hold MAX-bar water. 3. for each bar to the right of the peak, if the tallest to its right is...
562b6ccf75ce533f7d45cd5c3e35c161c0f06b56
7438ed5bda477e728fd075d8aba69a4ee43cbe83
/day_04/json_ex/json_ex01.py
05adb2c4821a47893079dd8e8f067e52b83645fe
[]
no_license
mindful-ai/18012021PYLVC
b2717846a905400c2462eb4dd293aa3a7a48a86f
2facc19fb433e3e15d1195fb2b75eea3bffd097a
refs/heads/main
2023-02-18T22:40:38.112663
2021-01-22T12:52:47
2021-01-22T12:52:47
330,656,405
1
2
null
2021-01-22T17:28:23
2021-01-18T12:17:10
Python
UTF-8
Python
false
false
145
py
import pandas as pd data = pd.read_json('http://api.population.io/1.0/population/India/today-and-tomorrow/?format = json') print(data)
d208cb86e1da4bd00d174eed3f2d2dd895b22964
9af2aef1e0d1033217179394bff6344858da9f4d
/python/chronos/test/bigdl/chronos/model/tf2/test_Seq2Seq_keras.py
f931bb30d652d232574b5d72337c303cc4f9a892
[ "Apache-2.0" ]
permissive
analytics-zoo/BigDL
9d5fec6dea5eaf458ef87edbbf2bd4d5e4a24f4d
6c18e9337b649df3a975f8293c15fcd075d4f11f
refs/heads/main
2023-03-16T04:42:14.787392
2022-11-28T08:44:03
2022-11-28T08:44:03
557,722,893
2
0
Apache-2.0
2023-01-18T14:23:55
2022-10-26T07:20:43
Jupyter Notebook
UTF-8
Python
false
false
3,776
py
# # Copyright 2016 The BigDL Authors. # # 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 ...
7488e99a63b2fb53387ff3a700a2557870d81010
11286e7989264134a8a8d610e0f609e6fbff9140
/ch03/ch03_10.py
7649efe4cb33c68f8e0e48a12894028241aab190
[]
no_license
p2c2e/machine_learning_with_python_cookbook
04eeed2e00e0a3e9c0681d4b2f4125aa85485a1d
b176323a02f5b5722e312a579ad764a0276ec9c6
refs/heads/main
2023-01-30T06:54:34.138786
2020-12-13T05:02:07
2020-12-13T05:02:07
320,987,171
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
# Set index dataframe = dataframe.set_index(dataframe['Name']) # Show row dataframe.loc['Allen, Miss Elisabeth Walton']
743aee244af3e5076a2c6eced6ffea7266f9cf44
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/Asyncio/asyncio_coroutine_return.py
33de7d2adede0d01e538c965d748f6871d4e2b33
[]
no_license
jincurry/standard_Library_Learn
12b02f9e86d31ca574bb6863aefc95d63cc558fc
6c7197f12747456e0f1f3efd09667682a2d1a567
refs/heads/master
2022-10-26T07:28:36.545847
2018-05-04T12:54:50
2018-05-04T12:54:50
125,447,397
0
1
null
2022-10-02T17:21:50
2018-03-16T01:32:50
Python
UTF-8
Python
false
false
348
py
import asyncio async def coroutine(): print('in coroutine') return 'result' event_loop = asyncio.get_event_loop() try: print('Starting') return_value = event_loop.run_until_complete( coroutine() ) print('return from coroutine') print('it returned: {!r}'.format(return_value)) fina...
5cffbe8f48e68fffb7131c55cf9163e826b0549a
9bc228372e586a1f90bb0685c43e744be9638ecd
/18_배연주/session08/blogproject/urls.py
9a3215ba5702b7c22567450884a56611561f2a6b
[ "MIT" ]
permissive
LikeLionSCH/9th_ASSIGNMENT
3e58862a76e3232aed7e19e8939da23330ff2e22
c211995ad12f404833ffec7fd80e1229b82a3bfa
refs/heads/master
2023-07-03T10:27:11.843177
2021-08-02T14:52:02
2021-08-02T14:52:02
379,633,279
7
18
MIT
2021-08-02T14:52:03
2021-06-23T14:36:59
Python
UTF-8
Python
false
false
1,043
py
"""blogproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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-b...
8186e7d599b6d6625d7b1f68a6983f22497faca4
5406d6bce007c90ca36e7557e060296e04b7c1b6
/scripts/spp13/spp.py
c84b8f8e1a2c74e42e844b9c537542e32a99e727
[]
no_license
darraghdog/dfake
10df7c19acc3447c1833ab2754ec61b5699b9a05
e128d0d907b0cb2d4e5d841de4bcfb0ddb0af276
refs/heads/master
2022-04-12T02:46:02.272497
2020-04-05T19:18:30
2020-04-05T19:18:30
229,479,349
0
0
null
null
null
null
UTF-8
Python
false
false
17,597
py
import os import sys import glob import json import cv2 from PIL import Image import numpy as np import pandas as pd #import dlib import torch from itertools import product from time import time import datetime import collections from tqdm import tqdm import skvideo.io import skvideo.datasets import random import optpa...
2aca437b37742fa916d9eb0f1fd52264d265fc4a
07aa9b5a07df2a80b7d899da1da63c84b1060fec
/src/iegen/ast/visitor/_collect_symbolics_visitor.py
88c6cd9d5322f63bf3ec2910d6d0d9b99e1c6427
[]
no_license
lamielle/iegen
f26da812a01557daca086e0a1c76a62af8fe7cd4
0f48edad8d14ae18c907d705751552cf6eb53c8e
refs/heads/master
2016-09-05T12:48:23.698779
2010-12-14T19:17:13
2010-12-14T19:17:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
from iegen.ast.visitor import DFVisitor class CollectSymbolicsVisitor(DFVisitor): def __init__(self): self.symbolics=set() def _outFormula(self,node): self.symbolics=sorted(list(self.symbolics)) def outSet(self,node): self._outFormula(node) def outRelation(self,node): self._outFormula(node) def _outPre...
501a59bf5034f2971f72a93692f2a6b9fa4bd318
2b42b40ae2e84b438146003bf231532973f1081d
/spec/mgm4457998.3.spec
20d3afe3e339b6101508a887d783eccb40b43034
[]
no_license
MG-RAST/mtf
0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a
e2ddb3b145068f22808ef43e2bbbbaeec7abccff
refs/heads/master
2020-05-20T15:32:04.334532
2012-03-05T09:51:49
2012-03-05T09:51:49
3,625,755
0
1
null
null
null
null
UTF-8
Python
false
false
14,312
spec
{ "id": "mgm4457998.3", "metadata": { "mgm4457998.3.metadata.json": { "format": "json", "provider": "metagenomics.anl.gov" } }, "providers": { "metagenomics.anl.gov": { "files": { "100.preprocess.info": { ...
802dfc0eca0af2e3ccdd4f960b723021a6c51317
6df0d7a677129e9b325d4fdb4bbf72d512dd08b2
/frame/djenv/lib/python3.6/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine_facts.py
85695cd79c4517fb7a24cea8700d7eddf5498739
[]
no_license
yingxingtianxia/python
01265a37136f2ad73fdd142f72d70f7c962e0241
3e1a7617a4b6552bce4a7e15a182f30e1bae221e
refs/heads/master
2021-06-14T15:48:00.939472
2019-12-13T05:57:36
2019-12-13T05:57:36
152,200,507
0
0
null
2021-06-10T20:54:26
2018-10-09T06:40:10
Python
UTF-8
Python
false
false
10,772
py
#!/usr/bin/python # # Copyright (c) 2018 # Gustavo Muniz do Carmo <[email protected]> # Zim Kalinowski <[email protected]> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIB...