blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
5d2db857d942cc972b50c1533898446b0879cf70
53dee1a74618e5ac343c5abe0a7a46fdf287e51e
/modules/callbacks.py
24e779a197aeef08e887e7541a2d795fa423a938
[]
no_license
SpencerRaw/GNCA
250e8bc0351d121ba4c752ad07d02975f9e15e17
f82f24925acb26c141ed02b0b0fe23ebb0878450
refs/heads/master
2023-08-29T10:27:08.590713
2021-11-08T07:52:12
2021-11-08T07:52:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
import numpy as np from tensorflow.keras.callbacks import Callback from boids.evaluate_boids import evaluate_complexity from boids.forward import forward class ComplexityCallback(Callback): def __init__( self, test_every=10, n_trajectories=1, trajectory_len=1000, n_boids=100 ): super().__init...
[ "daniele.grattarola@gmail.com" ]
daniele.grattarola@gmail.com
8caebb2f93b517819d1981d09377d02c5aca2312
001a3e83f5ad96a0e3d3ab427199d181ad9d948a
/files/scripts/parse-cme-log
afc0d149c214c99f88138f1aa856074372f807e6
[ "MIT" ]
permissive
iesplin/ansible-playbook-kali
a2d7d76095f6e44f1a0a24fecffa3a56a7694249
5c8cfb0eb2fc7f879b2548104c8ed87fb4e083fb
refs/heads/master
2023-08-17T10:11:03.832556
2023-08-03T03:21:13
2023-08-03T03:21:13
164,757,758
21
13
MIT
2022-04-01T08:58:20
2019-01-09T00:48:49
Shell
UTF-8
Python
false
false
1,357
#!/usr/bin/env python3 import argparse import re import socket import sys systems = {} COLOUR_PATTERN=r"\u001B\[\d+m" SMB_PATTERN=r"^\w+\s+(\d+\.\d+\.\d+\.\d+\d+)\s+.*$" def getKey(line): line = re.sub(COLOUR_PATTERN, "", line) m = re.search(SMB_PATTERN, line) return m.group(1) def parse(args): file...
[ "iesplin@users.noreply.github.com" ]
iesplin@users.noreply.github.com
bc041e4c5efd26ad99e6caa4c17e001f6f83401a
b5daf9d5525971be607e87e140c6e7575ac4a9e2
/service-mgmt-api/sm-api/sm_api/openstack/common/cliutils.py
4e37ff8fcfa5fda508427ff57b265d4cf6653e80
[ "Apache-2.0" ]
permissive
starlingx/ha
9befeac4e934a22fdeadfc35163feb37967189e0
e35510e1cc54e83a158af9a5da3fb75ed4dd8601
refs/heads/master
2023-08-16T18:36:29.902446
2023-08-09T14:31:50
2023-08-10T14:52:02
237,515,014
3
3
Apache-2.0
2021-01-14T02:49:45
2020-01-31T20:58:31
C
UTF-8
Python
false
false
2,020
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Red Hat, 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 # #...
[ "dtroyer@gmail.com" ]
dtroyer@gmail.com
dd9bf9ef1958a69f4b3603cac61999f05a279bfd
5deb25a31b5776bd6049887cb3ba2a186f32e82d
/NoLeverageEMDBDP_TL.py
3469c22c5a95d70970450606742e66c3bd01bb3a
[]
no_license
havu95/Transfer-Learning
09a2e55294d978f9c4efa459f2a93dfbdd396ab7
6b942164f51bc567ac3e01f68fd67a05d9d19b68
refs/heads/master
2023-08-05T19:57:00.323988
2021-09-29T10:42:39
2021-09-29T10:42:39
404,673,137
0
0
null
null
null
null
UTF-8
Python
false
false
4,528
py
import numpy as np import tensorflow as tf import os import solvers as solv import networks as net import models as mod import multiprocessing import sys import time os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' _MULTIPROCESSING_CORE_COUNT = multiprocessing.cpu_count() print("args", sys.argv) nbLayer = 2 print("nbLayer ...
[ "freshhavu28@yahoo.de" ]
freshhavu28@yahoo.de
1534723cf82eeeec10ae0ba135104bf13bb25112
ba784aab73fd9e656226470bbea55b210b49a07d
/access modifiers/default/default.py
d76159ad81fda59ce17e07524c1783e6109ef4e9
[]
no_license
arun3542/Jala-Technologies
aeebfb2b0a4face2b42e10ce638f9662d151ebe2
352063e02a6afbbfd932c7d7be304a2c7797d884
refs/heads/main
2023-05-31T16:03:31.969348
2021-06-27T11:34:35
2021-06-27T11:34:35
380,719,516
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
# Create a class with DEFAULT fields and methods. Access these fields and methods # from any other class in the same package class Person: def __init__(self, name, last_name): self.name = name # public self.last_name = last_name def who(self): print('name : ', self....
[ "noreply@github.com" ]
noreply@github.com
9a5ab72ca038d6266fd9da0733a0daaaecdf21e6
9ad7d3b83bb40063a6ea9436c0cdac785c6160be
/venv/bin/gunicorn_paster
431c2c5310cfcfde6a5a3857dfcb9f6ec463d4a5
[]
no_license
cs-abdulrahman/learning-flask
90fa31f7d8a6b01026df8bc62bde7e0825a96588
1a91e5308cc960770122b22fef1124c30fbad663
refs/heads/master
2021-08-23T08:33:49.838662
2017-12-04T09:47:17
2017-12-04T09:47:17
113,022,171
0
0
null
null
null
null
UTF-8
Python
false
false
267
#!/Users/abdulrahman/Desktop/learning-flask/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.pasterapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "abdulrahman@Abdulrahmans-MacBook-Pro.local" ]
abdulrahman@Abdulrahmans-MacBook-Pro.local
61bffabbd45a33440250f55fb45cacc40dd6a16c
19a32440205b2caeec67c73c10d917b5fb30a86a
/test/test_cloud_account_create_params.py
729711d8628bae2fcbff63c14301d27e5882ccab
[ "MIT", "Apache-2.0" ]
permissive
marrotte/isilon_sdk_python
480e84312f5924a506aeb09c9c7cae79a2b9b7f4
91039da803ae37ed4abf8d2a3f59c333f3ef1866
refs/heads/master
2020-03-23T07:31:40.376316
2016-06-07T23:44:31
2016-06-07T23:44:31
141,277,076
1
0
MIT
2018-07-17T11:02:08
2018-07-17T11:02:08
null
UTF-8
Python
false
false
1,331
py
# coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
[ "Alex.Pecoraro@isilon.com" ]
Alex.Pecoraro@isilon.com
636da0c879fbcbdc1ff233307f40d90ecb5d916b
6308b9f457d83ce645f9f1e6766a1cfa9bd8166f
/Brandon/scrape_kc.py
666ba7da4fcab0a1f77f332d3ae044cc2531fcc4
[]
no_license
TrueBlue8515/Project_2
379d18d50664457541187adf924a177bc68166c6
2981c26e57a5a2e790e26aaca5934a3279160c5f
refs/heads/master
2020-04-18T03:55:39.044348
2019-02-09T16:16:02
2019-02-09T16:16:02
167,219,078
0
0
null
null
null
null
UTF-8
Python
false
false
1,710
py
from bs4 import BeautifulSoup import requests from splinter import Browser import pandas as pd from time import sleep import pymongo #scrape def init_browser(): executable_path = {'executable_path': 'chromedriver.exe'} return Browser('chrome', **executable_path, headless=False) def scrape(): # call in b...
[ "bvannice@gmail.com" ]
bvannice@gmail.com
10005a80624d63d4c640e151d769fed1a3a9d098
472861d7e7b18e59add51bbfcee298cf913a988d
/UNSTABLE/QSimplify/setup.py
82e66d8ee530c1ffe11e453acdb5c5dddae1877f
[ "Apache-2.0" ]
permissive
Q-Compiler/UniversalQCompiler
a527f04c033b9e7bdbacff3622f10f5aa7913669
69c525d97affc4e6ed00fb9e1a67bb186a46b103
refs/heads/master
2023-08-04T08:41:32.506144
2023-07-23T08:19:02
2023-07-23T08:19:02
178,931,987
65
21
Apache-2.0
2023-07-23T08:19:04
2019-04-01T19:21:32
Mathematica
UTF-8
Python
false
false
770
py
# Copyright 2019 UniversalQCompiler (https://github.com/Q-Compiler/UniversalQCompiler) # 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 # Unles...
[ "raban@bluewin.ch" ]
raban@bluewin.ch
013d1d6479a4dee1ee08f1e8ad0653330f77a802
acd55085d1004e62c8b10fd5255779ee3d4a00ec
/artificial_intelligence/CS288_p2_logic/tmp.py
adc1f7a157b7ea9499254ddb7bee2d2eec32b781
[]
no_license
animebing/course
129e8084787e64dd9d373b6fee3ac3e5874281c9
c079dfa498a24c6aca5660105caaee24de97ff60
refs/heads/master
2021-01-02T08:25:12.961247
2017-08-01T16:28:18
2017-08-01T16:28:18
99,007,085
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
import logicPlan from logic import PropSymbolExpr as PSE model = {PSE("North",100):True, PSE("P",3,4,1):True,PSE("P",3,3,1):False, PSE("West",0):True,PSE("GhostScary"):True, PSE("West",2):False,PSE("South",1):True, PSE("East",0):False} actions = ['North', 'South', 'East', 'West'] plan = logicPlan.extractActionSeque...
[ "yanbing_dong@hotmail.com" ]
yanbing_dong@hotmail.com
1d62022d6c4d890eba734c8295447f7ee4aa04e4
b2158c964969e2909d8c139874dc9fb505c779a3
/various/sockets/server.py
06a46726c2231d149a92b256a6415830a3c11584
[ "MIT" ]
permissive
sideroff/python-exercises
1bbe1373cc410c8ec9db29107c3d5fd40e2a861f
6a9cc55735d977a71697204c734b3ade84a0c4fd
refs/heads/master
2022-12-10T11:36:41.729465
2020-03-20T21:24:15
2020-03-20T21:24:15
227,201,554
0
0
MIT
2022-12-08T03:24:09
2019-12-10T19:41:54
Python
UTF-8
Python
false
false
667
py
import socket from config import HOST, PORT # create an INET, STREAMing socket with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serversocket: serversocket.bind((HOST, PORT)) serversocket.listen() print('socket listening on {}:{}'.format(socket.gethostname(), 80)) clientsocket, add...
[ "ivan.sideroff@gmail.com" ]
ivan.sideroff@gmail.com
ddff7707ddf45d323fdbddc7a9da8e6465da5e1d
491c1e520a64e3ebd5349130f35047aaed1e70ec
/contest/maxAscendingSum.py
854c5fb405b93f90d906324748c19480c1d1e40d
[]
no_license
pangyouzhen/data-structure
33a7bd7790c8db3e018114d85a137f5f3d6b92f8
cd46cf08a580c418cc40a68bf9b32371fc69a803
refs/heads/master
2023-05-26T12:02:30.800301
2023-05-21T08:07:57
2023-05-21T08:07:57
189,315,047
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
class Solution(object): # 这个题如果改成 子序列呢 def maxAscendingSum(self, nums): """ :type nums: List[int] :rtype: int """ dp = [0] * len(nums) dp[0] = nums[0] for i in range(1, len(nums)): if nums[i] > nums[i - 1]: dp[i] =...
[ "pangyouzhen@live.com" ]
pangyouzhen@live.com
49a3c693d710b0d3704a63520097a2df5b2b02c9
ec52415c8c5378421658d61c677daf03e8e990eb
/invoices/urls.py
944283d7d6bd0d719d6a79afa9606ead4a078266
[ "Apache-2.0" ]
permissive
xmudrii/django-invoices
f1d81846b1dd454c16cb4e98792e4700b7834aa1
25ac6b73e217d6d38bd91e541134acbf7e9bd0a4
refs/heads/main
2023-02-13T20:52:09.468029
2021-01-02T13:01:46
2021-01-02T13:01:46
325,287,521
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
"""invoices URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-base...
[ "mudrinic.mare@gmail.com" ]
mudrinic.mare@gmail.com
07a7265468765c0ec22099523d4a3debfe00d410
c6ede3c7503c9023cfb60b5f205209cc797f5dae
/getimagelist/testsplit.py
8c7dbf70fbd16e1bbba93380dc9c79e75d50179a
[]
no_license
waitingFat/pythonNotes
2017a10ff7f7bd7a1a9d72e9d54c8bd3a4491539
26170b3d7042aa285b606e8535f1bf05cde70589
refs/heads/master
2021-01-23T06:05:31.610796
2017-09-20T14:35:13
2017-09-20T14:35:13
102,488,206
1
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
import urllib.request import threadpool def split(): str = 'abc/def/g' split = str.split('/') print(split[len(split) - 1]) def test_thread_sub(item, dir): print(item, dir) def test_thread(): items = {'a', 'b', 'c', 'd', 'e'} # lst_vars_1 = ['1', '2'] # lst_vars_2 = ['4', '5'] # fun...
[ "392951475@qq.com" ]
392951475@qq.com
a4d7cbe7c6559b24622d27460c71b8d635ef2987
fe305658f56521410e9fe6eeb6904d9bbccb0fdf
/kadai5-1.py
e1056bee6ceb659d482b0e5067b39288e073ed2b
[]
no_license
k108c1341/flaskworks
7a40c7ad660c1e3d41302ce4c9fa2213eccc9909
2424911a2d1d71ac04b20c70cf63fcf564156d8b
refs/heads/master
2022-12-05T19:52:07.455153
2020-08-17T04:31:32
2020-08-17T04:31:32
277,440,024
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def kadai5_1(): return render_template('kadai5-1.html') @app.route('/send', methods=['POST']) def send(): msg1 = request.form.get('msg1') msg2 = request.form.get('msg2') return render_template('receive5-1.html', m...
[ "k018c1341@it-neec.jp" ]
k018c1341@it-neec.jp
6640c9ded784e1be875bed07d7be788dc7c78161
3bfb784c1178906d3d42ab7e357a3066894a5a61
/eds_scikit/utils/bunch.py
79d5bd0afa5e254bf99325e06ae066605f31c1d6
[ "BSD-3-Clause" ]
permissive
aphp/eds-scikit
64e7fa4a872f3d0428456100325a503ac9e24089
670275cb59023f5cb9700452a060aeb64c4585d0
refs/heads/main
2023-08-16T12:33:35.974193
2023-06-06T08:52:39
2023-06-06T08:52:39
571,584,236
19
3
BSD-3-Clause
2023-08-03T17:23:15
2022-11-28T12:57:23
Python
UTF-8
Python
false
false
875
py
""" Vendored Bunch class from scikit-learn. """ class Bunch(dict): """Container object exposing keys as attributes. Bunch objects are sometimes used as an output for functions and methods. They extend dictionaries by enabling values to be accessed by key, `bunch["value_key"]`, or by an attribute, `bu...
[ "noreply@github.com" ]
noreply@github.com
28c79b879f4b3fc17b9d654efea67a819cba0533
db17eeb4e8a80bffd59fa8979e7d80b4f1c01c42
/Add.py
22bf2319be350c7659477831d5a98ae41939ae78
[]
no_license
robinNcode/Python-Code
fadb04cc21b509d75378b0ae620b8496bfe3c2eb
32f4aab6178003cf3c3c34f5970fe0d98c6dc41d
refs/heads/master
2021-06-29T04:14:00.699629
2021-06-19T21:26:54
2021-06-19T21:26:54
236,960,528
1
0
null
null
null
null
UTF-8
Python
false
false
47
py
A=int(input()) B=int(input()) print("X =",A+B)
[ "msmrobin518@gmail.com" ]
msmrobin518@gmail.com
f747c7fc30189608f2665557c00fa27eb5312c27
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_092/ch68_2020_05_04_19_40_02_713532.py
94edce737f60b07ea6de9d86db9b8fbf6ef19a20
[]
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
960
py
def separa_trios(x): if len(x)%3 == 0: i = 0 L1 = [] L2 = [] while i < len(x): L1.append(x[i]) L1.append(x[i + 1]) L1.append(x[i + 2]) L2.append(L1) L1 = [] i += 3 return L2 elif len(x)%3 == 2: ...
[ "you@example.com" ]
you@example.com
1b8032367cb7f3000df6391fc92d1f546678c0a3
d383b0585ad072142bb5baad5320fe2a7bba0c2a
/get_location.py
b8bea7b71987e4c3e982d41e16471e1b4e3b650f
[]
no_license
alexBerman999/Autopilot_2021
da427d9f2215adb100611424df65f03c0f9e11b6
148e3f02d597dd95432a2c46c8350b6cd7d01e34
refs/heads/main
2023-02-24T14:32:04.922361
2021-02-03T19:44:33
2021-02-03T19:44:33
305,864,970
0
0
null
2020-11-11T01:52:47
2020-10-21T00:24:16
Python
UTF-8
Python
false
false
961
py
import pymavlink from pymavlink import mavutil from collections import defaultdict def get_location(sampling_rate,time, channel): connection = mavutil.mavlink_connection(channel) connection.wait_heartbeat() print("Heartbeat from system (system %u component %u)" % (connection.target_system, connecti...
[ "noreply@github.com" ]
noreply@github.com
e0f2e8ae967b349957635bec264f6e790ba67dc7
f9b37c6f867091917e447291800626bcc610b0d9
/env/bin/streamlit
d438cfd4da33e372c190b0051c7e4e80d563c863
[]
no_license
Gsturgis/Anime_analysis
b7e82f8121662d3b679698b86d00e42ca79051d6
6df868b4ecd04d0da2c301c0ca3ba5f97195696b
refs/heads/main
2023-06-03T17:23:21.746216
2021-06-30T01:46:34
2021-06-30T01:46:34
381,509,013
0
0
null
null
null
null
UTF-8
Python
false
false
242
#!/Users/gmac/Desktop/Anime_data/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from streamlit.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "gmac@Gyasis-Air.home" ]
gmac@Gyasis-Air.home
ed09b784db5424b879a0607a1f364d0fa86350fa
1f429436078f49f565230fdbabb84ff7775baae7
/plots.py
1e22d13d97e70b22e64f90466aac0987e4b8e771
[]
no_license
rosshamish/catanlogs
730a80235567e7ea29662db0814462d2cd79935d
4c226df6f547f90e4b4895e2e689c5be0e347f80
refs/heads/master
2021-01-10T04:22:16.694281
2016-02-16T06:53:26
2016-02-16T06:53:26
51,568,749
1
0
null
null
null
null
UTF-8
Python
false
false
2,499
py
import argparse from collections import defaultdict import re import logging import matplotlib.pyplot as plt def main(): parser = argparse.ArgumentParser('analysis for a game of catan') parser.add_argument('filename') args = parser.parse_args() filename = args.filename with open(filename, 'r') a...
[ "ross.anderson@ualberta.ca" ]
ross.anderson@ualberta.ca
0c811292eabe29cef6cd91ec494fede6e354542b
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/1d3d6a3e2d2c4b7e50ebc0f191430bfbef4fd40a-<main>-fix.py
93eb6b2dcb9e8a30f58802955767945e9a6d77f4
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,476
py
def main(): module = AnsibleModule(argument_spec=dict(path=dict(type='list', required=True), format=dict(type='str', default='gz', choices=['bz2', 'gz', 'tar', 'xz', 'zip']), dest=dict(type='path'), exclude_path=dict(type='list'), remove=dict(type='bool', default=False)), add_file_common_args=True, supports_check...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
74631f72340933c57745f1c549852f6cc1fbd171
79421368c80a5a6d9a8e4799dd3329e6db922886
/rtiapp/migrations/0022_auto_20151215_1015.py
4f4a5d3cc8465ac468e154236b326e56106ae6c1
[]
no_license
vikash5507/rtifeed
e98961d0fc4a47dec0bba4c6af0a7ce16e70dc69
20d428208aaf0c5212471c557fd0dd01d71402d9
refs/heads/master
2023-04-27T08:25:13.406161
2021-05-23T09:15:48
2021-05-23T09:15:48
370,004,494
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('rtiapp', '0021_auto_20151215_0037'), ] operations = [ migrations.AddField( model_name='activity', na...
[ "paarth.n@gmail.com" ]
paarth.n@gmail.com
0cb3fb9fc0bf5c436f79abb096e9c3c3d73b02bb
39d4504ec1da8975fac526d6801b94f4348b6b61
/research/object_detection/core/keypoint_ops.py
4e34d34eccf3f3b0da87fb24dd13973323dabd23
[ "Apache-2.0" ]
permissive
vincentcheny/models
fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad
afb1a59fc1bc792ac72d1a3e22e2469020529788
refs/heads/master
2020-07-23T21:38:24.559521
2019-11-15T07:50:11
2019-11-15T07:50:11
207,712,649
1
0
Apache-2.0
2019-09-11T03:12:31
2019-09-11T03:12:31
null
UTF-8
Python
false
false
11,522
py
# Copyright 2017 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...
[ "1155107977@link.cuhk.edu.hk" ]
1155107977@link.cuhk.edu.hk
ebc2f3f928bc6edc6078f20de124ed4b84301367
1e72f0572a97cbedf398c66eddfa7e4bf93dc5df
/fish/python_files/heatmap.py
e70bf1bd10f80f483b467d15ab20c23e441f8d96
[]
no_license
tchaton/The-Nature-Conservancy-Fisheries-Monitoring-Challenge
02108cc03461003f4935b864190fbd65f7ca0b48
edce35514f903fb0a08f4f8b904f5fa406f74319
refs/heads/master
2021-01-21T11:07:36.245147
2017-06-30T09:22:47
2017-06-30T09:22:47
91,723,961
8
4
null
null
null
null
UTF-8
Python
false
false
8,576
py
import numpy as np from keras.layers.core import Lambda, Merge from keras.layers.convolutional import Convolution2D from keras import backend as K from keras.engine import Layer from os import listdir from os.path import isfile, join, dirname from scipy.io import loadmat import gc from keras.utils.layer_utils import l...
[ "thomaschaton84@gmail.com" ]
thomaschaton84@gmail.com
d365ae1d78ac9b7cdd1bb7eb14176a65b42e780c
3de28066d0c4126425f59ab0e39036fa4849c912
/ksample/power_3samp.py
d5c01be4a74d16d8c4aeb91217ce18310b942586
[ "Apache-2.0" ]
permissive
zdbzdb1212/hyppo-papers
c68cb89c145aeb029c8b388a50971a14b308aca9
ad34daf0cd2986ffe97c19b5236d2c5c15503a7d
refs/heads/main
2023-04-13T22:10:13.419256
2021-04-27T14:55:37
2021-04-27T14:55:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,353
py
from math import ceil import numpy as np from hyppo.ksample._utils import k_sample_transform from hyppo.sims import gaussian_3samp from scipy._lib._util import MapWrapper, check_random_state from sklearn.metrics import pairwise_distances class _ParallelP3Samp(object): """ Helper function to calculate paralle...
[ "36676569+sampan501@users.noreply.github.com" ]
36676569+sampan501@users.noreply.github.com
6c57f88b1d9437177708f278a153538aef84c63b
a24aca48305a1295a358bcccb924eb8999227c9f
/tests/api_connexion/endpoints/test_dag_run_endpoint.py
a7f7fe7bcae8bfc503132ae5d59c8dbb7f4c8842
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
dgghosalaws/airflow
c35aafa2b5e952e4287b6f93bdd406753dbfc1c1
0db38ad1a2cf403eb546f027f2e5673610626f47
refs/heads/main
2023-03-10T17:17:37.060228
2023-02-27T20:06:43
2023-02-27T20:06:43
316,050,364
0
0
Apache-2.0
2020-11-25T20:47:29
2020-11-25T20:47:28
null
UTF-8
Python
false
false
65,650
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
4208df236143a0ae3303013ce0bf905c8b8a2e85
8db49099b271889db0f5562075f4fc0468e0e46a
/api/weatherapi/settings/logging.py
e636a20c0cbdd0f4ef56460fd01be75eb45316fb
[ "MIT" ]
permissive
sferhan/weather-forecasts-drf
8be0746872facc94e9d596b3464ff277cd727783
46c76ed6868990f405311734ff234c758f68726a
refs/heads/master
2023-02-27T03:32:22.443290
2021-02-07T17:25:51
2021-02-07T17:25:51
332,460,533
1
0
MIT
2021-01-24T13:46:11
2021-01-24T13:46:00
null
UTF-8
Python
false
false
882
py
import logging.config LOGGING = { "version": 1, "disable_existing_loggers": False, "formatters": { "fmt1": {"format": "[FMT1] %(asctime)-15s %(message)s"}, "fmt2": {"format": "[FMT2] %(asctime)-15s %(message)s"}, }, "handlers": { "console1": { "level": "INFO", ...
[ "syed.ferhan.haider@gmail.com" ]
syed.ferhan.haider@gmail.com
e84e48864960b3964f77e6d628374c8e639bcacc
fd52a02a6cc202588b133a64da5942512a4c7041
/tweets_api/app/utils/tweet_stream_listener.py
1e24c3283218897a382881c45f31de7d1666be21
[]
no_license
imadmoussa1/ds_tweets
29514128c12d2fa0a05113f7815eb8ea055475bd
dfdc4cb5ccb69f97493c4ba412725b4559b8ee61
refs/heads/master
2022-10-04T20:41:32.994733
2019-11-28T20:44:07
2019-11-28T20:44:07
224,287,257
0
0
null
null
null
null
UTF-8
Python
false
false
5,849
py
import datetime import json import re from nltk.tokenize import WordPunctTokenizer from bs4 import BeautifulSoup from textblob import TextBlob from tweepy.streaming import StreamListener # from watson_developer_cloud import ToneAnalyzerV3 from .data_store_client import DataStoreClient from .logger import Logger log = ...
[ "imadmoussa1@gmail.com" ]
imadmoussa1@gmail.com
586e7a0d41c3e570dcbeeb0109e87c483798dfdc
986fefc0d4a67129f94ca078ea0ee5d8dfa4ba0e
/src/detext/train/constant.py
cea97edf0ee6f35ed98d40dcc7c6666bcaf45ca2
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
subpath/detext
f8419962f6ffea6bfb9411729694516e98e22fd5
b762f2b1fef1fe7a1b56e6be5fbbaf25c7f1d322
refs/heads/master
2023-07-30T06:58:11.713821
2021-09-24T22:46:20
2021-09-25T04:31:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,953
py
import tensorflow as tf import tensorflow_ranking as tfr from detext.utils.parsing_utils import InputFtrType from detext.metaclass import SingletonMeta class Constant(metaclass=SingletonMeta): def __init__(self): self._LABEL_PADDING = tfr.data._PADDING_LABEL self._DEFAULT_WEIGHT_FTR_NAME = InputF...
[ "sidwang@linkedin.com" ]
sidwang@linkedin.com
053ea1d02399dace0b80f053a39c215d4dbfed15
66e912468abe205ffd466da7a2c880bdd9b37115
/lab2.py
77f6521dead9a246fe17b292502d72e2fe7514e3
[]
no_license
Alinagermanchuk/computer_graphic
e29f8e980c2b619f1ab7dfef3efb2490350105a5
b7013f5eeb24209c254ec1cb38cbf436cf5c2665
refs/heads/main
2023-01-25T03:19:25.084345
2020-11-30T15:46:57
2020-11-30T15:46:57
315,703,448
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from PIL import Image import os def draw_pic(path): if not(os.path.isfile(path)): input(f"Ошибка в названии файла: '{path}'\nОн должен быть в той же папке, что и программа!\n") return -1 file = open(path, "r") size = (960, 540) img = Image.new("RGB", size, color="white") for line in file: line ...
[ "noreply@github.com" ]
noreply@github.com
c835bad8a9284ff622fa54f811ba17703d969f58
27ad7807da8c66bce0aaf2bbfb38153f15ad51f3
/automate_notepad.py
e618ef78435e6741fc53e6dcf6e712e1b8b8c25a
[]
no_license
johnstoj/windows_ipy_white
9fb78296a309142331fcb8267cbea1c1d33954d0
adfd4f18e3a6dea8efffdfa78b3e2e1d6ba0ea30
refs/heads/master
2020-06-04T21:41:35.925851
2012-04-14T10:01:25
2012-04-14T10:01:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
import os import sys ''' Add the White automation library assemblies to the sys.path so that a simple AddReference will find them. ''' project_root = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(project_root, "libs\\white")) import clr clr.AddReference("White.Core.dll") from White.Core...
[ "John.Stojanovski@gmail.com" ]
John.Stojanovski@gmail.com
0d6b5af34daf68d5dd0b9df6dd8e9b4d632ea230
5b47ffb7f6d8fe8809443244b8d429890454eb84
/main.py
f016dfa44384e4244d4fa87f5d49115cea9572d5
[]
no_license
debjava/external-ping
97aae3eee5adc94ccd6b47d16d9c348f3459648b
155c857707042f52c409bc80c5a566d1494a738d
refs/heads/master
2022-10-10T01:58:38.389071
2020-06-07T20:27:40
2020-06-07T20:27:40
270,423,855
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
import argparse from ping import PingUtil def hello(): argParser = argparse.ArgumentParser() argParser.add_argument('-p', '--ping', nargs= "+", help="Ping IP Addresses.") argParser.add_argument('-t', '--telnet', nargs="+", help="Telnet command") args = argParser.parse_args() # print('...
[ "deba.java@gmail.com" ]
deba.java@gmail.com
5d1b87f5a044cdb6c383e3eb81c2c5b02e193104
2cc7f15510af3a671f79e6af79405c5f8a447e2c
/python-scripting/query-monitoring/query-monitoring.py
c0a46bce5ef7f83f5a26ac60e5adaef2cbd22efc
[]
no_license
kjranyone/workflow-examples
fcf192cb506119bbfc1b624fe95b0d5567e13db2
2da475e06e033ccac3fa9715c41d984b2dc4968a
refs/heads/master
2020-06-17T06:21:20.333152
2019-07-08T10:38:04
2019-07-08T10:38:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,142
py
import os, time, pandas, tdclient, pytd TD_API_KEY = os.environ.get('td_apikey') TD_API_SERVER = os.environ.get('td_endpoint') TD_DATABASE = os.environ.get('td_database') TD_TABLE = os.environ.get('td_table') def get_job_list(status, max_num): with tdclient.Client(apikey=TD_API_KEY, endpoint=TD_API_SERVER) as cl...
[ "hajime.sano@treasure-data.com" ]
hajime.sano@treasure-data.com
70e139af2425c4d3dc0ec43eb1a5fc7f22b807eb
66a8f9d11154c84d9e279f9cef4ccd227082f743
/UnitTest/src/tests/test_connectionSettings.py
7d2e2ca2ec78cb2193806cdf53d3e350e796dd98
[]
no_license
richardcrossley/python_samples
b3e61f57cbee2fb244a4a0e33ec68fea65b48c90
41c9e869646d523221f7730e4fa205afcabf45a1
refs/heads/master
2020-05-26T03:51:23.884344
2017-02-18T12:35:26
2017-02-18T12:35:26
82,461,927
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
from unittest import TestCase from src.main.ConnectionSettings import ConnectionSettings class TestConnectionSettings(TestCase): expected_username = "TestUserName" expected_password = "ExpectedPassword" expected_hostname = "ExpectedHostName" expected_portnumber = 12345 expected_dbms = "ExpectedDBM...
[ "richardcrossley@gmail.com" ]
richardcrossley@gmail.com
d827e02be85169293818b0b017009564c6e2f85c
ccb6d2726b7522af43004875e2e233bc1088774a
/scripts/python/subarrayControl.py
c8b5b81c46eb3cdcc68e846f9bc145d3da9e47f8
[ "FSFUL" ]
permissive
mpound/carma
a9ab28ed45b3114972d3f72bcc522c0010e80b42
9e317271eec071c1a53dca8b11af31320f69417b
refs/heads/master
2020-06-01T11:43:47.397953
2019-06-07T15:05:57
2019-06-07T15:05:57
190,763,870
2
0
null
null
null
null
UTF-8
Python
false
false
12,895
py
# Top level python module for interactive control of a subarray # The following variables should be available for use in subarrayCommands # and other scripts that import * from this file: # s Reference to subarray DO # subarrayNo Subarray number # saName Subarray name # # @author Steve Scot...
[ "22331890+mpound@users.noreply.github.com" ]
22331890+mpound@users.noreply.github.com
acebd47e7ead4e4b350809ae84ab82f8925143e8
230f929bb5fcee6297a74a7e0438dbd53da23afa
/tasks/chapter_2/tests/test_k_from_end.py
381bd0c2b7f7c220399debe567ec5bb5658e5bf8
[]
no_license
helper2424/interview-cheat-sheet
95e3f883705d10b9e2851f203ee340514c878716
6a1d0dedbec7191a2298366f5ac4c748813886c1
refs/heads/master
2021-11-27T14:49:07.069734
2021-11-11T07:22:17
2021-11-11T07:22:17
67,241,271
0
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
from unittest import TestCase from find_k_from_end import find_k_from_end as f, find_k_from_end_recursive as f2 from node import Node def convert_list_to_array(list): root = list result = [] while(root != None): result.append(root.value) root = root.next return result def convert_arr...
[ "helper2424@gmail.com" ]
helper2424@gmail.com
c1414d2b7fce590fc49a2963168535324233d997
0c79397f540af2176fe643d4c21e4961ff7ba0a9
/chapter5.py
bfc8652b2a37ebb4fcb1d584f6449d7844c20ad2
[]
no_license
Marco13-7/OpenCVTutorial
f4f831c33218f17b641cd7905ea0d4f0fe0e9c8d
1fcfad86f2efff23754d77608768ac2b9b9e1bea
refs/heads/master
2022-11-25T17:18:23.770792
2020-08-04T15:26:28
2020-08-04T15:26:28
285,003,725
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
import cv2 import numpy as np img = cv2.imread("Resources/GT3.jpg") width, height = 700, 350 pts1 = np.float32([[590, 420],[1200,340], [630,870], [1330, 740]]) pts2 = np.float32([[0,0],[width,0],[0,height], [width,height]]) matrix = cv2.getPerspectiveTransform(pts1, pts2) imgOutput = cv2.warpPerspective(img, matrix...
[ "schaefermawo@gmail.com" ]
schaefermawo@gmail.com
852a14c2747be3cfb14caae4df34a3c1fca2ef9c
d3521ea4df1241c0c550317c78536848de6934db
/GeneticAlgorithm.py
b843d283d0c2ace0a236a53afa7bdf509ded452f
[]
no_license
kubencjusz/metaheuristics
25b030686d90868a10a21b65b7533ef4781e0858
ed4d1e9ea6d53610ed28b64e2193ac6ecdbd8b0c
refs/heads/master
2020-04-15T00:51:15.716561
2019-01-08T19:34:57
2019-01-08T19:34:57
164,254,122
1
0
null
null
null
null
UTF-8
Python
false
false
4,608
py
from datetime import datetime import numpy as np # two helper functions def binToInt(x): # Translate the binary chromosome to real values flipped = np.flipud(x) idx = np.argwhere(flipped==1).reshape(-1,) return (2**idx).sum() def getCoords(population, cel, x_min, x_max): # Transform the binary c...
[ "gaszcz.jakub@gmail.com" ]
gaszcz.jakub@gmail.com
66e2b39f73d65ebeac8acb7ee4270d2bf488b601
5c37dfaac3a02cc592c154bd9ed1a3fbcf5855cd
/python/cron/numpy.py
6a5307cbf874d543abfc54dfb176cdaf496672e7
[]
no_license
thejohnfreeman/cron
5a91884e5ce8448e6f16b4d0823a05cc429ee37f
c2dbbb50ea8852e0f947b075e9e2f663a450fdcb
refs/heads/master
2020-12-29T00:41:24.952795
2016-03-30T02:29:48
2016-03-30T02:30:47
55,026,110
0
0
null
2016-03-30T02:31:40
2016-03-30T02:31:40
null
UTF-8
Python
false
false
751
py
""" Numpy support for Cron. Numpy support is provided in a submodule so that users who do not need it aren't forced to import numpy. After this module is imported, Cron types that can be used as numpy array types will have a `dtype` attribute. For example: >>> import numpy as np >>> from cron import Date >>> ...
[ "alex@alexsamuel.net" ]
alex@alexsamuel.net
76d7fdfd9632c8116f8d7dc839acdd410d49bab8
a9e18d8e15cff7969de6203479763cb40e7dcda0
/ACCO_MODEL/ACCO_MODEL_SVMModel.py
72d9c8e1b610c1f8f44dc1d0dfe2a7fa3695c7a9
[]
no_license
dannieldwt/acco-generate
c92db9e742ed4ec4d1c56973c480006b5acc81dc
14c2e0fba6aa786b6db2bbf3e43447ee6ab98acc
refs/heads/master
2020-05-03T13:46:14.448225
2019-09-22T02:53:42
2019-09-22T02:53:42
178,661,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: 10858 @license: (C) Copyright @contact: xxx@qq.com @software: PyCharm @file: ACCO_MODEL_SVMModel.py @time: 2019-08-22 22:37 @desc: 支持向量机模型 2019-09-21 因为采用了随机森林将其注释掉 ''' ''' import numpy as np from sklearn.svm import SVC from sklearn.model_selection import train_test...
[ "1085837135@qq.com" ]
1085837135@qq.com
b91c102509d6cfc53f4dfb4a2f6fad0aa1418164
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_encouraging.py
80132252a0c761c502ceab036d3d7ee9fc288904
[ "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
409
py
#calss header class _ENCOURAGING(): def __init__(self,): self.name = "ENCOURAGING" self.definitions = [u'making you feel more confidence or hope: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[o...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
67f7bc37646bb303e534389418784b086e4fa4a4
a2dea10e3474b3f8798267758aa6cfe584afc885
/project1/main.py
e34ef55613c109b54c6c6b2d9fc5eb1986f73b42
[]
no_license
mdchen007/python
1bc8f477d0bf42c49b2639d507f8dd1f219d322e
68f1107f9e7438381daa10336038078ed57baf8e
refs/heads/master
2020-03-19T09:20:33.318426
2018-07-27T08:45:28
2018-07-27T08:45:28
136,280,059
0
0
null
null
null
null
UTF-8
Python
false
false
6,434
py
import threading import time import RPi.GPIO as GPIO from adcConvert import adcMonitor as ad from lcdDisp import lcdDisplay as lcd from keyConsole import keyCtl as k #one wire for DS18b20 temperature sensor from w1thermsensor import W1ThermSensor #for BLE fucntion using bluepy from bluepy.bluepy.btle impor...
[ "md.jerry.chen@gmail.com" ]
md.jerry.chen@gmail.com
2a80e93a47db07b5b8a5f25e04ba45a1ac26d373
c639b051c70212830953b535093fdb7c2435b4a3
/orchestrator/src/orchestrator/terminal.py
ebc64f25fc3c788d9d2708f675d89c3d32cd7879
[]
no_license
antidotcb/perf-tests
9e85b728f05c647e19641854e6376e8ef725766b
1c22ae44f02bb7414fb55076cdb513f96616f6b7
refs/heads/master
2021-03-27T08:50:42.982403
2015-07-31T18:56:32
2015-07-31T18:56:32
37,718,279
0
0
null
null
null
null
UTF-8
Python
false
false
7,032
py
import cmd import time from tabulate import tabulate from pt import log import pt __author__ = 'Danylo Bilyk' # noinspection PyClassicStyleClass,PyUnusedLocal class Terminal(cmd.Cmd): no_cmd = '' def __init__(self, orc): cmd.Cmd.__init__(self) self.orc = orc self._default_targets =...
[ "daniil.bilyk@eglobal-forex.com" ]
daniil.bilyk@eglobal-forex.com
1057b2013d6364200744efd5a4918a410b79b9bf
03a70d422855fcf2b488c5070c5ef12001143230
/virtual/bin/django-admin
c98dbb340f1fcdb0df6f4f85e1453a849a12ae31
[ "MIT" ]
permissive
bellahOchola/Rater
0b5f1004552a8d966bff4092bd242834cd68564e
0251fdc6886eb1bcbad82a7aefc61e0ecf6a0738
refs/heads/master
2022-12-11T01:21:39.542482
2020-01-17T00:33:18
2020-01-17T00:33:18
232,781,927
0
0
null
2022-12-08T03:26:23
2020-01-09T10:22:29
Python
UTF-8
Python
false
false
309
#!/home/moringa/Desktop/projects/Django/rater/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "bellahkenya@gmail.com" ]
bellahkenya@gmail.com
678e516662cb54aa0b00523b672617abbf661712
ee1cbe729e90f281917f71f33b360ea05c7f5fc2
/sygaldry/__init__.py
bc405eeb59d88cfbc0af5170de90f08b8d33d4ea
[ "MIT" ]
permissive
RohanDalton/sygaldry
2a88e6119be6e4bdd526fbd886a8b2a46d207eee
463acf5865a80d736aa30b3211fe68cabc69df12
refs/heads/main
2023-07-28T06:33:52.887446
2021-08-25T12:40:38
2021-08-25T12:40:38
399,675,304
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
"""It's Sygaldry""" from sygaldry.artificery import Artificery __author__ = "Rohan B. Dalton" __version__ = "0.0.1" if __name__ == "__main__": pass
[ "rohan@rohandalton.io" ]
rohan@rohandalton.io
fd7fd21bd4195974e44e90bf6abca55dc2f7abac
47e9b6d11d248dfbee8c1c3cb79838433a0ca0bb
/app.py
70f6375433a9707d8ff5569c04dcc60f99d7c3ce
[]
no_license
jenniferjlee/info4310-hw1
c919255cc7e1f19ec6872ab4c09cd4bc2e284581
35191843c842c6b47dcd554013ea68b2951529a2
refs/heads/master
2022-12-23T23:10:33.302138
2020-09-24T06:49:27
2020-09-24T06:49:27
298,194,466
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
from flask import * from whitenoise import WhiteNoise app = Flask(__name__) app.wsgi_app = WhiteNoise(app.wsgi_app, root = 'static/', prefix = "static/", index_file = "index.html",autorefresh = True) @app.route('/',methods = ['GET']) def hello(): return make_response("Hello, world") if __name__ == "__main__": a...
[ "jjl296@cornell.edu" ]
jjl296@cornell.edu
e88b9c3a396ef32e6f4a2e736fd21375527a7f30
85c621afe3b104bde6289425c45c39f5841c882d
/problem1.py
b005bb2af727cb3ed1978d85c9c2383fe7d6514d
[]
no_license
sayan1995/DFS-2
9c3baff8095cf74de148225a4983f2a9126d8b2e
f677bb28c75355ebb6ad1b9085503ece9df99baf
refs/heads/master
2021-02-19T13:24:02.017535
2020-03-06T04:04:05
2020-03-06T04:04:05
245,312,715
0
0
null
2020-03-06T02:28:54
2020-03-06T02:28:53
null
UTF-8
Python
false
false
1,325
py
''' Iterative: Time Complexity: O(m*n) Space Complexity: O(m*n) Did this code successfully run on Leetcode : Yes Explanation: Apply DFS to visiit all the islands, set the element to 2 if we visit it and it should be a '1' which is basically an Island, while iterating through DFS count the number of islands and return i...
[ "sayan@Sayans-MacBook-Pro.local" ]
sayan@Sayans-MacBook-Pro.local
b8ffc38d495b64afe05e4264f97595993ae14ebb
7b6ad98f33aad034193428b4750cf5a6ef2f4bb9
/models/attention.py
e5f536ddc7b861e2c7fe19c5dc7eb3884d2b2433
[]
no_license
MengjiaZhou966/REDialog
d90c2e1113b65798cb69082f495cb1f8a7ba3539
442c0fc2038b1c358633cf0823aa9347ed243499
refs/heads/main
2023-06-20T23:29:48.458406
2021-07-20T12:22:20
2021-07-20T12:22:20
322,503,740
3
1
null
null
null
null
UTF-8
Python
false
false
5,520
py
import torch.nn as nn import torch import torch.nn.functional as F import copy from models.lockedropout import LockedDropout import math class SelfAttention(nn.Module): def __init__(self, input_size): super().__init__() self.input_linear = nn.Linear(input_size, 1, bias=False) sel...
[ "noreply@github.com" ]
noreply@github.com
93d2869537b091de45d602d1bfd1116cecc7dbe9
5c0c9b508170bf90645241b0986825415a7fc059
/tests/test_subscriptions.py
2859cbc7bd5cb604f992900cfa3da9090d2a6418
[]
no_license
drgerber/foodgram-project-react
533c90ced71289e6f76c422de5a887197695092b
1709bb9194fe1aae19e6f47269f9ff3f55921e1b
refs/heads/master
2023-07-20T12:34:44.514805
2021-08-23T18:26:51
2021-08-23T18:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,878
py
import pytest from foodgram.users.models import UserSubscription from . import factories class TestTags: ENDPOINT = '/api/users/subscriptions/' @pytest.mark.django_db(transaction=True) def test_get_subscriptions(self, client, user_client, test_user): user_1 = factories.UserFactory.create() ...
[ "dangerousmonk@yandex.ru" ]
dangerousmonk@yandex.ru
27de55314bf63a3c610c4b1b32de451e57da369d
821d43427365d2b5452ec4a461e2ad1da723ec85
/SVM/src/1
26ca20202c822a93981c99ca48187e24ebd38a03
[]
no_license
ZhangLi1984/SpamFilter
200e5e3508858693de93fab7d75d1040be52d90d
08aea4558ee84d1168f5de00ccbc2a4e2bb927fd
refs/heads/master
2022-11-08T04:33:19.971440
2019-02-09T14:58:57
2019-02-09T14:58:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
#!/usr/bin/env python # -*- coding:utf-8 -*- if __name__ == "__main__": f1 = open("../data/fixed/train_data_100w.txt","r") f2 = open("../data/derived/train_data_2w.txt","w") lines = f1.readlines() for i in range(34243,34243+20000): f2.write(lines[i].strip() + "\n")
[ "827526716@qq.com" ]
827526716@qq.com
1e30765ae403bdd8a4a0a002c1a6768b0b8fafa0
269f18999a158db1a8a736655b84704780439cab
/shots/migrations/0009_remove_image_tags.py
cf21e8bde8d3c97021b08bf3ed43d7db2113b507
[]
no_license
raul-jr3/fantastic-spoon
6c6d1a323f4d3ff1dc157c8bfd63e0cd8da41ffd
557cb3e85d2c385b080564bdf2571bd09c3b6655
refs/heads/master
2021-01-02T08:37:20.087398
2017-09-14T09:05:13
2017-09-14T09:05:13
99,033,801
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-13 14:38 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shots', '0008_image_tags'), ] operations = [ migrations.RemoveField( mo...
[ "rahul.srivatsav1995@gmail.com" ]
rahul.srivatsav1995@gmail.com
af07bb901c2439131a7df5019e6141a177ca6ab2
35c9cc54fdd800d33512509504f445b79a85987e
/.local/lib/python3.4/site-packages/ptrace/syscall/ptrace_syscall.py
264711cc883c83f594cfe63b51568dd12e50040a
[]
no_license
tjmaas/cs373-idb
cace4b9c8888f1d291d59183a0490137a93eb449
3a12374de59a061e1f33887c310b51de9118fefe
refs/heads/master
2016-09-05T08:47:48.124591
2014-08-09T01:06:52
2014-08-09T01:06:52
21,438,265
0
1
null
2014-08-08T17:07:37
2014-07-02T19:52:22
Python
UTF-8
Python
false
false
4,911
py
from os import strerror from ptrace.cpu_info import CPU_X86_64, CPU_POWERPC, CPU_I386, CPU_ARM from ptrace.ctypes_tools import ulong2long, formatAddress, formatWordHex from ptrace.func_call import FunctionCall from ptrace.syscall import SYSCALL_NAMES, SYSCALL_PROTOTYPES, SyscallArgument from ptrace.syscall.socketcall ...
[ "nick.dechant@utexas.edu" ]
nick.dechant@utexas.edu
8e5d49b9cddfc154824dab6d46b2cbc1b2ea68ca
8669415c4d5b8019d0f50c6ea727192c23b937c2
/test/functional/disconnect_ban.py
cfb443deab4e2f4b10318d2dcd1c3cef20d5c65d
[ "MIT" ]
permissive
Palem1988/ion_old
48a4d8e436691d9e05ebe44fc8811b0291093b83
2c2b532abf61e2a06231c1d3b4d9b2bd0cdb469a
refs/heads/master
2020-08-05T07:51:35.440658
2017-06-25T21:47:57
2017-06-25T21:47:57
212,453,442
0
0
NOASSERTION
2019-10-02T22:32:26
2019-10-02T22:32:19
null
UTF-8
Python
false
false
5,498
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node disconnect and ban behavior""" import time from test_framework.mininode import wait_until fr...
[ "richard@ionomy.com" ]
richard@ionomy.com
c3b7c0e3ebee244ba37f095c0f8193dabcba38e4
43c94633b7f9df80889cf6dc293c410cb48f34b2
/Data_Generator/util/Label.py
2a41cf64c82180a70e5cb06e91a1cd2f4aef5d15
[]
no_license
mjgiancola/MQP
536556c22c7f37c8c72b481e80f37c63c0f25498
39c31c0b7217ad22b6bf30e87986dcca49e33298
refs/heads/master
2021-03-27T09:10:50.562615
2018-04-20T21:37:42
2018-04-20T21:37:42
102,055,545
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
class Label(): def __init__(self, imageIdx, labelerId, label): self.imageIdx = imageIdx # Unique identifier for a particular image self.labelerId = labelerId # Unique identifier for a particular labeler self.label = label # Response from labelerId for imageIdx def __str__(self): return "%d...
[ "mjgiancola@wpi.edu" ]
mjgiancola@wpi.edu
28755bc1b4ae6299ff92bed685855c6060449453
5ba324712de939bfac77f90f034170e45a9cabf8
/lib/runner/runner_action.py
3c09fb1e5e6389e0da200f76af665c39ff065448
[ "Apache-2.0" ]
permissive
DPNT-Sourcecode/CHK-tzfm01
d9e994469159a660e3e16519035781be1224ca24
38971d6b00ba2382e5d3ec2b1837307ffc2f81fe
refs/heads/master
2021-04-06T20:49:26.257611
2018-03-15T03:52:22
2018-03-15T10:28:53
125,350,803
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
class RunnerAction: def __init__(self, short_name, name, client_action): self.short_name = short_name self.name = name self.client_action = client_action class RunnerActions: def __init__(self): pass get_new_round_description = RunnerAction("new", "get_new_round_descripti...
[ "sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal" ]
sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal
b0899d16fe1a2cf357e99b1a96871e994a3beac0
9ae0fe3620c5be4af7801462acc7564e8d4a56f0
/final_IDW_Sprint/SqlServer/SqlServerStatements.py
277d8ccb3cb16a570e69f6de6862616015a957b7
[]
no_license
MacJei/antlr
66ea15b3e8b063354664031dac9427db4c02ad5c
7e945a6424caad00e58f7a4b41b0297556f00294
refs/heads/master
2022-03-20T17:49:06.241851
2019-12-18T12:27:47
2019-12-18T12:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
88,013
py
import re import util from antlr4 import * from SqlServer.parser.TSqlLexer import TSqlLexer from SqlServer.parser.TSqlListener import TSqlListener from SqlServer.parser.TSqlParser import TSqlParser from SqlServer.parser.XxTsqlListener import XxTsqlListener from SqlServer.parser.XxErrorListener import TSqlErrorLi...
[ "noreply@github.com" ]
noreply@github.com
5d3ff32e3d3b9de776b1abbcb0febdd6ce651fc7
a3aee812aae603405299bcb0aabbeed48faca76b
/toolkit/transit_model.py
522f8290ec9ab2b1d094806e51eec82a1a50b263
[ "MIT" ]
permissive
bmorris3/rem
a385e3621b81f8c47c94ce0a321efd252f05c0f7
be758a989fba62eac2a24bc201e855ee08173b47
refs/heads/master
2023-03-19T09:10:35.804653
2019-09-05T12:00:57
2019-09-05T12:00:57
205,139,088
0
0
null
null
null
null
UTF-8
Python
false
false
6,185
py
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import batman from copy import deepcopy import astropy.units as u __all__ = ['transit_model_b', 'transit_model_c', 'transit_model_d', 'transit_model_b_depth_t0', 'transit_model_c_d...
[ "brettmorris@menelaus.unibe.ch" ]
brettmorris@menelaus.unibe.ch
b5f279e0b892ad03556863e8883bdf0635bb56f0
4b86ebac6e2273bec07e8f0f1275a9f4c4700491
/Sort/2947_나무조각.py
b14eb7a5c7ba76ac4a95e165b8923bbaf58b19a0
[]
no_license
chohan3036/algo_study
999d8a9d44b27100009246dcf913e07f36787295
64abbc8a401f9e555692f01917eb78b0fd37d7fb
refs/heads/master
2023-04-07T06:13:16.059638
2021-04-20T04:32:35
2021-04-20T04:32:35
307,859,670
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
import sys reading = lambda :sys.stdin.readline().strip() N = list(map(int, reading().split())) n = 5 for i in range(n): for j in range(1, n): if N[j - 1] > N[j]: temp = N[j - 1] N[j - 1] = N[j] N[j] = temp for k in N: print(k, end=' ') ...
[ "chohan3036@gmail.com" ]
chohan3036@gmail.com
45514722d71dc38be1bbbfcf032663539b9e12cf
34e11e7ee700c7c808b56332b9577a636966e108
/flaskr/auth.py
ebfc7f3978b2664c9b8d9209d9f0c1766dc88525
[]
no_license
reisermn/flask-tutorial
90725c28a07a3ee76fe4b581f37e259c68920899
3a1ee64fed288119b9c177bb383acb705fc3904d
refs/heads/master
2022-11-30T22:53:20.220124
2020-08-21T15:55:27
2020-08-21T15:55:27
286,358,924
0
0
null
2020-08-20T16:26:49
2020-08-10T02:39:33
null
UTF-8
Python
false
false
2,899
py
""" VIEW function responds to requests in an app. We use patterns to match incoming request URLs to the appropriate view (handler) BLUEPRINT organizes a group of related views and other code We register views with a blueprint instead of directly with the app Flaskr blueprints: 1) authentication 2) blog posts """ impo...
[ "reisermn@gmail.com" ]
reisermn@gmail.com
3c365d3bdb2f31866be28b9d2de64f172b9992df
a7bd1419cf15933bd104be918225142ab2ff071f
/plugins/load_csv/__init__.py
8dcf856a2bb76d3da50ada93bc89255cb77e7252
[]
no_license
donaldrauscher/blog-pelican
2ec8b00e3bca25d6ff7d78f139d753321f0a2a79
728b82b016315f6817f1c7bf8d1b365bf6de8d34
refs/heads/master
2021-07-11T10:43:23.275933
2018-11-29T04:26:07
2018-11-29T04:26:07
134,216,977
1
0
null
null
null
null
UTF-8
Python
false
false
24
py
from .load_csv import *
[ "donald.rauscher@gmail.com" ]
donald.rauscher@gmail.com
17d43e67005214e9932a5d7d231bee932c5b8130
20fc2447e02e8f7196c2a1d7f2bb7e749f3fe09d
/src/check_taxadb.py
37925166f80cc3d61163a0e6c50116ebec487e40
[ "MIT" ]
permissive
NCBI-Codeathons/Taxonomy-specific-RPS-BLAST-part-I
797ea74d30616fcd53ff2d99d3eb96b47f153d0c
9825a32b96d4f353be629ce8cc9400695302a07a
refs/heads/master
2020-08-11T05:56:04.765080
2019-11-07T01:15:39
2019-11-07T01:15:39
214,505,493
3
3
MIT
2019-10-24T21:24:32
2019-10-11T18:33:11
Python
UTF-8
Python
false
false
155
py
#!/usr/bin/env python3 import sys from taxadb.taxid import TaxID taxid = TaxID() for t in sys.argv[1:]: name = taxid.sci_name(int(t)) print(name)
[ "christiam@hotmail.com" ]
christiam@hotmail.com
5f30d3f1725d1cc3db178b4b2b173de8303d2da6
27b2b1a0b7c546fbebec9b6304fcb4f99a2453ac
/013-pandas-pipeline.py
c0a1ef4d529f86007ebef37fc4f50e80ace3895f
[]
no_license
tinitiate/python-pandas
a63134c8067c959d156587e40e7a12289e5dac96
30a847d17f8d545a7e988195253a000f1746bc72
refs/heads/master
2020-12-11T16:02:01.759563
2020-08-25T22:54:49
2020-08-25T22:54:49
60,658,070
0
1
null
null
null
null
UTF-8
Python
false
false
2,012
py
""" MARKDOWN --- Title: Python Pandas Pipes MetaKeywords: Python Pandas Pipes Author: (c) Venkata Bhattaram ContentName: pandas-pipes --- MARKDOWN """ """ MARKDOWN # Pandas pipelines * Python pipeline feature where Python functions are combined together as a sequence of steps or connected as pipes, that ...
[ "noreply@github.com" ]
noreply@github.com
f6efa2ef0dcf5a82ef8030bc4cb727220dfac197
7b90654e6c6d896a9373e2a6946e4da88ce3eccd
/constants.py
b5a41a9f91c4dac15500c46fa29ddb4812b3067e
[]
no_license
vivekvenkris/PINTOP
21a8343641c33b644a9dff00e099d60a3cb57365
b7ec1bc48189b69e8feca8788297c2629daf8981
refs/heads/master
2020-07-29T10:27:31.577617
2019-09-20T10:16:36
2019-09-20T10:16:36
209,762,626
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
seconds_per_day = 86400.0 days_in_julian_year = 365.25 seconds_per_year = days_in_julian_year * seconds_per_day arcsec_to_rad = 4.84813681109536e-06
[ "vivekvenkris@gmail.com" ]
vivekvenkris@gmail.com
cecfccd3804eded8e6070a2b6cd696f93a186e21
beb88946598bd4a4be362c80cbc3d0fc8bc64c23
/tests/components/advantage_air/__init__.py
9b7d970536696898988b70961929f48283e1e5a3
[ "Apache-2.0" ]
permissive
eifinger/home-assistant
30de037c008dfa9477cf14a256281d696287f4a9
e8142987a71ffcdee60adf10b6ad81493496da2d
refs/heads/dev
2023-08-23T13:40:28.020854
2023-04-10T16:44:25
2023-04-10T16:44:25
138,125,225
1
0
Apache-2.0
2023-02-22T06:15:31
2018-06-21T05:51:43
Python
UTF-8
Python
false
false
1,096
py
"""Tests for the Advantage Air component.""" from homeassistant.components.advantage_air.const import DOMAIN from homeassistant.const import CONF_IP_ADDRESS, CONF_PORT from tests.common import MockConfigEntry, load_fixture TEST_SYSTEM_DATA = load_fixture("advantage_air/getSystemData.json") TEST_SET_RESPONSE = load_f...
[ "noreply@github.com" ]
noreply@github.com
d95a6c3d7af24f3e4c7075edb1adda46d333e2f8
3cdbd2b4a030846c266e7d01699bd820501c9367
/main/urls.py
b5fcedc747ea96b87b7a2068f0eeddccaba237f2
[]
no_license
bassamalasadi/webshop-task
30f11c0408221186804c71525b171bc16eb48b0e
12a32f13e63d366476d2f8eb862b06df783c39ba
refs/heads/master
2023-02-02T13:54:25.176144
2020-12-18T14:18:34
2020-12-18T14:18:34
322,227,349
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
from django.urls import path from .views import ( ItemDetailView, CheckoutView, HomeView, OrderSummaryView, add_to_cart, remove_from_cart, remove_single_item_from_cart, ) app_name = 'main' urlpatterns = [ path('', HomeView.as_view(), name='home'), path('checkout/', CheckoutView.as...
[ "n7520@student.jamk.fi" ]
n7520@student.jamk.fi
b01a93aed1b6279a7dd60208b5123468319365a0
71662d94736157fca2e8816b00fdfae2d803dc0a
/motor_mva2.py.save
985e9e5bc8cecad0c7acadc91921c943d2ede875
[]
no_license
woojtekk/mpip_gonio_motor
b0d31557daa0124cb89efefc99ffa4c3e71d47f9
1bec6214f2abd2d9eb74de7bb01b843bc238566d
refs/heads/master
2020-04-08T12:27:52.229171
2018-11-27T14:26:04
2018-11-27T14:26:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,107
save
#!/usr/bin/python # -*- coding: utf-8 -*- ######################################### # program do obslugi silnika krokowego # # 2016.01.11 v.1.2 # zajaczkowski@mpip-mainz.mpg.de # ######################################### import time import serial import getopt import sys import math import motor import glob from Con...
[ "mar345@pcbutt163.mpip-mainz.mpg.de" ]
mar345@pcbutt163.mpip-mainz.mpg.de
1ca4addb70f01c76152b42d8331b4327007d5590
222d35e1179708405fef854e3505337e014c8e16
/preprocessing.py
cc49db1851e09507e2d66a36789e820ebf72e0fd
[]
no_license
antonisa/transformers_without_tears
aec77ada82f376efc70903e110100a863a87d71b
91dc1d120cf917c21de1e7af314862c816b4433b
refs/heads/master
2020-09-24T12:58:14.377300
2019-12-04T04:12:41
2019-12-04T04:12:41
225,763,748
0
0
null
2019-12-04T02:43:32
2019-12-04T02:43:31
null
UTF-8
Python
false
false
8,710
py
import argparse import random from os.path import join from collections import Counter import subprocess import numpy as np import all_constants as ac import utils as ut np.random.seed(ac.SEED) random.seed(ac.SEED) def get_parser(): parser = argparse.ArgumentParser() parser.add_argument('--data-dir', type=st...
[ "toannq177@gmail.com" ]
toannq177@gmail.com
0ab887523c36a9a3a0f880417a77e0c20e147a6d
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/6a8e7087831193afbc3e1799460614506743077b-<stack>-bug.py
01dc6fbc3cc25cc1e58e588b0c339369943c2826
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,170
py
def stack(self, level=(- 1), dropna=True): "\n Stack the prescribed level(s) from columns to index.\n\n Return a reshaped DataFrame or Series having a multi-level\n index with one or more new inner-most levels compared to the current\n DataFrame. The new inner-most levels are created by ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
f818cb8ff981546217922c268ad457207da3395e
596c091d7491f7a6767ae2996edc99b32ded95e8
/enrich/split_fastq.py
e910dd9e4f8a60720f3e3d6ca1676e0619ba0bc2
[]
no_license
lstarita/Enrich
c503853255eca1d842b872500469f3b956a2bf9c
15e712e5d92b6484b6376388c6d1d4e466a38933
refs/heads/master
2020-12-26T01:04:00.248919
2014-02-08T05:02:12
2014-02-08T05:02:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,988
py
from __future__ import print_function from sys import stderr import os.path import argparse import json from itertools import izip_longest from fastq_util import read_fastq_multi, print_fastq def assign_library_ids(config): """Assign unique identifiers to each libary in the config object. Checks user-specifi...
[ "afrubin@administrators-iMac.local" ]
afrubin@administrators-iMac.local
1262df2c0ebf1272ac37e4f04368bbaec55044ce
7cce04f40a767272585ea4f175eb3894dfdbeae1
/ros/src/tl_detector/light_classification/object_detection/models/ssd_mobilenet_v2_feature_extractor_test.py
8cd1de9f1abd7a61535dead7ef2fbed8aff31355
[ "BSD-3-Clause", "MIT" ]
permissive
CarNDCapstone/CarND-Capstone
093d39a71508b745780c709e4976e90fdb37125c
82bdeee73e0a788778e9276bbea8ad3376f4214d
refs/heads/master
2023-04-02T00:39:00.644037
2020-04-05T02:14:25
2020-04-05T02:14:25
246,096,920
4
9
MIT
2023-03-24T23:45:51
2020-03-09T17:16:01
Python
UTF-8
Python
false
false
9,504
py
# Copyright 2018 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...
[ "mkolod@gmail.com" ]
mkolod@gmail.com
5f2366b241bccffc74b2fac5632dfe7b07d49cfe
f4b799e24677bff00fb811051816c57e1b94a16c
/lwc/settings/production.py
dbe8351b6bdf23e24ee25203a1ae4bc2ebba7d62
[]
no_license
joshthedudeoflife/lwc_first_python
6e7f236a9d5dd6a48ac7b87bdf4504913f22a04d
5cb56eb67c92196b6a436762f2dbf920dbd18946
refs/heads/master
2021-01-01T05:36:07.946811
2015-07-06T02:17:34
2015-07-06T02:17:34
37,028,087
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
import os from django.conf import settings DEBUG = False TEMPLATE_DEBUG = False DATABASES = settings.DATABASES # Parse database configuration from $DATABASE_URL import dj_database_url DATABASES['default'] = dj_database_url.config() # Honor the 'X-Forwarded-Proto' header for request.is_secure() SECURE_PROXY_SSL_HEA...
[ "josh.chou@ses-technologies.com" ]
josh.chou@ses-technologies.com
7dca2733f4c7e5b4178a1a284fd2614650b0b984
e522c1606e06cd0a2ea82c57b72aac2e065ad429
/programming-team/First Semester/UCB/boxes.py
9d349284cd7c37e4a74902d185a11f42dbe71df4
[]
no_license
Nate8888/programming-contest-practice
80d17d7ccea9491f42ec0cccab7e0cfe80849f17
4c2496260c209190103d7bbef82d866ae4be09b6
refs/heads/master
2023-05-04T16:20:36.136598
2021-05-27T22:52:04
2021-05-27T22:52:04
293,109,179
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
import sys def k_min_max_partitions(my_list, size, k): if k == 1: return sum(my_list[0:size]) if size == 1: return my_list[0] current_min_max = 1e27 for current_index in range(1, size + 1): current_min_max = min(current_min_max, max(k_min_max_partitions(my_list, current_index, k - 1), sum(my_list[curren...
[ "wilk.nathan@gmail.com" ]
wilk.nathan@gmail.com
860bf49e998d8e8e88fe54b99909d0b883952fb5
60a3f4cd40a29fe6198c215d2d6196f043790660
/hw3/hw3-livejournal/hw3q4.py
574ba9a968c9506ee0bc6605cece7c4344d4ebf9
[]
no_license
twistedmove/CS246
e4b55001c05f59a22abbef859d184aeaf19e57d1
a6272e0b49541cc6d15f0b84655c2f750255fce3
refs/heads/master
2021-01-16T22:28:29.434630
2015-06-11T07:48:19
2015-06-11T07:48:19
46,267,166
4
0
null
2015-11-16T10:14:58
2015-11-16T10:14:57
null
UTF-8
Python
false
false
2,435
py
# store all nodes in a set def readfile(filename): nodes = set() lines = open(filename, 'r') for line in lines: node = line.strip().split("\t") nodes.add(int(node[0])) nodes.add(int(node[1])) return nodes def find_dense_subgraph(filename, nodes, epsilon): s_tilde = nodes s = nodes counter = 0 while len(s...
[ "cak199164@hotmail.com" ]
cak199164@hotmail.com
d0c6e4689bcc224f4fde752a7459a16adbb45cf1
2e263bb909bb706957990f23d4d07a33fe031a61
/curiosity_debug.py
dffbbe8768dbdc709baeb1ed25319c6dda169585
[]
no_license
liziniu/SuperMario
3e9b776d4c490275b1684b4fd3b3471914811b7d
64a33901c61591348dd4b9c878e396901dea27b6
refs/heads/master
2020-05-16T02:32:10.694180
2019-06-02T10:08:11
2019-06-02T10:08:11
182,632,295
0
0
null
null
null
null
UTF-8
Python
false
false
7,193
py
import matplotlib import numpy as np import tensorflow as tf matplotlib.use("Agg") import matplotlib.pyplot as plt import pandas as pd import os import argparse import pickle import json from baselines.common import set_global_seeds from curiosity.dynamics import Dynamics from run import build_env from scipy.stats impo...
[ "374387855@qq.com" ]
374387855@qq.com
4f49eaeafced9098c3e0afdcae58480ccc36debb
8b80b4614fa352d42728876eb462ae3e57eb9f43
/chat_bot/apps.py
098525f870e2078877f45a42fbb89b1a030eb70e
[]
no_license
AgRuN1/BotEngine
0a20f77dfd3ee0aff362d3859ed16c0395981686
8e4c4cb1c0d40effcf66431a1a1357f136901b5e
refs/heads/master
2021-09-18T15:20:56.544777
2018-07-16T09:46:18
2018-07-16T09:46:18
114,546,044
0
1
null
null
null
null
UTF-8
Python
false
false
87
py
from django.apps import AppConfig class VkBotConfig(AppConfig): name = 'chat_bot'
[ "grigoriy6667@gmail.com" ]
grigoriy6667@gmail.com
b0ad45f5cd8de0ab8bcca987b3606ddc28cb1922
1fbc1711ee36860fc2b0be74f43dad1bb9c841e9
/Blog/migrations/0004_auto_20191121_1701.py
0f3c37417cf745ed72cd952bc001d41a8aad2f27
[]
no_license
GSeckin/WebProjem_vektorel
540c7d8494fab54882aa81010b133bfba1cd5740
37835ce22b370f29dc98e7800493c4ce881c5af1
refs/heads/master
2020-09-21T13:53:56.503655
2019-11-29T08:38:53
2019-11-29T08:38:53
224,808,453
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
# Generated by Django 2.2.4 on 2019-11-21 15:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Blog', '0003_auto_20191121_1657'), ] operations = [ migrations.RenameField( model_name='alanlar', old_name='a1...
[ "noreply@github.com" ]
noreply@github.com
ff3b0522f795040dd1eea2c2af80b0748c4a76eb
151e4ab8bdcff37ded920f32250331c1edc1772d
/tlmshop/serializers/__init__.py
87773f17382c4d432810508bc9149e2b62673837
[]
no_license
LegionMarket/django-cms-base
79069ee67628ff7d10338b48b154fe087863e1ea
1b6fc3423e3d0b2165552cc980432befb496f3e0
refs/heads/master
2020-12-30T17:10:33.866390
2017-05-25T12:49:41
2017-05-25T12:49:41
91,057,746
0
0
null
null
null
null
UTF-8
Python
false
false
2,797
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.utils.safestring import mark_safe from rest_framework import serializers from shop.serializers.bases import ProductSerializer from shop.search.serializers import ProductSearchSerializer as BaseProductSearchSe...
[ "spivegin@txtsme.com" ]
spivegin@txtsme.com
edae92fca6a7118bf039c95c79a63b96b60302ce
b85fb032f131ac2a74c56238dd58fc7ede194e11
/blog/views.py
9310279da334a46051d0cac3e293f39088752d44
[ "MIT" ]
permissive
sanbeichahegongheguo/mysite
4e078fae03ad01dd3489b1304765a26e944d9ff1
939ba83299bf93544bb7533df238562eafd89545
refs/heads/master
2020-03-24T19:04:26.992997
2018-07-30T18:03:23
2018-07-30T18:03:23
142,819,110
0
0
null
2018-07-30T17:37:35
2018-07-30T03:17:11
JavaScript
UTF-8
Python
false
false
4,817
py
from django.shortcuts import get_object_or_404, render from django.core.paginator import Paginator from django.conf import settings from django.db.models import Count from django.contrib.contenttypes.models import ContentType from .models import Blog, BlogType from read_statistics.utils import read_statistics_once_rea...
[ "w1021968071@126.com" ]
w1021968071@126.com
2f07383bfc2b9984072cbf5c3ab0ad171fc409ae
f92fb9b9abe021d5604d3b5fb2ade0fbe6d85e3e
/robot/logging.py
30ffb6e8cc9edea7f47e51458319b66961d6af58
[ "MIT" ]
permissive
chuchiring/wukong-robot
a9f4656db45656962614451ebb170b4ca4573871
f31982738df5b5c3929c713415aee04d13f2f4c8
refs/heads/master
2020-04-23T06:45:10.085706
2019-02-16T05:51:26
2019-02-16T05:51:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,096
py
import logging import sys import os from robot import config, constants from logging.handlers import RotatingFileHandler, HTTPHandler PAGE = 4096 DEBUG = logging.DEBUG INFO = logging.INFO ERROR = logging.ERROR def tail(filepath, n=10): """ 实现 tail -n """ res = "" with open(filepath, 'rb') as f: ...
[ "m@hahack.com" ]
m@hahack.com
b921ba83d24c15aa2820df934f2c3f8709839fae
bcc649990c6c0f865b292355fdffa28a2a2e82e0
/problem/migrations/0020_auto_20190618_0145.py
c99ffc09d4770cabecabc63efcb5523064c76047
[ "MIT" ]
permissive
scintiller/OnlineJudge
b341bbd8bac77c3d14ded1eebbf32f5527de2f8c
4e66da0e366c8b950a1ccae2b435b81d9fe07e6c
refs/heads/master
2022-12-16T17:09:12.190413
2019-07-10T09:25:52
2019-07-10T09:25:52
191,087,149
0
0
MIT
2022-11-22T03:34:17
2019-06-10T03:04:20
Python
UTF-8
Python
false
false
487
py
# Generated by Django 2.1.7 on 2019-06-18 01:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('problem', '0019_comment'), ] operations = [ migrations.AlterField( model_name='comment', ...
[ "yujunzhao.ming@gmail.com" ]
yujunzhao.ming@gmail.com
2349f3a4c1d2faf1f5e0ec725221cb82f98cc292
1dd2c4f684f4a6d75c9b696d0bda6924fa3f2553
/Day 40 of 365.py
0d6d5f964f5fbb304f00a012c457a5bfde16940a
[]
no_license
mishra-atul5001/365-Days-of-Python-and-ML
d306c016f3d27a0820d81273320b4a16c943f4a0
0bfcb99b0f2a61ab46f2007194bd273780eb3fa3
refs/heads/main
2023-06-30T19:40:03.234052
2021-08-01T08:35:35
2021-08-01T08:35:35
359,490,627
6
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
# -*- coding: utf-8 -*- """ Created on Mon Jun 7 09:36:19 2021 @author: Atul Mishra """ ''' TRIANGLE An array A consisting of N integers is given. A triplet (P, Q, R) is triangular if 0 ≤ P < Q < R < N and: A[P] + A[Q] > A[R], A[Q] + A[R] > A[P], A[R] + A[P] > A[Q]. For example, consider ...
[ "atul.mishra5001@gmail.com" ]
atul.mishra5001@gmail.com
c3056d0e467540185184c6793667c12680324298
0ffc22e924d60ef8e26536ba7b0eaccaffb87335
/fogmsg/frontend/app.py
72abf351770f361ec99fa4b49d5bed5a8e55c52b
[ "MIT" ]
permissive
ankurhcu/fogmsg
6b77acf45cb036d8b7d572bb3ffd466cfacd2171
9ecb4a309235b26503ee819288506fd30c3a6590
refs/heads/master
2023-06-04T12:10:23.804196
2021-06-28T14:52:28
2021-06-28T14:52:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,753
py
import json import threading import hashlib import time import sys from datetime import datetime from flask import Flask, Response, jsonify, render_template from fogmsg.master.config import MasterConfig from fogmsg.master.master import Master from fogmsg.master.persistence import SQLitePersistence # noqa cli = sys....
[ "mail@moritzludolph.de" ]
mail@moritzludolph.de
d755209ee2ddbde3f348bfcc20afc00768056f8e
d2024f10e641ab2f28a888d23071edc032299498
/demo04062018/object_rec_camera_pointing_v3_ts.py
1ce5bae4c0cba1cb4c90475cc91a28de52d3016d
[]
no_license
chen116/demo2018
6f2ae07150182b8e14a2eacbc57bdc79c03e6dee
d289545bcc30445be26e1381d5301d8f657d0c6e
refs/heads/master
2021-04-27T13:11:44.742650
2018-07-14T14:38:37
2018-07-14T14:38:37
122,435,014
0
0
null
null
null
null
UTF-8
Python
false
false
17,290
py
# USAGE # python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel # import the necessary packages from imutils.video import VideoStream from imutils.video import FPS from foscam_v3 import FoscamCamera import numpy as np import argparse import imutils impo...
[ "yvictorck@gmail.com" ]
yvictorck@gmail.com
43fed96463c42d255591f394054026cc9c219644
8a5adcc288433a8f13eb474123d173890898bbde
/difference_of_riccati.py
588655fd498e2d4493689d228f17b53292243ac8
[]
no_license
radluki/SimpleCalculations
f427152f3f5abf7892f281c09ec0e7ced37898c8
6916d24919ee4a6289b40cf3f6eb7605f2f2f46f
refs/heads/master
2021-01-18T22:29:29.828013
2016-11-01T14:08:37
2016-11-01T14:08:37
72,540,913
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
import pickle import numpy as np import matplotlib.pyplot as plt with open('riccati_hamiltonian.pickle','rb') as f: ham = pickle.load(f) t = ham[0] ham = ham[1] with open('riccati.pickle','rb') as f: ric = pickle.load(f) ric = ric[1] diff = np.log10(np.abs(ham - ric)/np.abs(ric)) plt.plot(t,diff[...
[ "radluki@gmail.com" ]
radluki@gmail.com
8ddd9a42545354793fa7af9bb95cedf3c4eccbe1
1e627d88c3589b4a7e0d2079470e6fe9652a3299
/compiler_test/resources/generator/py/TAC/TAC.py
69f3e300bb6cb78a4e1a49c13fb835dd07176c1a
[]
no_license
zhaoyiping0622/c0compiler
96eb3f946ddc7b5efaff6f1c1b5f1d7a7e7eb2b9
33b456369e5e94971c4ba038eb19db62c27b2f3d
refs/heads/master
2022-11-12T09:58:30.848876
2020-06-15T10:59:30
2020-06-15T10:59:30
248,148,825
4
0
null
null
null
null
UTF-8
Python
false
false
3,883
py
def localName(name, valueType="int"): if valueType.lower() == "int": return "li" + name elif valueType.lower() == "char": return "lc" + name def globalName(name, valueType="int"): if valueType.lower() == "int": return "gi" + name elif valueType.lower() == "char": return...
[ "zhaoyiping0622@gmail.com" ]
zhaoyiping0622@gmail.com
85a9c7cc2c8dbd8ce1eda62b1dbc50f5b32114df
bb6ebff7a7f6140903d37905c350954ff6599091
/tools/clang/blink_gc_plugin/process-graph.py
2bff96f76ad6c8f3698738e85c74f29c3a901e19
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
Python
false
false
13,211
py
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse, os, sys, json, subprocess, pickle, StringIO parser = argparse.ArgumentParser( description = "Process the Blink ...
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
3212f629f801602376f1640bc54b39d2cfe2a404
85f368e885b0840929892b94c241edc2deb61818
/register.py
a03cfb0c7d9b992c7b74e201762f2267d7c5fe39
[]
no_license
Jie7-self/git_learn
f0922028b3a0b5e63e816c088fc5d0638544de4a
6922da0099cf87888e02c8636419807783b55982
refs/heads/main
2023-02-16T19:39:44.412787
2021-01-15T07:17:20
2021-01-15T07:17:20
329,484,988
0
0
null
null
null
null
UTF-8
Python
false
false
33
py
num = 100 num2 = 200 num3 = 30
[ "948477454@qq.com" ]
948477454@qq.com
ed3abbb42881c727586f29ac2bd528ad1a8c0475
f42b44f91c74f6f392821dcbf3519d180e8dd983
/scrubadub/filth/postalcode.py
031db18ab6774ef8b5f31a239c0ae75f9c983b03
[ "Apache-2.0" ]
permissive
kevin2107/scrubadub
641e559aaf5b20f4acca055ed357cfb24bf7bb42
81bd15912a668cfb25dcf324f2ae6c1b33adcfc2
refs/heads/master
2023-01-19T13:44:46.169052
2020-11-16T12:06:18
2020-11-16T12:06:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
from .base import Filth class PostalCodeFilth(Filth): type = "postalcode"
[ "thomas.bird@leapbeyond.ai" ]
thomas.bird@leapbeyond.ai
8eafd7e316029d9719d71cf80f9817845735177a
eb85c96c3783be407b396956c13448d89f5e5fee
/design_patterns_with_python/2-python-design-patterns-m2-exercise-files/Strategy/StrategyVariation/strategy_variation/shipping_cost.py
39dd4ddcb717c4d486e40cddd906eba548af071d
[]
no_license
ForeverDreamer/python_learning
83c2c290271dbf060ee1718140b8dfd128b82b20
ff905c4811ddb688f8ee44aed8c4d8067db6168b
refs/heads/master
2022-04-30T03:23:45.162498
2019-07-05T07:55:01
2019-07-05T07:55:01
181,037,513
1
0
null
2022-04-22T21:12:46
2019-04-12T15:41:44
Jupyter Notebook
UTF-8
Python
false
false
170
py
class ShippingCost(object): def __init__(self, strategy): self._strategy = strategy def shipping_cost(self, order): return self._strategy(order)
[ "499361328@qq.com" ]
499361328@qq.com
51319bf280df39fb8540cf864ca9e138dfd8ab20
eaa0f14677e111d3c2e83cebfdfcfd00b7575e61
/common/functionality.py
e8bab64fe34145b47696cbded138d08f2ebf2685
[ "MIT" ]
permissive
pierstoyanov/radionator
ae0f2ecfc18e8045a082c7b906db8fcbf4772f32
3c6212179ccd2e135727f2ce95fdd0e517ce1551
refs/heads/main
2023-07-16T15:46:58.539667
2021-09-07T16:58:36
2021-09-07T16:58:36
318,448,349
1
0
MIT
2020-12-15T16:07:20
2020-12-04T08:13:46
JavaScript
UTF-8
Python
false
false
310
py
def test_cooke(request): """ Return the result of the last staged test cookie. returns cookie_state = bool """ if request.session.test_cookie_worked(): request.session.delete_test_cookie() cookie_state = True else: cookie_state = False return cookie_state
[ "0885095540gH!$!" ]
0885095540gH!$!
a9a8ed1d6ba3651a8d9fe19522e501d2655d1271
bdbdd19b70cb32ba38fff919f16f76f52b6c5a20
/rosters.py
3cc852e44189e73e7e824c4ec4428fcdb96ebdf4
[]
no_license
Element23VM/nhlgoaldeconstruct
bfc151e76082c478d0f15580e35e85390992f70d
ee6a3d3e71ea9f267a744b07eb77418f4b9b649c
refs/heads/master
2020-08-21T06:31:41.404153
2019-10-18T21:22:14
2019-10-18T21:22:14
216,107,211
0
0
null
null
null
null
UTF-8
Python
false
false
10,136
py
##METRO Hurricanes = [ "Aho, S", "Staal, J", "Teravainen, T", "Niederreiter, N", "Dzingel, R", "Haula, E", "McGinn, B", "Martinook, J", "Svechnikov, A", "Necas, M", "Foegele, W", "Wallmark, L", "Hamilton, D", "Slavin, J", "Gardiner, J", "Pesce, B", "Edmunson, J", "Fleury, H" ] Capitals = ...
[ "noreply@github.com" ]
noreply@github.com
b0c652a0481b0f73ad11a84bb549814dfbbdff09
da6fe795eec82abddcc2590696e3cdc0cf479445
/code/repository.py
b2feefb2acca4238608de76597c9ae80f8a55211
[]
no_license
techknowledgist/tgist-features
d0b37228ea65d22dec08983d259f2de92dbf02a2
994b371e68030f462074ea9a9c32a7f3ddc394f4
refs/heads/master
2021-03-24T12:59:37.417498
2019-05-14T14:09:20
2019-05-14T14:09:20
114,810,376
0
0
null
null
null
null
UTF-8
Python
false
false
28,635
py
"""repository.py Code to build, manage and access repositories. A repository needs to be initialized once. Once you have a repository you can do several things: 1- adding all files from a corpus (both sources and processed files) 2- adding sources from a list of files 3- querying the repository for data ...
[ "marc@cs.brandeis.edu" ]
marc@cs.brandeis.edu
76d9d42055517e5a038e413c6c567bf7a7db88a9
332545376dd31c7560f5ef83dbe25fd483b667a9
/.github/scripts/windows/release.py
a29f9e930e6b48df99ff1f0abca6bc2894556ae0
[]
no_license
SaurusXI/HandwritingParser
2c7230cab83f1890d82340309885fab82c64c658
78da7b03b9d1413476ff060d49ffd4ae529ed7a4
refs/heads/master
2020-12-14T08:48:14.927539
2020-10-15T17:42:05
2020-10-15T17:42:05
234,691,645
5
1
null
2020-01-18T06:22:44
2020-01-18T06:22:43
null
UTF-8
Python
false
false
171
py
from subprocess import Popen, PIPE release_process = Popen(['python', '-m', 'fbs', 'release'], stdin=PIPE, stdout=PIPE) release_process.communicate(input=b'$Env:VERSION')
[ "vermashantanu@hotmail.com" ]
vermashantanu@hotmail.com
ad14696ccc3a66d98529f577771fe50ff92df097
8038c72e9c05b9a962a78002e1ac32ac5797d33f
/qfcommon/base/dbpool.py
079fa5d9342b7d212f06955af235fb6c82168436
[]
no_license
liusiquan/open_test
faaf419dcd5877558e25847edf5e128c5e9e64b2
0cb0aaf401234ac3274d34dcf08ff633917db048
refs/heads/master
2021-01-11T20:44:25.567470
2017-01-18T10:13:54
2017-01-18T10:13:54
79,174,997
0
3
null
null
null
null
UTF-8
Python
false
false
43,385
py
# coding: utf-8 import time, datetime, os import types, random import threading import logging import traceback import pager from contextlib import contextmanager log = logging.getLogger() dbpool = None def timeit(func): def _(*args, **kwargs): starttm = time.time() ret = 0 num = 0 ...
[ "qfpay@TEST107.(none)" ]
qfpay@TEST107.(none)
3bc34b4d6665f4202cf4b376d9fbdded0c76099a
ffc4d5ceda4829c6070ebf66c49f56851a2c8e82
/food/migrations/0002_auto_20200730_2319.py
e850af8575bbefa747819c668b27d5c49a12cc18
[]
no_license
diegovgo/anunciadoos
9ac6d22a61b3a9b7ffda5f0a2df0f04c4aa985df
bb111fb9dcf4d2dff689d807a330b491cf88418e
refs/heads/main
2023-03-21T04:57:16.036121
2021-03-16T03:00:41
2021-03-16T03:00:41
310,102,463
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Generated by Django 2.2.5 on 2020-07-30 23:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='restaurant', name='district', )...
[ "dvilela@sacatucita.com" ]
dvilela@sacatucita.com
8390cd4854229dfee6b142cd9d5bbad654885cf3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_223/ch87_2020_04_29_13_42_03_524040.py
51d2d5546b1465b3bf43fb948f7677c962d2a02a
[]
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
297
py
with open ('churras.txt', 'r') as churrastxt: linhas = churrastxt.readlines() print (linhas) custo = 0 for linha in linhas: separa = linha.split(',') for e in separa: e1=float(e[1]) e2=float(e[2]) custo+=(e1*e2) print (custo)
[ "you@example.com" ]
you@example.com
ca4dd9e02ebcd2cbdeb505ca9d3dd2c74bbba967
1b059f04961e743bc0bafd0028da94feac11c9bd
/src/jstools/screeps/__init__.py
7228330cd9f48af108d3e38951296f45ecd41887
[ "MIT" ]
permissive
daboross/screeps-ai-v2
d18bb59179afd52fdfd3a73981fc09324591d66f
8bb49f59c8c745801d1aef54e1734e28414171e7
refs/heads/master
2020-07-07T23:49:52.329480
2019-08-21T04:39:22
2019-08-21T04:39:22
203,507,433
2
0
null
null
null
null
UTF-8
Python
false
false
8,524
py
from typing import TYPE_CHECKING if TYPE_CHECKING: from transcrypt.modules.org.transcrypt.stubs.browser import __pragma__ __pragma__('skip') from .constants import * from .metadata import * from .classes import * from .transcrypt import * # Generated manually using regexes on the sub files __all__ = [ # con...
[ "daboross@daboross.net" ]
daboross@daboross.net
b4a637358f8fd61fff627c1eb8da57d3effb6445
8b942cbd6a0da0a61f68c468956ba318c7f1603d
/sortings/0056_merge_intervals.py
9ebfcf815fa3d6974a6efdde33f440b51204ad67
[ "MIT" ]
permissive
MartinMa28/Algorithms_review
080bd608b0e0c6f39c45f28402e5181791af4766
3f2297038c00f5a560941360ca702e6868530f34
refs/heads/master
2022-04-13T03:56:56.932788
2020-04-06T03:41:33
2020-04-06T03:41:33
203,349,402
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
class Solution: def merge(self, intervals: list) -> list: sorted_intervals = sorted(intervals) idx = 0 while idx < len(sorted_intervals) - 1: start, end = sorted_intervals[idx] next_start, next_end = sorted_intervals[idx + 1] if end >= next_start: ...
[ "1135485226@qq.com" ]
1135485226@qq.com
8686a1b32b1685b2635a7238ff1b3eb919805f9d
678d8a9229893877d95c656ca06fcad04c0b02ba
/qa/modules/razor_api.py
f85b74503a5375e6e81750c305c37754e5008cc3
[]
no_license
mattt416/jenkins-build
d8e9000c940fa2abb4520b062f7f7a9ca5194e72
21d9465c3f458c37209d7ea6e357836c063dcd2a
refs/heads/master
2021-01-18T10:29:44.234642
2013-06-18T21:35:41
2013-06-18T21:35:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,333
py
import json import requests class razor_api: def __init__(self, rzrip, rzrport='8026'): """ Initilizer for razor_api class""" self.ip = rzrip self.port = rzrport self.url = 'http://' + rzrip + ':' + rzrport + '/razor/api' def __repr__(self): """ Print out current instn...
[ "john.curran@rackspace.com" ]
john.curran@rackspace.com