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
a9b5c37d490d72e9375bcbdc7923a7dac1af0d0c
01ac9e40052a468dd472a296df0003c4e629e2c9
/news_all/spiders_old/tsw_all.py
c97cd4d9b74d039fbc585c3c4ee884ec2f287e8e
[]
no_license
Pintrue/news_all
b5cee16584ed92e6574edd825b574214df65d917
eb8c32c79bdacd8e2f76b88f27871c3cd0118006
refs/heads/master
2022-03-23T13:34:10.354029
2019-11-22T07:40:50
2019-11-22T07:40:50
223,058,997
2
1
null
null
null
null
UTF-8
Python
false
false
1,710
py
# -*- coding: utf-8 -*- from datetime import datetime from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Rule from news_all.spider_models import NewsRCSpider import re class TswSpider(NewsRCSpider): """天山网""" name = 'tsw' mystart_urls = { 'http://news.ts.cn/tp/index.shtml'...
[ "py416@ic.ac.uk" ]
py416@ic.ac.uk
70797a92621d0c27c582ee280246e49b977d773d
8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc
/toontown/hood/DGHoodAI.py
e4f84d08dd39839a3336652b6e2f10b55714760e
[]
no_license
RegDogg/ttr-2014-dev
eb0d9da3e91b9504b83804c27e1a00d87a0b7220
8a392ea4697cf15bd83accd01dcf26d0f87557eb
refs/heads/master
2023-07-13T02:40:56.171517
2021-07-12T00:31:28
2021-07-12T00:31:28
372,103,145
2
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
from toontown.toonbase import ToontownGlobals from toontown.safezone.DistributedDGFlowerAI import DistributedDGFlowerAI from SZHoodAI import SZHoodAI from toontown.toon import NPCToons from toontown.safezone import ButterflyGlobals from toontown.safezone.DistributedButterflyAI import DistributedButterflyAI class DGHoo...
[ "regdogg.acr@gmail.com" ]
regdogg.acr@gmail.com
af25fa5ee55d2f7965a59473f1165b20d44c87ed
9c4f3a2d6d95f2f9a96d4a33f258c9dbbd73bbb3
/raiden/storage/utils.py
0ef042bd43e5384ae288246965fb7494900f8dcb
[ "MIT" ]
permissive
copra2005/raiden
b70d4a9c20fca19bc984aa7546da3b54ff22eea7
2afd6a0039107bb9bbe1d619b9ebfedc1373b566
refs/heads/master
2020-03-28T05:11:21.533314
2018-09-06T14:12:51
2018-09-06T20:53:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
DB_CREATE_SETTINGS = ''' CREATE TABLE IF NOT EXISTS settings ( name VARCHAR[24] NOT NULL PRIMARY KEY, value TEXT ); ''' DB_CREATE_STATE_CHANGES = ''' CREATE TABLE IF NOT EXISTS state_changes ( identifier INTEGER PRIMARY KEY AUTOINCREMENT, data BINARY ); ''' DB_CREATE_SNAPSHOT = ''' CREATE TABLE IF NOT...
[ "lefteris@refu.co" ]
lefteris@refu.co
ec41eba4d760cb80e779607fef62ddb85cf78059
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/Tree/LC_124_Binary_Tree_Maximum_Path_Sum.py
6a10be30d8460e31e6ec0ca49ac7de282569f3cf
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
2,707
py
""" Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The path must contain at least one node and does not need to go through the root. Example 1: Input: [1,2,3] ...
[ "taocheng984@gmail.com" ]
taocheng984@gmail.com
010427dfae0fe07018165b13f4ff05de9eb8ea7c
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j19059-4438/sdB_galex_j19059-4438_coadd.py
21693045bdacdeb4c6ec6e927c32a01761f2fbab
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[286.482375,-44.643983], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_galex_j19059-4438/sdB_galex_j19059-4438_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTC...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
2dd11b0a111f15630d14d50fd54317a69dd5160c
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/dn5/M-69.py
5f487e7ea6ba72a5ea5819aa9b5f57e667ecd5d4
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
5,698
py
import unittest def unikati(s): seznam_unik = [] for currUnik in s: if(not seznam_unik.__contains__(currUnik)): seznam_unik.append(currUnik) return seznam_unik def avtor(tvit): ime = "" for currChar in tvit: if currChar != ':': ime += currChar else: ...
[ "benjamin.fele@gmail.com" ]
benjamin.fele@gmail.com
5180350f76117971d49278960829f3e352d29cdc
79c2fe6cc0af8c9267901d891b85e226d4b6bc51
/pontoon/base/tests/test_models.py
4fc934d4f2c75d624a3863fa9c7ab422901d7b78
[ "BSD-3-Clause" ]
permissive
SandraShklyaeva/pontoon
d1f1eab458bbab75e54b112e60d077d34b27699f
577a3275a0cf4888ecc30622ba4449fe706d5fd6
refs/heads/master
2021-01-14T12:36:21.461908
2015-09-16T08:33:11
2015-09-16T08:33:11
31,669,331
0
0
null
2015-03-26T06:12:32
2015-03-04T17:14:22
Python
UTF-8
Python
false
false
1,916
py
from django_nose.tools import assert_equal from pontoon.base.models import Translation from pontoon.base.tests import ( TranslationFactory, UserFactory, TestCase ) from pontoon.base.utils import aware_datetime class TranslationQuerySetTests(TestCase): def setUp(self): self.user0, self.user1 =...
[ "matjaz.horvat@gmail.com" ]
matjaz.horvat@gmail.com
8a301610df2c32e3dbc459193320ddcef3aa07c1
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/PyQt5/QtWidgets/QWizard.py
e64a26ec442693c681c085d3e68237a30edacb0c
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
12,907
py
# encoding: utf-8 # module PyQt5.QtWidgets # from F:\Python\Python36\lib\site-packages\PyQt5\QtWidgets.pyd # by generator 1.147 # no doc # imports import PyQt5.QtCore as __PyQt5_QtCore import PyQt5.QtGui as __PyQt5_QtGui import sip as __sip from .QDialog import QDialog class QWizard(QDialog): """ QWizard(parent...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
375a11d1c77c7c9b5e0a4ecfe2d2dece4756c57a
9878df8dcc9443267197e31f24a628e115c87949
/swagger_client/models/create_org_option.py
fa8e956d06cf5b747f1f317a21355174bd33dc79
[]
no_license
mirandacong/gitea_python_client
79fff8b3bb73f160abb059fe2f470b185017e844
79e2ae5253a20635aa019e176c17f8797d418f01
refs/heads/master
2020-04-02T00:19:07.392521
2018-10-20T05:02:55
2018-10-20T05:02:55
153,798,708
0
0
null
2018-10-20T05:02:56
2018-10-19T14:49:15
Python
UTF-8
Python
false
false
5,763
py
# coding: utf-8 """ Gitea API. This documentation describes the Gitea API. # noqa: E501 OpenAPI spec version: 1.1.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CreateOrgOption(object): """NOTE: This class i...
[ "qzmfranklin@gmail.com" ]
qzmfranklin@gmail.com
b21196c3211c716a022386906d536cb16977c5de
f7c07caa1210d2a08e8433cdd854b1232efa88e3
/Directory-And-File-Modules/OS-Path-Module/Mount-Point-Test.py
139a4a9945b10f4204de1fa19e4fb52106b19c06
[]
no_license
rchicoli/ispycode-python
c2fbecc28bf32933150986d24f77b7297f50b78e
fa27f2377943ac2e4d983065406578151091e3f5
refs/heads/master
2020-03-20T11:34:59.698618
2018-06-14T21:14:02
2018-06-14T21:14:02
137,407,150
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
import os dir = "/proc" print(os.path.ismount(dir))
[ "rafaelchicoli@hotmail.com" ]
rafaelchicoli@hotmail.com
0c543552664fd3afe39399fb3f895ca72021e56d
bc6508a1dde1e61a8b2f61e70044c074aeeb4406
/whoiser/servers/BB.py
b33a96c32341105b898e149e693478ed66fbf271
[]
no_license
krikulis/whoiser
7eca72260dc061a91c7630901557264b80c5263e
27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40
refs/heads/master
2021-01-10T19:10:53.915622
2012-06-24T23:50:28
2012-06-24T23:50:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from servers.generic import GenericWhoisQuery class WhoisQuery(GenericWhoisQuery): def query(self, query): raise NotImplementedError(u"TLD BB has no Whois server available")
[ "kristaps.kulis@gmail.com" ]
kristaps.kulis@gmail.com
2b102cafd639c68ae78c3d889a58a70e39bcd682
285de86d006f3ef53b94156d7fcbddb498f10a60
/backend/users/migrations/0002_auto_20201125_0526.py
d21f4d5402f99799cba6e502d6e82dd81cb1bcc6
[]
no_license
crowdbotics-apps/aia-store-22965
1e457444cd854adfb35e59edff4ab1f06b8c13b7
28162af82dc569d4f4e9a12a14d41787cb1f1a72
refs/heads/master
2023-01-19T09:18:50.195872
2020-11-25T05:27:32
2020-11-25T05:27:32
315,837,348
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# Generated by Django 2.2.17 on 2020-11-25 05:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0001_initial'), ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
3c90e8613ee6cecb065601ac20d4e343478c900d
b6aa9768dbac327943e0220df1c56ce38adc6de1
/657_robot-return-to-origin.py
56b67347d37bd1865161ddde5c165b4adcf916f8
[]
no_license
Khrystynka/LeetCodeProblems
f86e4c1e46f70f874924de137ec5efb2f2518766
917bd000c2a055dfa2633440a61ca4ae2b665fe3
refs/heads/master
2021-03-17T00:51:10.102494
2020-09-28T06:31:03
2020-09-28T06:31:03
246,954,162
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
# Problem Title: Robot Return to Origin class Solution(object): def judgeCircle(self, moves): """ :type moves: str :rtype: bool """ pos = [0, 0] for move in moves: if move == "L": pos[0] -= 1 elif move == "R": po...
[ "khrystyna@Khrystynas-MacBook-Pro.local" ]
khrystyna@Khrystynas-MacBook-Pro.local
96398f9563c3ce4191380a21668c526c3207b238
b822eae07a1f02365b3b9d0e16cd0dc9c48f01c2
/qiskit_aqua/dynamics/__init__.py
aa40b2bd30c0ac9d2fa895a91357b0c63738c2bd
[ "Apache-2.0" ]
permissive
takehuge/aqua
ff4b38c10f976223ffef4047c3a209df2d20de28
ec0fb71899d9e37f96f82eaf79c7d6581df6c9a7
refs/heads/master
2020-03-24T10:45:52.106507
2018-07-27T11:37:24
2018-07-27T11:37:24
142,666,813
1
0
Apache-2.0
2018-07-28T10:01:44
2018-07-28T10:01:44
null
UTF-8
Python
false
false
730
py
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
[ "manoel@us.ibm.com" ]
manoel@us.ibm.com
855af8ae5099cd64f0c255047fc3c691da29855d
29a78032c3b2fdd4722f6c054ab20a5a8cea627c
/board/user_manager/urls.py
0d466d9611d59ef7cd61565d71636d4999a3960e
[]
no_license
jungting20/pythonpro
838ea188f846b6e1a90f1a7c429f02464b1b0927
455dd23132023cb472bab5e8d9ba4a881331db54
refs/heads/master
2021-06-27T16:20:54.768172
2017-09-16T08:38:19
2017-09-16T08:38:19
103,737,995
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
from django.conf.urls import url from user_manager.views import login, login_validate, join_page #사실 이자리에 함수가 생기는데 이걸 블록 지정한다음 alt shift v를 #이용하여 views.py로 옮겼다 urlpatterns = [ url(r'^login/$', login), url(r'^login/validate/$', login_validate), url(r'^join/$', join_page) ]
[ "jungting20@gmail.com" ]
jungting20@gmail.com
8e53c8d3b292b9d2807cb3998f91fe0c511c0f5a
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/rapid7_insightidr/komand_rapid7_insightidr/actions/update_investigation/schema.py
e6b2c8a39c249b0cb740677586dc4812051c1fcc
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
6,172
py
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Allows to update existing investigation by ID or RRN" class Input: DISPOSITION = "disposition" EMAIL = "email" ID = "id" PRIORITY = "priority" STATUS = "status" TITLE ...
[ "noreply@github.com" ]
rapid7.noreply@github.com
eb56d0121a289f5fa16456acf5a76c39e991c74b
47128c6ff1277eedf851670d33f7a288fdfe2246
/function/function_callback2.py
32ed7de75eaffb118c21f481c714ce8fb6757336
[]
no_license
chati757/python-learning-space
5de7f11a931cf95bc076473da543331b773c07fb
bc33749254d12a47523007fa9a32668b8dc12a24
refs/heads/master
2023-08-13T19:19:52.271788
2023-07-26T14:09:58
2023-07-26T14:09:58
83,208,590
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
#!/usr/bin/env python from __future__ import print_function def fibonacci(cb): values = [] while(True): if len(values) < 2: values.append(1) else: values = [values[-1], values[-1] + values[-2]] r = cb(values[-1]) if (r[0]): return(r[1]) d...
[ "chati757@users.noreply.github.com" ]
chati757@users.noreply.github.com
5f9fb75b20926dfae9b4822da73744706878fe88
4f0cd2618cd7856e5ef51d1ad177fa572ccaea6b
/CircuitPython_Templates/storage_neopixel_code/code.py
a7c727c5021e3e139f92b578e5c700017f5e6a04
[ "MIT" ]
permissive
profharris/Adafruit_Learning_System_Guides
ecd213d34ffb7fa227e085ef3c763c802406d30e
1e64c043be80451443fcae3f8952c6fd0cb1a52e
refs/heads/main
2023-07-06T22:17:02.568765
2021-08-06T18:44:30
2021-08-06T18:44:30
394,449,146
1
0
MIT
2021-08-09T21:54:29
2021-08-09T21:54:28
null
UTF-8
Python
false
false
1,439
py
""" CircuitPython Essentials Storage CP Filesystem code.py file For use with boards that have a built-in NeoPixel or NeoPixels, but no little red LED. It will use only one pixel as an indicator, even if there is more than one NeoPixel. """ import time import board import microcontroller import neopixel pixel = neopi...
[ "kattni@adafruit.com" ]
kattni@adafruit.com
9de73ca502dfd47d31b65500e037cbf5e1d5abde
68d38b305b81e0216fa9f6769fe47e34784c77f2
/alascrapy/spiders/amazon_it_csv.py
f2a5930639aa4176890b9ef1d5c13a6528aae1f8
[]
no_license
ADJet1437/ScrapyProject
2a6ed472c7c331e31eaecff26f9b38b283ffe9c2
db52844411f6dac1e8bd113cc32a814bd2ea3632
refs/heads/master
2022-11-10T05:02:54.871344
2020-02-06T08:01:17
2020-02-06T08:01:17
237,448,562
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
# -*- coding: utf8 -*- __author__ = 'leonardo' from alascrapy.spiders.base_spiders.amazon import AmazonCSV class AmazonITCsv(AmazonCSV): name = 'amazon_it_csv' country_code = 'it' asin_kind = 'amazon_it_id' endpoint = "webservices.amazon.it" start_urls = ['http://alatest.com'] schema = {'asin...
[ "liangzijie1437@gmail.com" ]
liangzijie1437@gmail.com
3259148744fc149b8b65f565643198102619c09e
501615c82801733e69c7447ab9fd68d3883ed947
/hotfix/.svn/pristine/32/3259148744fc149b8b65f565643198102619c09e.svn-base
d6cfb334426ef58e6247a4decc8bdf34ec7beb71
[]
no_license
az0ne/python
b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee
aec5d23bb412f7dfca374fb5c5b9988c1b817347
refs/heads/master
2021-07-18T02:08:46.314972
2017-10-27T06:23:36
2017-10-27T06:23:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
768
# -*- coding: utf-8 -*- """ @version: 2016/5/17 0017 @author: zhangyunrui @contact: david.zhang@maiziedu.com @file: views.py @time: 2016/5/17 0017 10:48 @note: 教务端自己可见VIEWS """ from django.shortcuts import render from mz_common.decorators import eduadmin_required from mz_usercenter.base.context import get_u...
[ "1461847795@qq.com" ]
1461847795@qq.com
bd52c4b7c823672296c8c50e673e389127a6ee32
c1960138a37d9b87bbc6ebd225ec54e09ede4a33
/adafruit-circuitpython-bundle-py-20210402/lib/adafruit_framebuf.py
3c7bd7b3a766945df0c001cddf4560066893c949
[]
no_license
apalileo/ACCD_PHCR_SP21
76d0e27c4203a2e90270cb2d84a75169f5db5240
37923f70f4c5536b18f0353470bedab200c67bad
refs/heads/main
2023-04-07T00:01:35.922061
2021-04-15T18:02:22
2021-04-15T18:02:22
332,101,844
0
0
null
null
null
null
UTF-8
Python
false
false
19,681
py
# SPDX-FileCopyrightText: <text> 2018 Kattni Rembor, Melissa LeBlanc-Williams # and Tony DiCola, for Adafruit Industries. # Original file created by Damien P. George </text> # # SPDX-License-Identifier: MIT """ `adafruit_framebuf` ==================================================== CircuitPython pure-python framebuf...
[ "55570902+apalileo@users.noreply.github.com" ]
55570902+apalileo@users.noreply.github.com
45c2ef41ea4cb46acafc9a71ea9a5b4744b680b5
9ebeb33e168798d41b54a8ab474b00c160de43a2
/orders/migrations/0002_auto_20200822_0401.py
4701bcd93bd83faa6a3cc16743f6a5882c6e3e11
[]
no_license
danielspring-crypto/tritrade
0c1f961138b9e4892d53ece98b54094be0e4c4b9
6fc7c644c1657a7744703cd144be7fbb5320397c
refs/heads/master
2022-12-04T13:21:07.761942
2020-08-28T00:02:36
2020-08-28T00:02:36
290,908,032
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Generated by Django 3.1 on 2020-08-22 04:01 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('coupons', '0001_initial'), ('orders', '0001_initial'), ] operations = [ ...
[ "you@example.com" ]
you@example.com
5e245a3eafcd6474ff09b5de1fc61d585c86d74f
74d66269984cec1527dbfb5aa9772775e2198ad6
/machin/parallel/server/param_server.py
be87a1d7ca8918fc9d2cbd753130e994dcf7e28f
[ "MIT" ]
permissive
Silas-Asamoah/machin
34dfa0717ba266a70e7ae11d60bf0055f222b2b3
af1b5d825e27a98deab7130eedbe1c2505dacf9d
refs/heads/master
2023-01-28T21:17:42.690424
2020-12-05T09:18:36
2020-12-05T09:18:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,172
py
from typing import Any, Union, List from random import choice from copy import deepcopy from queue import Queue from threading import Event import enum import torch as t import torch.nn as nn from machin.parallel.thread import Thread from machin.parallel.distributed import RpcGroup from machin.utils.prepare import pr...
[ "hanhanmumuqq@163.com" ]
hanhanmumuqq@163.com
eff6edbbee741710b0632dba047bfdf05bcd4856
a0883db90ffd673650af8ffab53c158f4cd21b32
/venv/Lib/site-packages/win32comext/axscript/test/leakTest.py
c228f447182c3ff5f84da194484524df3b8d8f67
[]
no_license
deshudiosh/PyMs
3bda141378cbc0b847f19f70fe461625feed5a4b
c06749db6e7e53f96686d07f9d2b44b2f1290832
refs/heads/master
2020-03-26T22:11:11.574421
2018-08-24T16:52:48
2018-08-24T16:52:48
145,438,274
1
0
null
null
null
null
UTF-8
Python
false
false
4,562
py
import sys from win32com.axscript.server.error import Exception from win32com.axscript import axscript from win32com.axscript.server import axsite import pythoncom from win32com.server import util, connect import win32com.server.policy class MySite(axsite.AXSite): def OnScriptError(self, error): exc = error.Get...
[ "deshudiosh@gmail.com" ]
deshudiosh@gmail.com
d673b62e680b4d86249bac3164dfec8faef49055
3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9
/SimG4CMS/ShowerLibraryProducer/python/__init__.py
5f4692dfe95ccd32b24af996341d7813c9d43441
[]
no_license
sextonkennedy/cmssw-ib
c2e85b5ffa1269505597025e55db4ffee896a6c3
e04f4c26752e0775bd3cffd3a936b288ee7b0268
HEAD
2016-09-01T20:09:33.163593
2013-04-26T12:05:17
2013-04-29T16:40:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
#Automatically created by SCRAM import os __path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/SimG4CMS/ShowerLibraryProducer/',1)[0])+'/cfipython/slc6_amd64_gcc480/SimG4CMS/ShowerLibraryProducer')
[ "giulio.eulisse@cern.ch" ]
giulio.eulisse@cern.ch
dce37f9b796d24bea56707b6c9e337138d39b7c8
22767a6d0d42b040846e024fb8f2276df89e832d
/LiDar_read3.py
f4efcdbf937325390d6a951eb4ef82d9f3266cfc
[]
no_license
hhs732/snowforest_modeling
a42bb7387ac02c864c1cc8ca88e165a40e0ba4db
4c40d854b8c45a3614c44a33798800e232b4109a
refs/heads/master
2020-03-21T16:36:00.416250
2019-07-03T22:06:46
2019-07-03T22:06:46
138,780,442
0
0
null
null
null
null
UTF-8
Python
false
false
6,166
py
import laspy as ls import numpy as np import scipy from scipy.spatial.kdtree import KDTree import matplotlib.pyplot as plt class K_Means: def __init__(self, numOfClusters=2, init_centroids=None): self.numOfClusters = numOfClusters self.centroids={} for i in range(self.numOfClusters)...
[ "safa.hamideh@gmail.com" ]
safa.hamideh@gmail.com
f7cd7280a8fe0e76ea694356b8e664387c4b0dd8
187a6558f3c7cb6234164677a2bda2e73c26eaaf
/jdcloud_sdk/services/edcps/apis/DescribeInstanceRaidRequest.py
ffe9791f476342b0cfcad38c975a790eaf25c446
[ "Apache-2.0" ]
permissive
jdcloud-api/jdcloud-sdk-python
4d2db584acc2620b7a866af82d21658cdd7cc227
3d1c50ed9117304d3b77a21babe899f939ae91cd
refs/heads/master
2023-09-04T02:51:08.335168
2023-08-30T12:00:25
2023-08-30T12:00:25
126,276,169
18
36
Apache-2.0
2023-09-07T06:54:49
2018-03-22T03:47:02
Python
UTF-8
Python
false
false
1,552
py
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
[ "tancong@jd.com" ]
tancong@jd.com
b64a06b58deef6f2abcc090b1cd40042604dfc0f
e315715504e54e2c4af04abec0e179d233a003de
/example.py
67dd869c62199db4639d2f4c85dd184b6b038086
[ "MIT" ]
permissive
CaliDog/tachikoma
d80ce280c33a6bf39644fb7eb6bc3af0186b4db6
3955ff97c14ba9747c42324cb6a2955419c6e71e
refs/heads/master
2021-09-22T09:49:54.030468
2018-09-07T16:38:03
2018-09-07T16:38:03
108,040,909
21
3
null
2018-09-07T16:10:15
2017-10-23T21:20:50
Python
UTF-8
Python
false
false
511
py
import tachikoma from tachikoma import analyzers from tachikoma import generators from tachikoma import emitters pipeline = tachikoma.Pipeline( generators={ "slack": generators.SlackGenerator(), "aws.iam": generators.AWSACMGenerator(), "aws.acm": generators.AWSIAMGenerator(), }, an...
[ "fitblip@gmail.com" ]
fitblip@gmail.com
85160f261e1ed99c59d0e5085f797298064e8998
dcbef06d5a00f07756339b9e62c684dec2fee425
/nuitka/tools/specialize/SpecializeC.py
0dd61843d7d8de62e585d9e669d6677290478921
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
39,625
py
# Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
e6b701c4e85ace8f8f42cbd77905813b1d824f87
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/insights/v20191017preview/get_private_link_scoped_resource.py
0294eb716232b389cedb14f651bdf588d455d348
[ "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
3,981
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...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
832eeb22d69bb86c317491a4cdcc67e51034ff48
f40e5c91a18fc5c7e0b4d96fe964a493f924e958
/supervised_learning/0x00-binary_classification/15-neural_network.py
8741dca8460da62b04755c3d6e890d729cf38caa
[]
no_license
jgadelugo/holbertonschool-machine_learning
ab46f71477998371ca5e3623455d61fe334ab221
e20b284d5f1841952104d7d9a0274cff80eb304d
refs/heads/master
2023-02-01T03:52:43.723569
2020-12-10T19:28:57
2020-12-10T19:28:57
256,043,170
1
0
null
null
null
null
UTF-8
Python
false
false
4,674
py
#!/usr/bin/env python3 """ Class defines a single neuron performing binary classification """ import numpy as np import matplotlib.pyplot as plt class NeuralNetwork: """ class neuron""" def __init__(self, nx, nodes): """ initialize """ # nx is the number of input features if not isins...
[ "alvarezdelugo.jose@gmail.com" ]
alvarezdelugo.jose@gmail.com
fc39807e7990bb84b9dd55a1058e1b467a921a81
8b22963b0ac1581249552ed9f61e6730b0d1898f
/src/encoded/commands/dev_servers.py
e2a122a2d970812b135f6b3e7e7db1bfc68835d9
[ "MIT" ]
permissive
brianleesc/encoded
a070e07f59c59a19220908fc7f8f71db015a1c73
0d2961f04cf542f78e6f29c9a08da1b2913782c5
refs/heads/master
2021-01-17T12:11:10.578814
2015-02-06T21:38:13
2015-02-06T21:38:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,334
py
"""\ Examples For the development.ini you must supply the paster app name: %(prog)s development.ini --app-name app --init --clear """ from pyramid.paster import get_app import atexit import logging import os.path import select import shutil import sys EPILOG = __doc__ logger = logging.getLogger(__name__) def...
[ "laurence@lrowe.co.uk" ]
laurence@lrowe.co.uk
eab02dfd11097c80f771656034ab7171b20fe987
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/196/usersdata/264/76878/submittedfiles/atividade.py
3740bbe7d78d83dbfaf5e714b13d553895fe31d1
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
# -*- coding: utf-8 -*- import math n= int(input('Digite o valor de n: ')) a=0 s=0 i=1 numerador=1 if (n<0): n= n*(-1) else: n=n while (i<=n): s= (numerador)/(n+a)+s i=i+1 a=a-1 numerador= numerador + 1 print ('%.5f' %s)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
aaaa1b695c26d13e55cfc7fffabe7e8d8b5ce84f
50f04c633f36e9d64c40c4f1b434ed0c24e447c7
/tkinter-examples/left_tab.py
76d9d1583711f1ae8196f13e7fddc2e109f2d34b
[]
no_license
sarahchou/python-practice
883ba7dedd60b2cc18d5d73ef7d3cbb74f09dede
2a3d10144b74460d8ec513e3c7d49bdb48107596
refs/heads/master
2022-11-11T10:06:12.944579
2018-06-11T22:14:06
2018-06-11T22:14:06
136,985,077
0
1
null
2022-10-20T08:48:36
2018-06-11T21:54:46
Python
UTF-8
Python
false
false
1,620
py
import tkinter as tk from tkinter import ttk class TFEnvSelectionScreen(tk.Frame): """ This is where we give the user the chance to select their Terraform environment. Uses a drop down menu for environment selection. """ def __init__(self, parent, controller): root = tk.Tk() style...
[ "chou.s@husky.neu.edu" ]
chou.s@husky.neu.edu
3fbd64a3aa44722bb31c298a48bfc16e304bc51d
f55d682c106fad3e81c32e0fa5a611802ce8954a
/src/radical/pilot/agent/scheduler/continuous.py
ffe101128f097656a739860ccd206c7ed621fbcf
[ "MIT" ]
permissive
jhprinz/radical.pilot
c65f1791177d62bc4e1404d9c39afe5537862991
9f3dd4c96e72d18680e66df7c6f17ea732ad8769
refs/heads/devel
2021-04-29T05:07:24.646329
2016-12-21T12:12:44
2016-12-21T12:12:44
78,015,300
0
0
null
2017-01-04T12:53:08
2017-01-04T12:53:08
null
UTF-8
Python
false
false
10,929
py
__copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu" __license__ = "MIT" import time import radical.utils as ru from ... import utils as rpu from ... import states as rps from ... import constants as rpc from .base import AgentSchedulingComponent # =========================================...
[ "andre@merzky.net" ]
andre@merzky.net
1591790717be37542d2bbec2c3978a7a11fec374
732c0303ecfe8e915548846144e2a257d0ba0bd0
/prob139.py
dea51619317d90ea968cedd82d869736ac4078c6
[]
no_license
mercurium/proj_euler
e2c041d833b80369f0e7b7aa493a9ff5c1e22d91
a8326af80cac040fa515350cf9972dca6f116f82
refs/heads/master
2020-04-06T05:24:31.185785
2017-05-06T23:50:56
2017-05-06T23:50:56
9,540,200
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
import time START = time.time() SIZE = 10**8 pythagTriplet = set() count = 0 for m in xrange(1,SIZE): if 2*m*(m+1) > SIZE: break diff = 2 if m%2 == 0 else 1 nLim = SIZE/(2*m) - m for n in xrange(1,min(m,nLim+1),diff): d,f = m*m,n*n a,b,c = d-f,2*m*n,d+f if a+b+c >=...
[ "jerrychen434@gmail.com" ]
jerrychen434@gmail.com
de019a55e97ed0bbb01a449f33d1985240fc4ea7
c64f865810c4b81cd4f95812d3ad9ea7798bf49d
/bw2io/extractors/simapro_csv.py
0ff29832fcda7a850a708b185224172e61eb11bc
[]
permissive
pjamesjoyce/brightway2-io
e4fc4ec218143fa90b83f1b09fc0f1f27861a83f
142fc26e2ffc47d8ec474386ee93ab2737a089ce
refs/heads/master
2022-04-27T14:59:37.436175
2020-03-12T23:44:08
2020-03-12T23:44:08
249,489,813
0
0
BSD-3-Clause
2022-04-13T11:10:59
2020-03-23T16:51:26
null
UTF-8
Python
false
false
21,006
py
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from eight import * from ..utils import activity_hash, UnicodeCSVReader, default_delimiter from ..compatibility import SIMAPRO_BIOSPHERE, SIMAPRO_BIO_SUBCATEGORIES from ..strategies.simapro import normalize_simapro_formulae from bw2data im...
[ "cmutel@gmail.com" ]
cmutel@gmail.com
ca64a4a361b84710defb666ee771b4f6d6ebac6a
d488f052805a87b5c4b124ca93494bc9b78620f7
/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/accesscontextmanager/v1alpha/resources.py
a27052377017c6cf020e34d96072355a779e411c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
PacktPublishing/DevOps-Fundamentals
5ce1fc938db66b420691aa8106ecfb3f9ceb1ace
60597e831e08325c7e51e8557591917f7c417275
refs/heads/master
2023-02-02T04:48:15.346907
2023-01-30T08:33:35
2023-01-30T08:33:35
131,293,311
13
19
null
null
null
null
UTF-8
Python
false
false
1,840
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "saneetk@packtpub.com" ]
saneetk@packtpub.com
6fffa9923854cd0c644f08969cf10ecff8501431
b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e
/pyfile/pyfm-008/pyglfm.py
d00ac3cee42a39f6b9bc2413f059353954c0f66f
[]
no_license
pglen/pgpygtk
4d1405478a714f003984cf3e3db04ff1f767470b
33f58010e304f1a312f2356de453ecedb7aa21ef
refs/heads/master
2021-01-22T01:18:52.238415
2019-01-01T01:37:24
2019-01-01T01:37:24
102,215,955
0
0
null
null
null
null
UTF-8
Python
false
false
23,486
py
#!/usr/bin/env python # 3D File Manager in Python OpenGL # # Copyright by Peter Glen; Jan, 2015 # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both th...
[ "peterglen99@gmail.com" ]
peterglen99@gmail.com
5204f8362a9e26be1b475cbda137fdacdc7ac103
030b1c1293ae3d31867839883484c6c990bedf6c
/data_utils/prepare_training_data.py
a616eec25fa6b0a9ed456cfcf8af398a3e86e854
[]
no_license
nmonath/Coref-tf
7427cabf9835deb8aab2c9519dbd4ed3134f9634
5ee8e240b55e14f95bb3691349092ded3ffedcc0
refs/heads/master
2022-11-17T23:19:31.768971
2020-07-19T08:44:50
2020-07-19T08:44:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,112
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import re import sys import json import collections REPO_PATH = "/".join(os.path.realpath(__file__).split("/")[:-2]) if REPO_PATH not in sys.path: sys.path.insert(0, REPO_PATH) from utils imp...
[ "xiaoyli@outlook.com" ]
xiaoyli@outlook.com
781b936bd6b7a6d6bca1a2cd172a259c68c9c05d
368b89707805e8ac6d5baf26a11b280369995ca5
/src/server/db/__init__.py
a67a6f3951ae05d2b8532be1e5c10e3a9612a4c5
[]
no_license
cheng93/fof
2940d739c1399c88db06b5c99e8075e918fbf060
0115a6d3f6775c5c1c8a30cfd7f6f7f9006e75fe
refs/heads/develop
2020-03-19T06:55:20.274365
2018-07-25T22:14:11
2018-07-25T22:14:11
136,067,138
0
0
null
2018-07-25T22:14:12
2018-06-04T18:33:35
Python
UTF-8
Python
false
false
489
py
from db.conference import conference from db.division import division from db.draft import draft from db.game import game from db.player import player from db.player_history import player_history from db.position import position from db.team import team from db.staff import staff from db.staff_group import staff_group ...
[ "derek.c@hotmail.co.uk" ]
derek.c@hotmail.co.uk
c749d8f7dbf564892ee366d7c3c6f7047ba94386
03dad0fb0d76b61524ab172e342e3e4ec22614d7
/blender/arm/assets.py
cad343ada758334d3d277a06a79765bf10c75dff
[ "GPL-2.0-only", "Zlib" ]
permissive
ceostevenjrogers/armory
1739f1ddec20d7c720baaa7fd4952d14872c375a
c50a086d244dc2acac102ba91cb33e4b47bf40be
refs/heads/master
2020-04-09T11:17:06.347466
2018-12-02T15:45:43
2018-12-02T15:45:43
160,304,146
1
0
Zlib
2018-12-04T05:33:45
2018-12-04T05:33:44
null
UTF-8
Python
false
false
5,194
py
import shutil import os import stat import bpy import arm.utils assets = [] reserved_names = ['return.'] khafile_defs = [] khafile_defs_last = [] embedded_data = [] shaders = [] shaders_last = [] shaders_external = [] shader_datas = [] shader_passes = [] shader_passes_assets = {} shader_cons = {} def reset(): glo...
[ "lubos.lenco@gmail.com" ]
lubos.lenco@gmail.com
b7461bb69fa37381ee883fe28d2995c0f9a596d9
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/xcp2k/classes/_check_spline4.py
594c19bac098d7a9a6471e37e50d007ad70eca84
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
from xcp2k.inputsection import InputSection from _each309 import _each309 class _check_spline4(InputSection): def __init__(self): InputSection.__init__(self) self.Section_parameters = None self.Add_last = None self.Common_iteration_levels = None self.Filename = None ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
149c01d58071fd26c34db132b17aa214201a0652
3bcb4cba2caa77acf7e418455c29074d06553f7e
/scripts/files-touched-check.py
dc8077d357f74af375dae10523da758a621226c1
[]
no_license
eleccoin/gitian.sigs
7c02be84ee2dbf05334b1863c05e0f860ee5f0d8
056e34324642b28659d7b47832115bd3358b17fa
refs/heads/master
2021-07-15T23:36:46.830658
2021-02-11T11:18:58
2021-02-11T11:18:58
237,335,445
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
#!/usr/bin/env python3 # Copyright (c) 2018 The Eleccoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os import sys import subprocess travis_commit_range = os.getenv('TRAVIS_COMMIT_RANGE') if not travis_...
[ "unify@eleccoin.org" ]
unify@eleccoin.org
5ea95e780de03641bc3fa55a4a4d96545eb0e332
a1f6290c078b3d9bd004c777972ce4d5bc8af749
/IVote/.history/app_20211026134219.py
716bafce93fc77cff60084c9051fa852e2da6c98
[]
no_license
CS699-IITB-Autumn-2021/project-alpha_team
2803b99b49dcfe6f1acdcdf768791d58e0441d05
d3a7105d6d0d702d4b31a80a331b3772a03f2428
refs/heads/master
2023-08-19T17:32:01.401161
2021-10-27T19:14:08
2021-10-27T19:14:08
413,135,878
0
0
null
null
null
null
UTF-8
Python
false
false
7,419
py
from posixpath import lexists import sqlite3 import os.path from flask import Flask, render_template, request,redirect,session from flask.helpers import url_for from datetime import date from datetime import datetime from pathlib import Path from werkzeug.utils import redirect from generateResult import generateResults...
[ "ashwinpatidar609@gmail.com" ]
ashwinpatidar609@gmail.com
626020df48e5f7b97d39391e1c4073a4c6431329
f3b233e5053e28fa95c549017bd75a30456eb50c
/p38a_input/L2S/2S-2L_wat_20Abox/set_1ns_equi.py
312c2ffe7eec84ca46369451358d2b944b6fa62c
[]
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
915
py
import os dir = '/mnt/scratch/songlin3/run/p38a/L2S/wat_20Abox/ti_one-step/2S_2L/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi.in' temp_pbs = filesdir + 'temp_1ns_equi.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 in ...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
a1c9ce48603c67ab62bd83e7a1b5276abec33b83
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03026/s122350460.py
02e08d83c023e291595149871e806ce417d61dfc
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
#D問題 import heapq N = int(input()) AB = [[] for i in range(N)] for i in range(N-1): a,b = map(int,input().split()) a-=1 b-=1 AB[a].append(b) AB[b].append(a) C = list(map(int,input().split())) C.sort(reverse=True) var = [0 for i in range(N)] var[0] = C[0] Q = [] heapq.heappush(Q,0) ind = 1 for...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
910c11f006b429ae64433b34f69b78eb30c952c9
cb0bde8ab641d5e411e91477728ade090836b729
/sdk/python/pulumi_azure_nextgen/datashare/v20200901/list_share_subscription_source_share_synchronization_settings.py
fc3e394afb17f91b49ec35a8c117a7a0f398233d
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
rchamorro/pulumi-azure-nextgen
7debd444063f0f9810ac0ee5fe11e7e8913b4886
09987cba1c466657730a23f5083aa62ec3dc8247
refs/heads/master
2023-03-03T09:32:59.634185
2021-02-10T16:13:24
2021-02-10T16:13:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,670
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 from...
[ "noreply@github.com" ]
rchamorro.noreply@github.com
f5e052b7c50e268c48c740cf42af38e32e675ace
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02399/s909319325.py
32d9c6ecb2bc6766c355125c62d79130e5abb413
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
(a,b) = (int(i) for i in input().split()) d = a // b r = a % b f = a / b print('{0} {1} {2:.8f}'.format(d,r,f))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c4bf1aaa0079951e7f08ba9f8ba36f87a8665688
7b1a5db0a067766a9805fe04105f6c7f9ff131f3
/pysal/lib/cg/ops/_accessors.py
fee7fd6a8618795c68306552da8fcaf9a7104661
[]
permissive
ocefpaf/pysal
2d25b9f3a8bd87a7be3f96b825995a185624e1d0
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
refs/heads/master
2020-06-26T17:13:06.016203
2019-07-31T19:54:35
2019-07-31T19:54:35
199,696,188
0
0
BSD-3-Clause
2019-07-30T17:17:19
2019-07-30T17:17:18
null
UTF-8
Python
false
false
1,368
py
import functools as _f __all__ = [ 'area', 'bbox', 'bounding_box', 'centroid', 'holes', 'len', 'parts', 'perimeter', 'segments', 'vertices'] def get_attr(df, geom_col='geometry', inplace=False, attr=None): outval = df[geom_col].apply(lambda x: x.__getattribute__(attr)) if inplace: outcol ...
[ "sjsrey@gmail.com" ]
sjsrey@gmail.com
1f2497cd5546b8b5809730d42af84ca132224a9b
daa5a7e8deaa5b2b1db76a907077a8c1bb3313b2
/problem14/p14.py
f9e25df205ff783be0670d4bc40b485f8cc2bca3
[]
no_license
janFrancoo/Project-Euler
175933ca643ccca42cf1b7a27cc49694fe22da5c
24f7d913939883786aaf68f485b31eda99f657b3
refs/heads/master
2020-06-19T19:11:35.681184
2019-11-23T06:54:21
2019-11-23T06:54:21
196,838,426
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
def chain_length(number, limit, chain): length = 1 copyNum = number while number != 1: if number < limit: if chain[number] > 0: length += chain[number] break if number % 2 == 0: number = number // 2 else: number = (n...
[ "noreply@github.com" ]
janFrancoo.noreply@github.com
77c7244b91eb34417f48b52335e55d62f077c237
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03210/s465817633.py
de6f12b053fb956866a6a4cb9c9b6a6c7f24de52
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
import sys from bisect import * from heapq import * from collections import * from itertools import * from functools import * from math import * from fractions import * sys.setrecursionlimit(100000000) input = lambda: sys.stdin.readline().rstrip() def main(): print('YES' if int(input()) in [3, 5, 7] else 'NO') m...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5ef6fb29abe779f4c919e528eceadcae6e5b6d6c
f0fefeafdc4836fa76c5ccd493a40470839a61de
/core/virtualNetworkFunction.py
193ceb2a03572f715a42de65de2f5257881fcb2a
[]
no_license
wuyangzhang/vnf
bb94b43bc29e78f8e218b4c0da7b32f12682c1e9
26e524f4efa5f161dac071169448cb7bef810cdd
refs/heads/master
2022-11-10T02:25:53.743598
2020-06-19T19:41:44
2020-06-19T19:41:44
271,430,873
0
0
null
null
null
null
UTF-8
Python
false
false
1,971
py
import random import uuid class VirtualNetworkFunction: def __init__(self, name, cpu, mem, thr): self.id = uuid.uuid4() self.name = name self.CPU = cpu # count self.memory = mem # GB self.throughput = thr # Mbps self.attached_server = None def __str__(self): ...
[ "you@example.com" ]
you@example.com
1f4c242409eb31a5e3cf9e347891200845218a79
c33496682b760deac61fedecba3e82ce4e41dfde
/scripts/e284.py
12aa868641e9ef20219b57ffb0df9a540a6225c2
[ "MIT" ]
permissive
ferasalsaab/neuralnilm_prototype
c5e9cde02d475ac499b15fea62143e76adff07d0
2119292e7d5c8a137797ad3c9abf9f37e7f749af
refs/heads/master
2020-04-16T14:38:03.615279
2018-01-29T15:30:43
2018-01-29T15:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,751
py
from __future__ import print_function, division import matplotlib import logging from sys import stdout matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! from neuralnilm import (Net, RealApplianceSource, BLSTMLayer, DimshuffleLayer, Bidirectio...
[ "jack-list@xlk.org.uk" ]
jack-list@xlk.org.uk
5517778c89fa3a66841d7073b230af2f660c2348
c652797f5303bb7102967fc6603e5704025afb36
/gamelayer/boilerplates/scene/extension.py
3fec054ba472343048494727bd1b360db95fb06e
[ "MIT" ]
permissive
Windspar/Gamelayer
fc1ce499cccb6530a4dcd446f9d86fd44026e564
65e1cf11548bc02bc49348eb265c209172c14844
refs/heads/master
2022-06-13T08:06:37.828771
2020-05-07T17:17:59
2020-05-07T17:17:59
258,047,982
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
class Extension: def __init__(self): self._logic = [] self._extension = [] def add(self, callback): self._extension.append(callback) def add_logic(self, callback): self._logic.append(callback) def process(self, manager): for extension in self._extension: ...
[ "kdrakemagi@gmail.com" ]
kdrakemagi@gmail.com
12f9e2c63739664ce40db1a2bc6707196ddec657
2119953dd04916fa2adf3f42a487f3f9754d1f66
/modules/google-earth-engine/docker/src/sepal/image_operation.py
67fc4e0360c44bc318732e200a493abe58beb22a
[ "MIT" ]
permissive
sarahwertz/sepal
91d12e3317cd07ad4c99469d5b6211d74013b330
efbbc33ac99db332fc13f9dfd4c777a8d2c1b41e
refs/heads/master
2020-06-11T07:42:08.835556
2019-05-27T14:21:28
2019-05-27T14:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,949
py
import ee import math class ImageOperation(object): def __init__(self, image): super(ImageOperation, self).__init__() self.image = image self.input_band_names = image.bandNames() def select(self, name): return self.image.select(name) def set(self, name, toAdd, args={}): ...
[ "daniel.wiell@fao.org" ]
daniel.wiell@fao.org
5af9e7c4d040127cae9671591ab150e165fef3b5
354d28102374bf51bc6e74dd8d952dc036925356
/user_guide/src/examples/pivot/lazy.py
8ce4ef07d645efa05a0f472e162dd43319fe4fae
[]
no_license
simonw/polars-book
8c30c3707716ea1134a5a92e938055bcffd84b36
841f86dcc0f7c338de5eb1b34efbc405922c74ef
refs/heads/master
2023-08-30T10:05:35.360224
2021-11-14T07:06:36
2021-11-14T07:06:36
428,919,663
0
0
null
2021-11-17T05:27:07
2021-11-17T05:27:06
null
UTF-8
Python
false
false
144
py
from .dataset import df q = df.lazy().map(lambda df: df.groupby("foo").pivot(pivot_column="bar", values_column="N").first()) out = q.collect()
[ "ritchie46@gmail.com" ]
ritchie46@gmail.com
84465ec3badfad506dd593f543fb4098424ac9eb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_organists.py
be4d1d8e2ad43f99e39a4fc06c52700fa9cc7b7c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
from xai.brain.wordbase.nouns._organist import _ORGANIST #calss header class _ORGANISTS(_ORGANIST, ): def __init__(self,): _ORGANIST.__init__(self) self.name = "ORGANISTS" self.specie = 'nouns' self.basic = "organist" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
61948e3b28ade065e37d16bf8131afe690b1ce63
5e381364c2ab31ff3618369085afffba6caa8edb
/recipes/fakeit/all/conanfile.py
1cd82fc64805d459038f563de4e2470341513252
[ "MIT" ]
permissive
CAMOBAP/conan-center-index
16aea68a6d22da22831ba985773125e8eda08f00
67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1
refs/heads/master
2023-07-30T08:58:57.285571
2021-10-02T14:57:54
2021-10-02T14:57:54
323,262,699
1
0
MIT
2021-05-29T13:37:04
2020-12-21T07:30:02
Python
UTF-8
Python
false
false
2,011
py
from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration import os class FakeItConan(ConanFile): name = "fakeit" license = "MIT" homepage = "https://github.com/eranpeer/FakeIt" url = "https://github.com/conan-io/conan-center-index" description = "C++ mocking made eas...
[ "noreply@github.com" ]
CAMOBAP.noreply@github.com
5ab4128daad6fc7ec81e3f308d5ded319af70f7c
18219d0fc95936ded56fe44f9a65ecb27f015232
/35 Laboratory Converter units.py
ed1ee2497ae870063545fbc0a031cc8248d0e0f6
[]
no_license
JDavid121/Script-Curso-Cisco-Python
20a61b91b09376dcaef54f8ae5f86fe252de5c33
6d68c17ff3c3826e9fc609d110ce9d0e6ebf718b
refs/heads/master
2021-05-18T04:54:59.948970
2020-03-29T20:19:53
2020-03-29T20:19:53
251,120,139
0
0
null
null
null
null
UTF-8
Python
false
false
2,003
py
""" Programa que convierte millas de kilometros y viceversa """ """ 1 milla = 1.61 km """ #Programa que transforma millas a kilometros #****************************************************************** print("Programa que transforma millas a kilometros") mile = input("Ingresar la distancia en millas\n\t") mi...
[ "noreply@github.com" ]
JDavid121.noreply@github.com
ba12f92e88b5290922b85f50d0b6bf924df5dbe7
cd9f819b968def4f9b57448bdd926dc5ffa06671
/B_輕鬆學python3_孫宏明_碁峰_2017/29-1/Graph/main.py
e65b7e9e5b5aa31d70a8bcc2c37da8a8c20e3540
[]
no_license
AaronCHH/jb_pyoop
06c67f3c17e722cf18147be4ae0fac81726e4cbc
356baf0963cf216db5db7e11fb67234ff9b31b68
refs/heads/main
2023-04-02T05:55:27.477763
2021-04-07T01:48:04
2021-04-07T01:48:13
344,676,005
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
import shape as sh # 建立Circle、Rectangle和Triangle類別的物件 c = sh.Circle(10) r = sh.Rectangle(5, 2) t = sh.Triangle(8, 3) # 把物件加入Tuple資料組 shapes = c, r, t # 用For迴圈顯示每一個物件的內容和面積 for s in shapes: s.show_shape_info() print('面積:' + str(s.get_area()))
[ "aaronhsu219@gmail.com" ]
aaronhsu219@gmail.com
e3fbb8c9d7fd01422301e9908dc1df4fb26ab066
f714db4463dd37fc33382364dc4b1963a9053e49
/tests/sentry_plugins/pivotal/test_pivotal_plugin.py
cf8294f3310c500617cfeb7ce3dbf7f8b51b6967
[ "BUSL-1.1", "Apache-2.0" ]
permissive
macher91/sentry
92171c2ad23564bf52627fcd711855685b138cbd
dd94d574403c95eaea6d4ccf93526577f3d9261b
refs/heads/master
2021-07-07T08:23:53.339912
2020-07-21T08:03:55
2020-07-21T08:03:55
140,079,930
0
0
BSD-3-Clause
2020-05-13T11:28:35
2018-07-07T11:50:48
Python
UTF-8
Python
false
false
2,171
py
from __future__ import absolute_import from exam import fixture from django.core.urlresolvers import reverse from sentry.testutils import PluginTestCase from sentry.utils import json from sentry_plugins.pivotal.plugin import PivotalPlugin class PivotalPluginTest(PluginTestCase): @fixture def plugin(self): ...
[ "noreply@github.com" ]
macher91.noreply@github.com
c818fa2fbe0a931e015d9c72ca30b11428d45ae9
0983a837b8ca96c215a3bad0dfda0aba9b79b89f
/single_header/preprocess.py
5170d044c37f03d160ccb053d2efc9947a1cb873
[]
no_license
omardrwch/rlcpp
53a950d3f3b4e75010c1acf7d047b3fe48c99720
5b12133c3f85cd2a7158915914beace31fdcd13e
refs/heads/master
2020-08-13T15:38:28.366012
2020-03-07T20:40:09
2020-03-07T20:40:09
214,994,055
10
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
import os import shutil import os dir_path = os.path.dirname(os.path.realpath(__file__)) project_path = os.path.dirname(dir_path) dir_to_copy = os.path.join(project_path, 'rlcpp') dir_destination = os.path.join(dir_path, 'all_files') if not os.path.exists(dir_destination): os.makedirs(dir_destination) # Copy al...
[ "omar.drwch@gmail.com" ]
omar.drwch@gmail.com
b11f3da5b0ec58c42441646efad1247fda2d1a9e
147715fa98fe40b919784ef703dcddb8e8ab37c4
/indy_common/config_helper.py
9250ac18b12a1047999603e56dc61347844a6a7a
[ "Apache-2.0" ]
permissive
RaghuVamz/indy-node
ae069bfe2766248937fb2662ec65736c305a5cd9
977249b9100de62290ed45e74f1df1c2a1c7afd9
refs/heads/master
2021-08-23T20:08:57.192581
2017-12-05T23:41:54
2017-12-05T23:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,321
py
import os from plenum.common.config_helper import PConfigHelper class ConfigHelper(PConfigHelper): @property def log_dir(self): return self.chroot_if_needed( os.path.join(self.config.LOG_DIR, self.config.NETWORK_NAME)) @property def genesis_dir(self): return self.chroot_...
[ "alexander.sherbakov@dsr-company.com" ]
alexander.sherbakov@dsr-company.com
20eb845f27d8f3d0b45c4495eab5e80b15e6fcc1
f0987e17aea6668158cd334c1fbacfe6286d3c77
/NITA/tests/unit/security/appsecure/test_apbr_commands.py
23646f813ef71033f238a57643ad7cc20473dad9
[]
no_license
fengyun4623/file
00bf21f952ea3f95ffc9fe18448b244b26b7fadb
3966c63d48557b0b94303896eed7a767593a4832
refs/heads/master
2023-04-02T05:01:25.066052
2020-07-29T16:15:31
2020-07-29T16:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,672
py
from mock import patch import unittest2 as unittest from mock import MagicMock from jnpr.toby.security.appsecure import apbr_commands from jnpr.toby.hldcl.juniper.security.srx import Srx class Response: def __init__(self, x=""): self.resp = x def response(self): return self.resp...
[ "srigupta@juniper.net" ]
srigupta@juniper.net
cec71b1e9805f047d5d4bdc58734967d935567e5
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pihNcNQXiYHSRW8Cv_12.py
26d083018c9ee0efaed8a96b8a45bd2fefe26834
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
def sort_by_length(lst): lst.sort(key = len) return lst
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e1d5705fadca5206369d9fc28471dee0f1be801f
ba60d3ccf11157abaf6c7bcf3a81aace27c6af88
/spoj/wtk.py
c87681f874913fd405f05378c83c0744d2e5991b
[]
no_license
eightnoteight/compro
9a09628593cdd3201f4d3bcf271f1ca6a4e5efca
1e5d32ee83e9d8f27623dee7262decad3d107bd5
refs/heads/master
2021-01-21T04:19:02.746824
2016-08-01T20:51:16
2016-08-01T20:51:16
44,669,361
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import print_function from sys import stdin try: range = xrange input = raw_input except: pass def wtk(n): ans = 1 for x in range(2, n + 1): ans = ((ans + (n + 1 - x) - 1) % x) + 1 return ans inp = stdin.readlines() for _...
[ "mr.eightnoteight@gmail.com" ]
mr.eightnoteight@gmail.com
5600718a422aecd517e3e3db0aa2ade322992a29
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1657.py
b6882f38110c00e2f3f7f2637ba12cf028460824
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
import math def ispalindrome(n): # ok, didn't really need this, but since i wrote it i might as well use it digits = [int(x) for x in str(n)] length = len(digits) # if even number of digits, we want to compare the first half to the second half # if odd, we don't want to compare the middle to itself, so the...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
06cdb1171a3fca287acf3cd73cf81f7a7ac189a4
63bc95150f6af526199454602e5689bfadc882ba
/12/ex12-4.py
b134b84938d34ba5eb34a0dc964e2c228b3343a3
[]
no_license
veenary/python-src
fd61d22a58d452ccb251402fecb0b7babd5372a7
d61374bc32b8ebe3b2be366a6de259680821a4e1
refs/heads/master
2023-03-17T10:07:27.704611
2021-03-10T01:31:56
2021-03-10T01:31:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
import matplotlib.pyplot as plt from matplotlib import rc rc('font', family='Malgun Gothic') xdata = ['안지영', '홍지수', '황예린'] ydata1 = [90, 85, 88] ydata2 = [83, 88, 91] plt.plot(xdata, ydata1, label='국어') plt.plot(xdata, ydata2, label='영어') plt.legend(loc='upper center') plt.title('세명 학생의 국어, 영어 성적') pl...
[ "park.cheongu@gmail.com" ]
park.cheongu@gmail.com
d6c67ffa4c48863a4c30baeec6a7167f27d0edd3
84868118de838472bca33c9f0455674e7e563d1b
/WLCG_GSoC_Task_Server/views.py
5f7a847621fab880c815c0a05099b392a92a3702
[ "Apache-2.0" ]
permissive
maany/MOOC-CA-Server
afa7b065fd5a059a94abec687236122ec6afd376
917109c7e5f37f3e7ee63ec0c5d1be3409b27f93
refs/heads/master
2022-12-12T12:03:52.430010
2019-03-12T13:46:06
2019-03-12T13:46:06
156,133,195
0
0
Apache-2.0
2022-12-08T01:01:48
2018-11-04T22:56:11
HTML
UTF-8
Python
false
false
392
py
from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.shortcuts import render from evaluator.models import Task, Applicant @login_required def profile(request): tasks = Task.objects.filter(applicant=request.user.applicant) context = { 'tasks': tasks,...
[ "imptodefeat@gmail.com" ]
imptodefeat@gmail.com
6279b7c4ae80c6d7996d9e4072efb25f43a2d80b
536538af28cfe40e10ff1ce469cd0f81e8b3a8fe
/majority_element_II.py
02813649ad35d4fef5a7d02c179be39c5526676a
[]
no_license
ShunKaiZhang/LeetCode
7e10bb4927ba8581a3a7dec39171eb821c258c34
ede2a2e19f27ef4adf6e57d6692216b8990cf62b
refs/heads/master
2021-09-01T07:41:03.255469
2017-12-25T19:22:18
2017-12-25T19:22:18
104,136,129
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# python3 # Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. # The algorithm should run in linear time and in O(1) space. # My solution class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: List[int] ...
[ "noreply@github.com" ]
ShunKaiZhang.noreply@github.com
a091cf762f8da9cecbb9794772a0d394ad9338f9
16fe74651e6692ea3d8d0302b40ac42f3d58e0ca
/Divide_Two_Integers.py
331dae5f9352e2e8f00995e3f8aaf0d11552e651
[ "MIT" ]
permissive
Ahmed--Mohsen/leetcode
7574f71b10dfb9582f62e856bbc2559d3b21b2a1
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
refs/heads/master
2021-01-18T14:34:06.987665
2015-12-23T21:17:27
2015-12-23T21:17:27
33,744,104
4
0
null
null
null
null
UTF-8
Python
false
false
528
py
""" Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. """ class Solution: # @return an integer def divide(self, dividend, divisor): p = abs(dividend) q = abs(divisor) ans = 0 while p >= q: counter = 0 while p >= (q << counter): # det...
[ "ahmed7890@gmail.com" ]
ahmed7890@gmail.com
55040119c5bec7c52ab31cb072da66f9e8f23c54
1719920a92f7194766624474b98d59ef8d6eddaf
/models/search_result.py
1e44051445d3173c464a9e9db35eddc2d60c9dd2
[ "MIT" ]
permissive
MIchaelMainer/msgraph-v10-models-python
cfa5e3a65ba675383975a99779763211ed9fa0a9
adad66363ebe151be2332f3ef74a664584385748
refs/heads/master
2020-03-19T12:51:06.370673
2018-06-08T00:16:12
2018-06-08T00:16:12
136,544,573
1
0
null
null
null
null
UTF-8
Python
false
false
945
py
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..one_drive_object_bas...
[ "mmainer@microsoft.com" ]
mmainer@microsoft.com
1098ae39b7e485b89db97e585ff61d78edb48860
1a66df726d2ecc20d6b5ff9d35dac4ea7ba5cb66
/upseto/recursivegit.py
2382959e2c66d5083c1f207a1d9b02424a21ec09
[ "Apache-2.0" ]
permissive
shlomimatichin/upseto
83c601d7a6d625d00fad3134fe9192dcfec73950
0fedc8b7d628b971d07b92b61c7a29431ad55d22
refs/heads/master
2021-01-15T11:06:41.285140
2015-03-05T13:22:38
2015-03-05T13:22:38
28,646,871
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
from upseto import gitwrapper from upseto import traverse import sys class RecursiveGit: def __init__(self, baseDir=".."): self._traverse = traverse.Traverse(baseDir) def run(self, mani, commandLine): git = gitwrapper.GitWrapper(".") sys.stdout.write('#upseto %s\n' % git.directory()) ...
[ "shlomi@stratoscale.com" ]
shlomi@stratoscale.com
442148600eefdf14a8d8ae73741d95f019dc6024
52b5773617a1b972a905de4d692540d26ff74926
/.history/permutations_20200723154912.py
faaf21e3ad0dd8cb060bd06a3f837bc62ea900d1
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
def perm(arr): # sort the array if len(arr) == 0: return 0 else: arr.sort() for i in range(len(arr)-1): if arr[i] +1 != arr[i+1]: return 0 return 1 print(perm([4,1,3,2]))
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
fe0f7faff241dde12ec27f6c4fd6b1011ef5bf46
2bebb669112e2955de612e7d0532fe545b609733
/goatools/semsim/termwise/wang.py
0228ed10453e6dc1055ce126d7f3dbcb4c539a3a
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
rexdwyer/goatools
008885ad534b73a1137fa59c9eb50e21b147f2ab
ef14f99844a2a42d36aa1ab2e40161b8bc7be78e
refs/heads/main
2022-12-31T06:08:31.203278
2020-10-15T01:14:59
2020-10-15T01:14:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,539
py
"""Wang's termwise semantic similarity for GO terms""" __copyright__ = "Copyright (C) 2020-present, DV Klopfenstein. All rights reserved." __author__ = "DV Klopfenstein" from goatools.gosubdag.gosubdag import GoSubDag from goatools.semsim.termwise.dag_a import DagA class SsWang: """Wang's termwise semantic simi...
[ "dvklopfenstein@users.noreply.github.com" ]
dvklopfenstein@users.noreply.github.com
88b31bcd1e68bb87db4eed1c8f9d1dc272541ee1
12e78946542250f64792bc6c1d8c8ff1ffecdaf7
/Python/OOP/bikes.py
3354bab3e9923ca80f29aa3f2dbd96f61c135e2b
[]
no_license
mkrabacher/CodingDojoAssignments
0fde5adf7223a9eac07a4867499a243e230a300e
4afef4aaf4f129fb56376e57d8be437d1f124521
refs/heads/master
2021-05-14T13:38:03.570533
2018-02-23T00:09:24
2018-02-23T00:09:24
113,722,808
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
class bike(object): def __init__(self, price, max_speed): bike.price = price bike.max_speed = max_speed bike.miles = 0 def display_info(self): print 'This bike costs {}, has a max speed of {}, and have been ridden {} miles total'.format(self.price, self.max_speed, self.miles) ...
[ "matt.krabacher@gmail.com" ]
matt.krabacher@gmail.com
45f245fa90ff36c4bd8ccba8af71faf3d28d06aa
1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e
/StatTools/test/test_morph.py
098bd9e136b860bf73ff5b65867dbd350b8bd07f
[]
no_license
uwcms/FinalStateAnalysis
f2be318546728621676a4b90ed2678b2560c94e6
bcb164a8e27d459a9ac438780f6c8730d3e856bf
refs/heads/miniAOD_9_4_0
2022-11-09T01:28:52.199025
2019-03-15T19:25:10
2019-03-15T19:25:10
5,201,989
5
32
null
2020-11-19T17:02:32
2012-07-27T07:51:18
Python
UTF-8
Python
false
false
646
py
''' Stupid tests of the th1fmorph tool ''' from FinalStateAnalysis.StatTools.morph import morph from rootpy.io import open, DoesNotExist file = open('$fsa/VHiggs/test/plotting/wh_shapes.root') hist1 = file.get('mmt_mumu_final_140_MuTauMass/VH140') hist2 = file.get('mmt_mumu_final_120_MuTauMass/VH120') hist130true ...
[ "Silvia.Taroni@cern.ch" ]
Silvia.Taroni@cern.ch
363cff7ddb7a55c545d517ea771c5a424f188146
7e9b45a66b3637cf571eb1e16c07dd888963d8ba
/ITcast/ITcast/spiders/itcast.py
a87e81bec5c50033e10d8550fb5f3e8c1c968117
[]
no_license
tusonggao/scrapy-scripts
60d4c7449819c6a2861c208c34f0fb8078ed94d4
2dd97c0a55e02c51a43c7a335c91ac64d8bbaf1b
refs/heads/master
2020-04-08T18:01:21.351922
2018-12-02T01:57:03
2018-12-02T01:57:03
159,590,699
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
# -*- coding: utf-8 -*- import scrapy class ItcastSpider(scrapy.Spider): name = 'itcast' allowed_domains = ['http://www.itcast.cn'] start_urls = ['http://http://www.itcast.cn/'] def parse(self, response): pass
[ "tusonggao@163.com" ]
tusonggao@163.com
435e68ce65d72b7e2bb3aa04ee15f26b39536bdf
cf1365736444f8bb4d29fcc220906e3a12672732
/collate_20161103_kidney_livetox.py
eeee2f440ad1eeab64133a4624ccca66badaa3b1
[]
no_license
jmuhlich/ramm_screening_data_processing
3be8c5b8a057335b1d530883d4d840a685a53149
5fcb65a7fef637ba77df251dfc45aef8962845bf
refs/heads/master
2020-04-14T14:15:18.730774
2017-05-23T14:33:22
2017-05-23T14:33:22
68,258,060
0
0
null
null
null
null
UTF-8
Python
false
false
10,399
py
from __future__ import division import os import glob import re import itertools import collections import zipfile import datetime import pandas as pd import dateutil from unipath import Path loc_columns = ['WellName', 'Row', 'Column'] plate_invariant_columns = [ 'ScreenName', 'ScreenID', 'PlateName', 'PlateID', ...
[ "jmuhlich@bitflood.org" ]
jmuhlich@bitflood.org
6a2fa3268aaa3900c0d2c08b01d2ad48f9be95f7
e5333b2e54f1adf2e5bc88a9a242234c5f15851a
/misoclib/com/liteeth/core/mac/core/crc.py
f08302b164d4733c2a5cc4d933ae70d2372c05e0
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hoangt/misoc
1aaf850c18bab5b18db1fcc788feb96afbbc464e
6c13879fb605a1ee2bd5a3b35669e093f9a4267b
refs/heads/master
2021-01-21T02:55:59.398987
2015-07-13T15:00:03
2015-07-13T15:25:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,639
py
from misoclib.com.liteeth.common import * class LiteEthMACCRCEngine(Module): """Cyclic Redundancy Check Engine Compute next CRC value from last CRC value and data input using an optimized asynchronous LFSR. Parameters ---------- data_width : int Width of the data bus. width : int...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
7529c1864d46cd2e1e57b64e66c2b36754ac89dc
1713334f9b68255f9adab70175c21f399d0460f3
/python/090_Subsets_II.py
520727cc72e1a7221eaa68275d4716961b9b0695
[ "MIT" ]
permissive
coy0725/leetcode
0a798b7adafe80f726e51c06c34835c4aa51b563
743a0bfa22402ec39858dc9c4c7dc531f825b953
refs/heads/master
2020-05-21T18:25:09.683714
2019-05-11T13:00:40
2019-05-11T13:00:40
186,132,894
2
0
MIT
2019-05-11T12:55:22
2019-05-11T12:55:21
null
UTF-8
Python
false
false
1,369
py
class Solution(object): # def subsetsWithDup(self, nums): # """ # :type nums: List[int] # :rtype: List[List[int]] # """ # nums.sort() # res = [] # for i in range(1 << len(nums)): # res.append(self.get_subsets(nums, i)) # # remove duplicate ...
[ "qiyuangong@gmail.com" ]
qiyuangong@gmail.com
8e6d62758f3ba2b4d14aabfcf98d67e54cdbf873
0809673304fe85a163898983c2cb4a0238b2456e
/tmp/ve_asus-rt-n14uhp-mrtg/lib/python3.4/_collections_abc.py
e4c1159a71158be1f13b05efc9d1e5db29e779e4
[ "Apache-2.0" ]
permissive
jasonwee/asus-rt-n14uhp-mrtg
244092292c94ff3382f88f6a385dae2aa6e4b1e1
4fa96c3406e32ea6631ce447db6d19d70b2cd061
refs/heads/master
2022-12-13T18:49:02.908213
2018-10-05T02:16:41
2018-10-05T02:16:41
25,589,776
3
1
Apache-2.0
2022-11-27T04:03:06
2014-10-22T15:42:28
Python
UTF-8
Python
false
false
38
py
/usr/lib/python3.4/_collections_abc.py
[ "peichieh@gmail.com" ]
peichieh@gmail.com
ea825aa8dfb7fdbdf0f38041fed13b0c901d9a7f
281c9bea63bf7d1188b40ae2cf3f2aa53f97a297
/sections/views.py
26113411fba416b064af202d600ebcb71728b3a6
[]
no_license
pydatageek/fazla
3ec13c5e8f4a621eb82e1d82e003e0e0e68f3657
0890de73f23e3f72b41095130d703a793745765e
refs/heads/master
2023-02-14T01:11:17.477576
2021-01-05T10:15:58
2021-01-05T10:15:58
294,544,698
0
0
null
null
null
null
UTF-8
Python
false
false
1,776
py
from django.contrib.messages.views import SuccessMessageMixin from django.shortcuts import render from django.urls import resolve, reverse_lazy from django.utils.translation import gettext_lazy as _ from django.views.defaults import server_error from django.views.generic import ( DetailView, ListView, TemplateView)...
[ "pydatageek@gmail.com" ]
pydatageek@gmail.com
241e3a94e942b64cd327a21199bf89a2fa868b9f
c522b0332ee42d01f1ee5bdd3cdd3d72eb9af24b
/venv/lib/python3.8/site-packages/lusid/models/transaction_set_configuration_data.py
451ff60c8d6a19320df52968e69d9e43274314de
[]
no_license
Jeffkent01coder/trackphone
e5aad6f99efb0f0c11f260d1f2a0b232d5453dfe
3570375938c7e947eb272d2cec1589202351141c
refs/heads/master
2023-05-10T22:27:40.255686
2021-06-02T10:23:17
2021-06-02T10:23:17
373,125,235
1
0
null
null
null
null
UTF-8
Python
false
false
5,941
py
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2820 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class TransactionSetConfigurationData(object): """N...
[ "geofreyerastus956@gmail.com" ]
geofreyerastus956@gmail.com
665c35990e477086523bce03d9fee6d46495ae84
e6f16fbba8fba750099252c3490f00079cb19101
/算法/350_两个数组的交集Ⅱ.py
ad88f718a1d9fe87106cf709d3b5ade3707c38aa
[]
no_license
hookeyplayer/exercise.io
0a36fbec9df6c24b60ff6f97de27d3d5ae7769d4
605c81cb44443efd974db9fa0a088ddcd5a96f0f
refs/heads/master
2023-06-20T17:03:20.310816
2021-07-31T12:50:21
2021-07-31T12:50:21
277,175,487
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
# 结果尊重实际的个数,含重复 from typing import List class Solution: def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]: nums2.sort() nums1.sort() ans = [] pos1, pos2 = 0, 0 while pos1 < len(nums1) and pos2 < len(nums2): if nums1[pos1] == nums2[pos2]: ans.append(nums1[po...
[ "noreply@github.com" ]
hookeyplayer.noreply@github.com
fa3d62dc6ea23306d2e45604b8b2469de665a70d
4ede96380f20c65e014f7e5748789c81a4700115
/enums/enum_example_pb2.py
89ed4506ac879d427eb539c122205ebaab314ea2
[]
no_license
DavidWalshe93/Python_Protobuf
1724689fc4d24c51d2bf40cb5ac2655355ed9aae
1af5ecf7ac9fd479b7e283d9cb5ef1c5dd54a94a
refs/heads/master
2022-04-20T08:04:38.660161
2020-04-18T00:26:51
2020-04-18T00:26:51
256,630,826
0
0
null
null
null
null
UTF-8
Python
false
true
4,370
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: enum_example.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflect...
[ "david.walshe93@gmail.com" ]
david.walshe93@gmail.com
be75614c6f9ae2e85a6876128bdb7b9c4a8628dd
cea49ef38528989f4d2383b980265d2bd7aa6114
/fabfile.py
cad1562f11cd007c73634bc5d8d7105dbd8a8f1d
[ "Apache-2.0" ]
permissive
pombredanne/lexibank
672560c8fd4480edc2761314ef1057db67a2f458
2b6133729c8288fe1bf80c3c3020689e3a35778b
refs/heads/master
2021-01-17T07:55:23.313670
2015-09-07T19:11:37
2015-09-07T19:11:37
null
0
0
null
null
null
null
UTF-8
Python
true
false
52
py
from clldfabric import tasks tasks.init('lexibank')
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
b13c1da60cd7c88594500929261c5c9b25d14f78
ffdd64174bee59665833535c9ae618abd6ddcc7a
/graphs_to_tensors.py
1be5bca997a64a463d7dbcb57d8ec8dceb298fed
[]
no_license
pengyuan2020/ProPPR-python
dee9e8e2713169af8538ac2cbc0a1f29c93f0d9a
2977e9e0801d94048d114df8349d13b52091a7a8
refs/heads/master
2022-04-10T06:29:45.588641
2017-12-21T00:50:53
2017-12-21T00:50:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,856
py
import numpy as np import networkx as nx import sparse import nltk import cPickle as pickle import os from setting import * from joblib import Parallel, delayed def get_proof_graph(ppr_grounded_line, feature_vector_size): graph = nx.DiGraph() array = ppr_grounded_line.strip().split(' ') query_example = a...
[ "harshjtrivedi94@gmail.com" ]
harshjtrivedi94@gmail.com
f0231d6bbd4a58f6b16cf5bba65790be6216608a
0d0b8236ff06027037d2a8a724d13a1866a9999c
/0x11-python-network_1/5-hbtn_header.py
34b55fdc04a4eacfad8cc0eaf47eda1070829434
[]
no_license
Danucas/holbertonschool-higher_level_programming
3f8e81a610bf80890280b764362b56ad8803e2df
b963d41af8bccf764dff67f80ea16f1184c0a96d
refs/heads/master
2022-07-31T05:53:57.046789
2020-05-21T21:29:54
2020-05-21T21:29:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
#!/usr/bin/python3 """ Python script to fetch an https request """ import requests import sys def main(): response = requests.get(sys.argv[1]) try: print(response.headers['X-Request-Id']) except: pass if __name__ == '__main__': main()
[ "danrodcastillo1994@gmail.com" ]
danrodcastillo1994@gmail.com
9e7d0dfdbc7930489b9ea969fab38d8a0d270139
46942a623716ef361d892274f3f47d499fe91a97
/service/wikipedia_scrape_service/service.py
e4bb2d38d1c8ec127bcfd478b23537916a54b77b
[]
no_license
ramosjanoah/gegeelisa
86ebac3bfd1f03f45b087f4b78e9a1a9da857924
4e782b247bdc024153bf9ff271368957ab95727a
refs/heads/master
2020-11-27T10:50:35.631254
2019-12-21T12:39:12
2019-12-21T12:39:12
229,410,881
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
from urllib.request import urlopen from functools import lru_cache import repository from repository import redis from repository import beautiful_soup from model import WikipediaPage, WikipediaPageComponent, PageStateEnum from .scrape_unfounded_page import ScrapeUnfoundedPage from .scrape_founded_page import Scrape...
[ "email@example.com" ]
email@example.com
6c0d12ea106d70215d25e9ad8be29acdaaef13c0
0d1576eea1733c04e227fda48b2fc1d13f5f37cb
/PyFBA/gapfill/limit_reactions.py
d460fbcfb12cc965ec07c19c71590b8997bd6773
[ "MIT" ]
permissive
linsalrob/PyFBA
d207b976a7cc3a6dc682647b4a72396bde83a892
3723e95e6f96481c4fc470a004dc88da3617f3c3
refs/heads/master
2023-03-09T10:16:11.812589
2023-02-25T21:54:19
2023-02-25T21:54:19
46,241,465
27
15
MIT
2021-05-22T22:56:22
2015-11-15T23:51:34
Python
UTF-8
Python
false
false
1,267
py
def limit_reactions_by_compound(reactions, reactions2run, suggestions, max_rcts=50): """ Limit the reactions in suggestions based on the compounds present in the reactions in reactions2run and the number of reactions that each compound is associated with. We need to have < max_rcts reactions per ...
[ "raedwards@gmail.com" ]
raedwards@gmail.com
ad29e7018315f14b50adfa5ff59da8fa74676902
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/benchmarks/src/benchmarks/simplejson-bench.py
a634f84c31fc67358e8e6a81d8aaa1487d1b1e20
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
UTF-8
Python
false
false
889
py
import sys, time, os # setup path simplejson_path = os.path.join(os.path.dirname(__file__), 'simplejson') sys.path.append(simplejson_path) from simplejson.encoder import JSONEncoder encoder = JSONEncoder() def produceData(): lst = [i for i in range(3000)] return lst DATA = produceData() def encodeList(n):...
[ "ndrzmansn@gmail.com" ]
ndrzmansn@gmail.com
37353ff9bc0e9011bda19ecf7bd8839ecc8cfae9
6a990a3d549ca3d1c607b60b13b10f14c0e15787
/game/tuitongzi/command/client/reconnection_cmd.py
8b4f70d45f713635ef02826a32818bd913f407f4
[]
no_license
qianyc1020/server
217a766f7df5a0acfb983d3fc48317a932fe092e
3c897e5d6ee453d0a2f3b371b5eda5af954b8d1a
refs/heads/master
2020-06-10T08:55:31.996449
2019-06-24T06:26:43
2019-06-24T06:26:43
193,626,075
1
0
null
2019-06-25T03:12:39
2019-06-25T03:12:37
null
UTF-8
Python
false
false
3,693
py
# coding=utf-8 import traceback import core.globalvar as gl from game.tuitongzi.mode.game_status import GameStatus from protocol.base.base_pb2 import REENTER_GAME, SELF_INFO, SELF_PLAYED from protocol.base.game_base_pb2 import RecReEnterGame, RecUpdateGameUsers from protocol.game.bairen_pb2 import BaiRenScore def ex...
[ "pengyi9627@gmail.com" ]
pengyi9627@gmail.com
39430d9671b2910b0caaeea21a9fb271311ea5f1
753de2f926ba91986742a12904736443190766b6
/personas/asgi.py
bc8be5ecff5241e6528591f0dccae80119bba61c
[]
no_license
nachovidondo/Documentacion_Personas
236170274071c87bf9915614fac35798d916f1d0
ab43e94e72cb5c31286dd7b32092498ff1496e0f
refs/heads/master
2023-03-21T05:25:46.264032
2021-03-20T22:57:00
2021-03-20T22:57:00
349,852,307
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for personas 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.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "ignaciovidondo@hotmail.com" ]
ignaciovidondo@hotmail.com
5803be5af3a275fe6d0c28041530f9decf49b8fe
377d86194fd6d23c8ef3df3e6f7d90092dd8f9b4
/workout_tracker/tests/unit/muscles/test_urls.py
45a1cf524438ed183d455dd3dba59ca62ea62734
[ "MIT" ]
permissive
e-dang/Workout-Tracker
f20f44b012e895244bad413a46103415ffae5732
00a27597ea628cff62b320d616f56b2df4f344a0
refs/heads/master
2022-12-28T07:49:34.179307
2020-10-12T20:48:28
2020-10-12T20:48:28
293,937,958
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from rest_framework.reverse import reverse from tests.utils import add_api_prefix def test_muscles_list_url(): assert reverse('muscle-list') == add_api_prefix('muscles/') def test_muscles_detail_url(): pk = 1 assert reverse('muscle-detail', kwargs={'pk': pk}) == add_api_prefix(f'muscles/{pk}/')
[ "edang830@gmail.com" ]
edang830@gmail.com
e5491beaf72768296fc9bc7d0172f95f085a9028
65e0c11d690b32c832b943fb43a4206739ddf733
/bsdradius/branches/v_0_7/bsdradius/BsdRadiusServer.py
18264ef4dafdb8a58a269f5a67f46f12236b0411
[ "BSD-3-Clause" ]
permissive
Cloudxtreme/bsdradius
b5100062ed75c3201d179e190fd89770d8934aee
69dba67e27215dce49875e94a7eedbbdf77bc784
refs/heads/master
2021-05-28T16:50:14.711056
2015-04-30T11:54:17
2015-04-30T11:54:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,940
py
## BSDRadius is released under BSD license. ## Copyright (c) 2006, DATA TECH LABS ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## * Redistributions of source code must retain the above c...
[ "valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef" ]
valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef
1b7f3fb41bc1ce7090ff2124e2cefb6b6cc8561c
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/cloud/workflows/v1/workflows-v1-py/docs/conf.py
810536a2c4205cdd3300bfcddd270c6fde2ad127
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,491
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
d1d93378ea4d333133881b4caa5a37b7c65de232
79ad169779336d346b58e9bd9652ce64e9e4856a
/dynamic_rest/fields/choice.py
605be5cfe3669fa1f93ddad262ffad9a97a4dc00
[ "MIT" ]
permissive
asaak-co/dynamic-rest
0546444034926ff3b8b8e96834fbb6a1576aeaf6
09f510063a35898a871ca86b5a130595a046c7aa
refs/heads/master
2023-08-09T02:42:28.577865
2023-07-28T14:00:38
2023-07-28T14:00:38
132,636,828
0
1
MIT
2018-08-09T18:05:29
2018-05-08T16:34:39
Python
UTF-8
Python
false
false
434
py
from .base import DynamicField from rest_framework.serializers import ChoiceField from dynamic_rest.meta import Meta class DynamicChoiceField( DynamicField, ChoiceField, ): def admin_render_value(self, value): model = self.parent_model source = self.source or self.field_name choice...
[ "alonetiev@gmail.com" ]
alonetiev@gmail.com
248901b372b2f892552f9ecbc8f14fe246636431
da0a7446122a44887fa2c4f391e9630ae033daa2
/python/ray/serve/tests/test_deployment_graph_autoscaling.py
b390d9c5f360612ba766020637ad10aec2e5ea01
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
whiledoing/ray
d8d9ba09b7545e8fd00cca5cfad451278e61fffd
9272bcbbcae1630c5bb2db08a8279f0401ce6f92
refs/heads/master
2023-03-06T16:23:18.006757
2022-07-22T02:06:47
2022-07-22T02:06:47
252,420,044
0
0
Apache-2.0
2023-03-04T08:57:20
2020-04-02T10:07:23
Python
UTF-8
Python
false
false
6,753
py
import sys import pytest from python.ray.serve import constants as serve_constants import ray from ray import serve from ray.serve.drivers import DAGDriver from ray.dag.input_node import InputNode from ray.serve.deployment_state import ReplicaState from ray._private.test_utils import SignalActor, wait_for_condition ...
[ "noreply@github.com" ]
whiledoing.noreply@github.com