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
c4536ced8cf0afaa62079ccb55b15020742c9da0
d4d2966383a007c7538168db18f014cfa93c2d6c
/veho/vector/updater/__init__.py
0efe785e1cdf89d19b56c03368546442e0db6922
[]
no_license
pydget/veho
d4823552f43d810d1df345a38f3b1e219efb14b6
c2d915cfae3bcf0c4c1c0c0d85fd8058b62c6670
refs/heads/master
2023-07-25T20:36:56.765304
2021-09-07T07:50:22
2021-09-07T07:50:22
287,419,739
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
from typing import List, Any def push(vec: List[Any], element: Any): vec.append(element) return vec
[ "hoyeungw@outlook.com" ]
hoyeungw@outlook.com
dd7a74aae4452673fbd8b6b9da5319947260810d
07917881310fc81d85a2cbdf27c9b3c4fa03c694
/python1901/1_python基础/day12/9.二进制字符串内存的读写.py
61292ea3461da944d5c5e4f03aa01e016bb7a458
[]
no_license
zaoyuaner/Learning-materials
9bc9a127d1c6478fb6cebbb6371b1fd85427c574
1f468a6f63158758f7cbfe7b5df17f51e3205f04
refs/heads/master
2020-05-18T11:38:45.771271
2019-05-20T09:07:44
2019-05-20T09:07:44
184,384,050
2
3
null
null
null
null
UTF-8
Python
false
false
383
py
#!/usr/bin/env python #-*- coding: utf-8 -*- # author:zhangjiao from io import BytesIO #在内存中读取二进制文件/字符串 bio = BytesIO() bio.write("中国".encode("utf-8")) print(bio.getvalue()) bio2 = BytesIO(b'\xe4\xb8\xad\xe5\x9b\xbd') print(bio2.read().decode("utf-8")) with open("img.jpg","rb") as f: str1 = f.read() bio3 = Byt...
[ "13510647877@163.com" ]
13510647877@163.com
dd20345f9aa1ca97df79d5ea41ba5dc4c76ff6c6
02be25344a36bf58993d690ce3d3eafab30ccf57
/PythonAndPygameArcade/Chapter 4 Guessing Games with Random Numbers and Loops/4.3/PythonNestedForLoops/PythonNestedForLoops/test.py
3495fc6f64e3a36fd86012c2bf23e416064a0b03
[]
no_license
rsoemardja/Python
127a81e1d94888f8990449faeba34dbe9e2f5f97
3ad930a0f419112aa83cd808d8f51fcd050935cc
refs/heads/master
2021-07-06T06:15:49.509879
2020-12-20T02:34:05
2020-12-20T02:34:05
210,327,520
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
# We will start with code like so #The brackets means that how many times it will be repeated for i in range(3): print ("a") for j in range(3): print("b") #This will loop 3 times and the for loop in the indentation will loop 3 times # but with b since the loop is 3 times and b's loop 3 times b will be printed ...
[ "rsoemardja@gmail.com" ]
rsoemardja@gmail.com
c7ca718e6ab80d69c6d40bd639dcc99076fa18c7
4b7e282fe480415f5d52c0fc0429f144156190fe
/google/ads/googleads/v7/enums/types/campaign_status.py
37ba26069649af25c19a480115e6cee974e5a137
[ "Apache-2.0" ]
permissive
Z2Xsoft/google-ads-python
c4750357bb19da91bb3b6bf2fa84bef9d2df36d3
1779d52a0446c8afb2437b0a9e103dcb849f5590
refs/heads/main
2023-08-18T15:22:17.840364
2021-09-26T04:08:53
2021-09-26T04:08:53
410,444,398
0
0
Apache-2.0
2021-09-26T04:08:53
2021-09-26T03:55:38
null
UTF-8
Python
false
false
1,153
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...
[ "noreply@github.com" ]
Z2Xsoft.noreply@github.com
97824f0396c638927e31ae2d07adfee21ee71446
473274584ef01acc874783ef14ac30f8c4beb861
/about/apps.py
a8b41b6cb960fe5c497f53f8129e080b768cf927
[]
no_license
isaev4lex/GoodWell
a58d407d06d0bdfd82da0b09df3181f90a91504d
c5600d6de951453f9e2197d4498947e484cafab5
refs/heads/main
2023-09-02T12:11:04.797298
2021-11-01T06:26:23
2021-11-01T06:26:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
from django.apps import AppConfig class AboutConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'about' verbose_name = 'О компании'
[ "FWorld21@protonmail.com" ]
FWorld21@protonmail.com
41b205b3cf071a04da84ecdb34e9a2a4807c9089
0ca2d3fcd53fb9795c2d8741affe87cccede300c
/scipy_doc/routines.ma.html/numpy.ma.notmasked_contiguous.py
677a2dc7c1559f6ed3736acb6082cda0611688db
[]
no_license
yzozulya/numpy_test_examples
9bafc5d0711149a3366a0644309be6ff6d480c7a
4b1e65b160728a4c483d883bd00b72b2f61377b8
refs/heads/master
2021-01-01T19:01:50.560912
2015-04-08T12:18:46
2015-04-08T12:18:46
33,604,541
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
import numpy as np a = np.arange(9).reshape((3, 3)) mask = np.zeros_like(a) mask[1:, 1:] = 1 ma = np.ma.array(a, mask=mask) np.array(ma[~ma.mask]) np.ma.extras.notmasked_contiguous(ma)
[ "yulia.zozulya@jetbrains.com" ]
yulia.zozulya@jetbrains.com
91ee4d3f11d74098d05068eeb508b1195da77aa8
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/customer-profiles_write_f/profile-object-type_delete.py
2e87de54acfd417f546943f381e3f745df549d11
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
6a8754c1a2bc6cb3ea3c0530d909b07479376269
a3699050efcd0b991d714d68dd4d91555bcc2a4f
/bsv.py
bc4d5c1629a70e43064385368c147343715df487
[ "MIT" ]
permissive
mobarski/smash
94af601dffed1d54f7c4cc0f7d1c22b3f8eff325
a3e622019ea5e0d77232d3d37531ef6b3add2dd4
refs/heads/master
2021-01-19T00:55:56.974534
2017-03-31T20:01:35
2017-03-31T20:01:35
59,865,106
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
""" Blank Separated Values """ import re p_row = """(?x) "[^"]*" | '[^']*' | \S+ """ re_row = re.compile(p_row) def rowiter(text): for line in text.splitlines(): line = line.strip() if not line: continue yield re_row.findall(line) def findall(text): return re_row.findall(text) def format(row,sep=' '): def...
[ "mobarski@pl.grupa.iti" ]
mobarski@pl.grupa.iti
919c3a723761e3dfa04b1a31eb53b7d5cb84fc4c
37321963ee1382039052481ec4b3ac71f669e2fe
/usaspending_api/references/migrations/0003_add_definition.py
9edbe6ea455a5f4b830c9c34757309f82889a7cc
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
vitorbaptista/usaspending-api
158121d393c4d99a788e0ee7e6c804b947ba17b7
67364a33b6909ba3993f197b35fd3436c3229313
refs/heads/dev
2021-07-05T17:15:52.398868
2017-09-27T19:51:05
2017-09-27T19:51:05
105,155,363
0
0
null
2017-09-28T13:59:31
2017-09-28T13:59:31
null
UTF-8
Python
false
false
1,357
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-05-02 14:19 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('references', '0002_auto_20170503_1737'), ] operati...
[ "catherine.devlin@gsa.gov" ]
catherine.devlin@gsa.gov
17739152c9133465047232fe76d655a4ca8cad26
c61e90cc7cb5ae7e21579815cd04f5287e7134da
/jitfintask/settings.py
2527356471c956c2eba5cd81d1228e935a4125c1
[]
no_license
boxabhi/jit_fin_task
0bfef411e336689288941a704c6463c24ea871bc
930408ea89cf9a98670c1ac45ad1557e8a945060
refs/heads/main
2023-02-22T07:25:10.529384
2020-12-28T16:49:07
2020-12-28T16:49:07
323,357,052
0
0
null
null
null
null
UTF-8
Python
false
false
3,356
py
""" Django settings for jitfintask project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from path...
[ "abhijeetg40@gmail.com" ]
abhijeetg40@gmail.com
f713a66fd6594c7163f5bf4b9ebcd44a0630f397
986bd8f5d489534dea7d644b760583dd5d589980
/0096_unique_binary_search_trees.py
12bd85f92f194cb13be482acb2010fe20b899b5a
[ "MIT" ]
permissive
subwaymatch/leetcode
f259352df611e0c0cc1101bb1120099e8faa939e
63ac467d8c6b36656975eb58f3b1c34474586bf2
refs/heads/master
2023-01-28T09:50:01.762731
2023-01-10T15:32:41
2023-01-10T15:32:41
135,706,505
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
class Solution(object): def numTrees(self, n): """ :type n: int :rtype: int """ num_bst_list = [1] return self.numTreeDP(n, num_bst_list) def numTreeDP(self, n, num_bst_list): # If n doesn't exist in dp table, recursively count it ...
[ "noreply@github.com" ]
subwaymatch.noreply@github.com
83fe74a008f24ca58ee291ce96cffe3dd0ef475a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02778/s514946866.py
2a4febd4d13d892ca5297416a631e9e067b93910
[]
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
101
py
s = str(input()) S = list(s) for i in range(len(S)): S.append('x') S.pop(0) print(''.join(S))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
075a3012e7a2be1e770b8cbdba3f544573f66628
553af49f5937ac8fdf47e826315ea5a761b56d0d
/lecture_03/11a_networks_info.py
73e11b0a77a05daa1b878fff0e23589e703e84e1
[]
no_license
compas-ITA20/ITA20
6ef232b6376de8a8b6391394f6b2f6e37f5d2068
244ddbfdc9480f4ea8dda7f983f600f4793594d8
refs/heads/main
2023-01-24T20:30:12.360193
2020-12-09T10:47:44
2020-12-09T10:47:44
300,848,724
3
2
null
null
null
null
UTF-8
Python
false
false
363
py
import compas from compas.datastructures import Network from compas_plotters import NetworkPlotter network = Network.from_obj(compas.get('grid_irregular.obj')) text = {node: str(network.degree(node)) for node in network.nodes()} plotter = NetworkPlotter(network, figsize=(12, 7.5)) plotter.draw_nodes(text=text, radiu...
[ "vanmelet@ethz.ch" ]
vanmelet@ethz.ch
2a6eaed4b33776df8b4edb4299c4cb1253aa2c06
0c3debebb2c926d491f2e17e6b74b25ad56ef750
/linkedListRotationByK.py
f20efda18a597a97d5207707321630071d3306c9
[]
no_license
WillLuong97/Binary-Search
e711f92dede34ce847dc170150dd6012b421698c
2a89774f7cd3861501bd94832f56709c134b4d17
refs/heads/master
2023-04-16T15:47:41.506730
2021-04-28T19:28:11
2021-04-28T19:28:11
287,374,295
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
py
#This python program is the solution for Leetcode 61: Rotate List #Prolblem statement: ''' Given a linked list, rotate the list to the right by k places, where k is a non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL Explanation: rotate 1 steps to the right: 5->1->2->3->4->NU...
[ "tluong@stedwards.edu" ]
tluong@stedwards.edu
78de7c9bf73cb22d9e60fa3695598eb3126e6e6e
849f043d5c26e2bc6781801df8684b6ea5c78e6e
/base/python_base8.py
8f01e37f5cade2d2e709688435c7947a1b70ecad
[]
no_license
alexzinoviev/itea_c
d464a7ba76fa3bdad486649130ebecf4ef3b999e
ad55c326add2654e8cf342470ec2860e583247be
refs/heads/master
2021-01-18T20:29:44.522745
2017-06-03T10:24:10
2017-06-03T10:24:10
86,972,187
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
l = [1,2,3,4,5,6,8,1,4] d = {} for i in l: if i in l: print(i) print(d) break d[i] = True print(d)
[ "shurik.zinovyev@gmail.com" ]
shurik.zinovyev@gmail.com
77eb0169bda7db7bd5ab0bb32c44946cd85f7f10
e5e3a924ab5ef8f48ef4a4942b77f91141b8b477
/httpd.py
6a687960d14a856b5e92f54d32afcc51f0c5fdaf
[]
no_license
maratkanov-a/highload_web_server
e45f3b1f3cc36d79773c2f35deb4cf8b8745355a
f8d0b38691c8dc392a90bd437f519ad530bc7ba1
refs/heads/master
2021-01-11T19:43:11.757580
2016-10-16T13:41:42
2016-10-16T13:41:42
69,187,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,597
py
# coding: utf8 import argparse import socket from multiprocessing import Process from net_http import set_response_header, get_response from config import host, port, AMOUNT_THREAD, PROJECT_ROOT, AMOUNT_CPU def thread_def(server_sock): while True: client_sock, client_addr = server_sock.accept() ...
[ "a.s.maratkanov@gmail.com" ]
a.s.maratkanov@gmail.com
2f0b0e0d34fe310ea9acc3673a994fd275f3495c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02419/s340422221.py
f108de2c48ddfab52fb146072aa9dfc1d71cf8b1
[]
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
183
py
w = input() cnt = 0 while(True): t = input() if t == "END_OF_TEXT": break t = t.lower().split() for i in t: if i == w: cnt += 1 print(cnt)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7746c9f77426c75cc1c1f61ed6cf776889d5b518
ebb71d8710ac1445dc00b1c2a65a1e42979e2718
/12-introduction-to-databases-in-python/04-creating-and-manipulating-your-own-databases/03-inserting-a-single-row-with-an-insert-statement.py
7edf0f7ed3757ade17230c124e1687da398c2851
[]
no_license
0ashu0/datacamp-1
6473d83afc0ae00dc43116c1889bf065fb923ce4
9f0f64427ff07ff5f132886a5f44e19c5045c705
refs/heads/master
2020-12-13T07:56:18.687044
2019-01-09T07:18:02
2019-01-09T07:18:02
234,354,666
1
0
null
2020-01-16T15:49:48
2020-01-16T15:49:47
null
UTF-8
Python
false
false
1,944
py
''' Inserting a single row with an insert() statement There are several ways to perform an insert with SQLAlchemy; however, we are going to focus on the one that follows the same pattern as the select statement. It uses an insert statement where you specify the table as an argument, and supply the data you wish to in...
[ "sashakrasnov.nfo@gmail.com" ]
sashakrasnov.nfo@gmail.com
9da155d9d86381491e41b5c0800ea57c177d190b
ae333003a102da890a4a35cd55c6d0bfd498ef6a
/bit_manipulation/test.py
f15680d65f94e20ebff28b3180d5f5a48f60cf3d
[]
no_license
jschnab/leetcode
e4624181525577d335af4774c4d07b577f80fb04
6fe9ea880dbc27c654205bf5c52a09c6313e70e9
refs/heads/master
2023-07-06T11:54:31.061907
2023-07-04T02:42:10
2023-07-04T02:42:10
224,428,490
0
1
null
null
null
null
UTF-8
Python
false
false
522
py
def clear_ms_through_i(number, i): print("before:", bin(number)) mask = (1 << i) - 1 print("mask:", bin(mask)) print("after:", bin(number & mask)) print() def clear_i_through_0(number, i): print("before:", bin(number)) mask = ~((1 << i) - 1) print("mask:", bin(mask)) print("after:...
[ "jonathan.schnabel31@gmail.com" ]
jonathan.schnabel31@gmail.com
852b1cbfc71dd2228d8afd219a050633e4d25d81
243d0543f8d38f91954616c014456122292a1a3c
/CS2/8500_2d_lists/9910_project_wave_simulation/code_for_students/waves.py
1256c26360bfd361a3b778e1961042bf7ee99f48
[ "MIT" ]
permissive
roni-kemp/python_programming_curricula
758be921953d82d97c816d4768fbcf400649e969
eda4432dab97178b4a5712b160f5b1da74c068cb
refs/heads/master
2023-03-23T13:46:42.186939
2020-07-15T17:03:34
2020-07-15T17:03:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,325
py
''' This program is based on a NetLogo model found at Netlogo -> Models Library -> Chemistry & Physics -> Waves -> unverified -> Raindrops Step 1: Create and draw 2d array of water blobs. See TODO1 and TODO2 Step 2: getClickedRowCol. Test this by clicking to change individual cell colors. See #TODO3 Step 3: sumNeigh...
[ "neal.holts@gmail.com" ]
neal.holts@gmail.com
3ee643ab7e346a79cbf364fe095f114a2872990a
3a4fbde06794da1ec4c778055dcc5586eec4b7d2
/@lib/12-13-2011-01/vyperlogix/html/parsers/HTMLParsers.py
d56269250e77282df6aecaa05363cdeb541b7380
[]
no_license
raychorn/svn_python-django-projects
27b3f367303d6254af55c645ea003276a5807798
df0d90c72d482b8a1e1b87e484d7ad991248ecc8
refs/heads/main
2022-12-30T20:36:25.884400
2020-10-15T21:52:32
2020-10-15T21:52:32
304,455,211
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
import urllib import httplib from vyperlogix.hash import lists from HTMLParser import HTMLParser __copyright__ = """\ (c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial edu...
[ "raychorn@gmail.com" ]
raychorn@gmail.com
4710ba80d8a0300fc48e3d597a1934c06ed5ecf7
775429e4044e0bf54e553317bccdee92c55fd949
/package/platforms/osx/template/setup.py
32c3c5983779243b6e22ce30b8967ea3a7f1c7c1
[]
no_license
painless-security/xml2rfc
75b575e35d69e89eae4b0ce7032701b15bd831ca
dfc515bf8a0c116e3616e03777e268b1f3a684ec
refs/heads/main
2023-06-21T07:21:16.656131
2021-05-20T19:49:31
2021-05-20T19:49:31
373,929,333
0
0
null
2021-08-09T15:07:33
2021-06-04T18:31:25
Python
UTF-8
Python
false
false
687
py
#!/usr/bin/env python # -------------------------------------------------- # Copyright The IETF Trust 2011, All Rights Reserved # -------------------------------------------------- from setuptools import setup import xml2rfc_gui.main APP = ['xml2rfc-gui.py'] DATA = ['xml2rfc/templates'] OPTIONS = { 'argv_emulatio...
[ "henrik@levkowetz.com" ]
henrik@levkowetz.com
abf7ac6170ae4cc40ed4602db7f3c7663afbf789
a44ac3cfed7acd8cd1cf31e6b483c7b4b9955854
/Module6/home_work/01_hw_sort.py
14b8b305467ce223d6c6849f40b2411178a45131
[]
no_license
dhjnvytyjub/SpecialistPython2_v2
444ce5aaef2ef24524815572787b45dac232d2db
61cd78a1a6a5886d5347636fef29ccdd8baf5fdf
refs/heads/master
2023-09-01T21:24:34.749986
2021-10-24T08:06:16
2021-10-24T08:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
# Доделайте все задачи Module-5/practice/02_tasks_sort/
[ "t89236238012@gmail.com" ]
t89236238012@gmail.com
5e478d8649a9bfff640630f118ddb8141ac9ec0e
7ab7a79d2b719f8ef8daed5cca8df487884837a8
/rsaCipher.py
03168ecc420dfb2eb35f38f2736f950d16bcdd2f
[]
no_license
newsupermario/codebreaker
9cc8329f3f5da82e5473ce0d4dc54bd4a8185561
b31b462fe2b641cbb0e2b002d30a679b053ddd97
refs/heads/master
2023-06-30T03:42:58.727118
2020-10-04T06:43:16
2020-10-04T06:43:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,794
py
# RSA Cipher # http://inventwithpython.com/hacking (BSD Licensed) import sys # IMPORTANT: The block size MUST be less than or equal to the key size! # (Note: The block size is in bytes, the key size is in bits. There # are 8 bits in 1 byte.) DEFAULT_BLOCK_SIZE = 128 # 128 bytes BYTE_SIZE = 256 # One byte has...
[ "asweigart@gmail.com" ]
asweigart@gmail.com
57793360c5e4627b8e2d59500e0fdcfc70f03afb
f5d2a1459c81eb23a745bd63f41ef980c41ea0a4
/ZG-PhaseFour/code/website/xxsy/xxsyComments.py
4030fa3c192b907c5ed2648c54fae34c9d3b38a0
[]
no_license
ErBingBing/django-tonado-crawler
6800bb0269e99e2454fb0a9079175ffe9d4d0a0b
db31b4cdf7ecc509f1a87aa325621943df825e98
refs/heads/master
2021-08-22T11:30:08.419583
2017-11-30T04:04:40
2017-11-30T04:04:40
112,562,722
0
0
null
null
null
null
UTF-8
Python
false
false
5,563
py
# encoding=utf8 ############################################################################################## # @file:XxsyComments.py # @author:Yongjicao # @date:2016/12/12 # @version:Ver0.0.0.100 # @note:潇湘书院新闻页获取评论的文件 ############################################################################################## imp...
[ "913702626@qq.com" ]
913702626@qq.com
79a5d9674a0a92e0add8a040139512a698a58c87
8f3510ad2573dad3a355857f0bb6a8d8442c8be8
/data_hacks/histogram.py
eb103e2964f0579c18620c2c138cb0040c18875f
[]
no_license
mjschultz/data_hacks
54fcf77e338e27bd10fdfd6460bed37bb25c0f61
cb6504babe799c04811129144c6de5001f8e0f2b
refs/heads/master
2021-01-15T19:40:40.066777
2010-11-11T21:33:56
2010-11-11T21:33:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,908
py
#!/bin/env python # # Copyright 2010 bit.ly # # 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...
[ "jehiah@gmail.com" ]
jehiah@gmail.com
2fb621535caa9d0e10615706dae65bafcbdd0bdc
64f0d889bcb54cc09f7270071727d628ab2ec175
/Neural Networks and Deep Learning/4-cat_notcat.py
7e0b115207ba51e033bf780c13e83fd9ee683c86
[ "MIT" ]
permissive
pramodtoom/deeplearning.ai
74c012857b4acc2bc3a8810d0fee7a3558245661
0ff5d4b18c488491634be910de722f798c07de89
refs/heads/master
2023-03-22T18:23:33.955200
2019-06-20T11:35:17
2019-06-20T11:35:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,396
py
# coding: utf-8 # # Deep Neural Network for Image Classification: Application # # When you finish this, you will have finished the last programming assignment of Week 4, and also the last programming assignment of this course! # # You will use use the functions you'd implemented in the previous assignment to build...
[ "vishal114186@gmail.com" ]
vishal114186@gmail.com
2fe806dc867e89db0fc15055285bddfcbc8113ad
3f16e66b33b39df8866947fcf1d8249476725c03
/04_base_of_python/exceptions.py
62d2c32e8dd707425ef7700a107228306bf3ad72
[]
no_license
VadimVolynkin/learning_python3
ea3559e0f01b4c9e09ae82b76ca315de8e41ecc4
872f0a2ac296ec3242ac9b81f63a29f09bc614fa
refs/heads/main
2023-08-10T05:39:04.376172
2021-09-07T14:44:20
2021-09-07T14:44:20
339,133,214
0
0
null
null
null
null
UTF-8
Python
false
false
11,028
py
# https://pythonworld.ru/tipy-dannyx-v-python/isklyucheniya-v-python-konstrukciya-try-except-dlya-obrabotki-isklyuchenij.html https://www.youtube.com/watch?v=89wpfOAgrCk """ Конструкция try - except нужна для того, чтобы при возникновения исключения программа не падала, а продолжала работать и правильно обрабатывала и...
[ "71ooo@mail.ru" ]
71ooo@mail.ru
0273616d55cb67b3470093d1e42b99ef44a2f0e2
645e9674e78b3c0ae72a7d4dc5f9694f97c035d3
/Python/Examples1/example1_2.py
83fdb699291744cff890683fbea85098b7e94f01
[ "MIT" ]
permissive
msiplab/EicProgLab
30cd1b3f45eb86c26a270af5888f6966abaac9ae
aa4b19e59154ce27cda856fa6a615859304bd595
refs/heads/master
2023-07-19T22:35:52.457866
2023-07-12T20:35:23
2023-07-12T20:35:23
125,338,699
1
2
null
null
null
null
UTF-8
Python
false
false
1,227
py
""" example1_2.py Copyright (c) 2018-2023, Shogo MURAMATSU, All rights reserved """ from my_complex import MyComplex import sys import math def main(args): #引数の数の確認 if len(args) != 5: print('引数の数は 4 つ必要です.') sys.exit(0) #コマンド引数からのデータの読み込み #MyComplexクラスをインスタンス化 z0 = MyComple...
[ "shogo@eng.niigata-u.ac.jp" ]
shogo@eng.niigata-u.ac.jp
c74ec6450a669d2942fe8ac8e99f6163eeeb1eb5
da7a165522daea7c346693c5f32850017c482967
/abc51-100/abc067/c.py
659032137fd9536c0ad6901b28e8822f8f384770
[]
no_license
SShayashi/ABC
19f8750919208c5ff8935638dbaab941c255f914
3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c
refs/heads/master
2021-05-04T21:06:10.720367
2020-07-11T13:59:16
2020-07-11T13:59:29
119,886,572
2
0
null
null
null
null
UTF-8
Python
false
false
322
py
def m(): n = int(input()) a = list(map(int, input().split())) b = a.copy() for i in range(1, n): b[i] = b[i] + b[i-1] for j in range(n-2, -1, -1): a[j] = a[j] + a[j+1] ans = 999999999999 for j in range(n-1): ans = min(ans, abs(b[j] - a[j+1])) return ans print(m(...
[ "sshayashi0208@gmail.com" ]
sshayashi0208@gmail.com
f7bf99f30a3a13b6c4516b1e485a23f355e4c558
5d2404f62e58d5fd1f6112744ff32c3166183ac7
/Exercicios/ex003.py
1205c9c7c8818d71064cc496ee3824ad4a96faf6
[]
no_license
Leownhart/My_Course_of_python
236cfc84d841c5883e5aa1cc0c0730e7a9a83c40
5abb21f8cdad91ab54247a007d40bf9ecd2cff8c
refs/heads/master
2020-08-28T15:04:33.628086
2020-08-24T19:25:39
2020-08-24T19:25:39
217,733,877
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
n1 = int(input('Informe um valor: ')) n2 = int(input('informe um segundo valor: ')) soma = n1 + n2 print('A soma de {0} é {1} e igual: {2}'.format(n1, n2, soma))
[ "francisco.amartins.al@gmail.com" ]
francisco.amartins.al@gmail.com
46921cca5b9c1784f07bf78fade1578b1c07ebec
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02726/s305561871.py
f26bf2ce1a76d3269f222e8f66cc379fe74d8ec2
[]
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
198
py
n,x,y = map(int,input().split()) x -= 1 y -= 1 cnt = [0]*n for i in range(n): for j in range(i+1,n): dis = min(j-i,abs(x-i)+1+abs(j-y)) cnt[dis] += 1 for i in range(1,n): print(cnt[i])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0f40a22601dcfebc953d9ab7bf8dd71f05c341f9
f4384a8cc6444ee6036e52be86be3b3a7e1a411f
/devel/lib/python2.7/dist-packages/openai_ros/__init__.py
fe91de84da33728a18ba78b05eca602ee5bee601
[]
no_license
ava6969/BaxterDRL
ad1ba4693d86747c4bfe9f0f11ca8899f9ae16d4
1a38a2d4ff697d0b0312582fb944feae9a293b23
refs/heads/master
2023-01-23T13:53:09.791157
2020-11-16T02:11:24
2020-11-16T02:11:24
309,526,742
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from pkgutil import extend_path from sys import path as sys_path __extended_path = '/home/dewe/ros_ws/src/openai_/openai_ros/openai_...
[ "ava6969@rit.edu" ]
ava6969@rit.edu
7468046b456ac13c5ec56530a65892c709d4d193
aca209472c7288d69adf57124c197baf98c7a6e7
/OpenCV讀者資源/讀者資源/程式實例/ch27/ch27_3_1.py
70b7dfa2eb965cfffefa6109ab8d174663a304bd
[]
no_license
Hank-Liao-Yu-Chih/document
712790325e48b9d8115d04b5cc2a90cd78431e61
fafe616678cd224e70936296962dcdbbf55e38b3
refs/heads/master
2022-09-22T12:40:33.284033
2022-09-08T00:33:41
2022-09-08T00:33:41
102,203,601
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
# ch27_3_1.py import cv2 pictPath = r'C:\opencv\data\haarcascade_frontalface_default.xml' face_cascade = cv2.CascadeClassifier(pictPath) # 建立辨識物件 img = cv2.imread("solvay1927.jpg") # 讀取影像 faces = face_cascade.detectMultiScale(img, scaleFactor=1.1, minNeighbors = 5, minSize=(20,20)...
[ "hank.liao@vicorelogic.com" ]
hank.liao@vicorelogic.com
119df6fe55f9fa4a5d8e86887e993ed9e7fd0820
c62f00317dc0cd352a49413a88ac26a9776d3d4d
/tracker.py
e594c42d3d9265dee7f3c7cb8d66f6f088fc89d4
[ "MIT" ]
permissive
nicholaskajoh/ivy
5cdbc1650f9e1f58b4d28433df71c67ffbdf4da1
83a97030125301b4838b15c165aabddc78c9a722
refs/heads/master
2023-07-03T18:38:14.414235
2022-09-30T20:13:05
2022-10-02T17:29:31
152,116,071
237
96
MIT
2022-10-02T17:29:32
2018-10-08T17:03:46
Python
UTF-8
Python
false
false
4,699
py
''' Functions for keeping track of detected objects in a video. ''' import sys import cv2 import settings from util.blob import Blob from util.bounding_box import get_overlap, get_box_image from util.image import get_base64_image from util.object_info import generate_object_id from util.logger import get_logger logg...
[ "kajohterna@gmail.com" ]
kajohterna@gmail.com
6efd7abb2ddb79175cc5fcf9f3cf8f3d031bcd1c
01b6a10e92f3dae773f824065a5508b073fd6d62
/baekjoon/2920.py
3088c195c2fc4af94a44b4897f20142275c8499d
[]
no_license
jihongeek/Algo
213989dc86b5476939776c31b12b21fba48bff8d
8dfc9db33f611ff76c4943be9868847c3c0501b4
refs/heads/master
2023-08-28T23:32:42.448354
2023-08-12T11:26:08
2023-08-12T11:26:08
188,658,216
2
0
null
null
null
null
UTF-8
Python
false
false
277
py
inputlist = input().split() ascending = ["1","2","3","4","5","6","7","8"] descending = list(reversed(ascending)) if inputlist == ascending: print("ascending",end="") elif inputlist == descending: print("descending",end="") else: print("mixed",end="")
[ "jihongeek@kakao.com" ]
jihongeek@kakao.com
0c5dd927d956721a24ac6719bf1adfb1959a0356
d0fd8e092b22b3fc606ef78dce2366d978131295
/cogs/api.py
034661a7f06399b9a1ceebb3f9844df0850e9e7d
[ "MIT" ]
permissive
advaith1/RoboDanny
6eddbd27f69d18c2cb3d12df43e12df76477e8b5
020004d5c7d5f0c40f97d976f3c44030ceeb568f
refs/heads/rewrite
2021-08-21T21:00:00.464985
2017-11-26T21:17:39
2017-11-26T21:17:39
112,413,111
0
0
null
2017-11-29T01:59:41
2017-11-29T01:59:41
null
UTF-8
Python
false
false
19,388
py
from discord.ext import commands from .utils import checks, db, fuzzy, cache, time import asyncio import discord import re import lxml.etree as etree from collections import Counter DISCORD_API_ID = 81384788765712384 DISCORD_BOTS_ID = 110373943822540800 USER_BOTS_ROLE = 178558252869484544 CONTRIBUTORS_ROLE = 1...
[ "rapptz@gmail.com" ]
rapptz@gmail.com
237850a9a8f57914c86ea47bc0cc7d3c264b3c2c
c575745e80d01e9232335e60e7bac1feb390db80
/defra-atom/utils.py
00006fe63992443d1b7cde97aa5c0304b1360d86
[]
no_license
rcgsheffield/urban_flows
42d4011d5e4834d505b35fbe6cee950f1727c9a2
232d4c4e3b8487015e59056bff4f53308f9325b1
refs/heads/master
2022-02-12T19:24:29.535474
2022-02-07T12:50:49
2022-02-07T12:50:49
248,738,949
2
2
null
2022-02-07T12:51:14
2020-03-20T11:28:37
Python
UTF-8
Python
false
false
583
py
""" Random utility functions """ import os.path import pathlib def build_input_dir(root_input_dir: str, year: int) -> str: return os.path.join(root_input_dir, str(year)) def build_output_dir(root_output_dir, year, input_path) -> str: """Prepare output directory""" output_dir = os.path.join(root_output...
[ "j.heffer@sheffield.ac.uk" ]
j.heffer@sheffield.ac.uk
febf0797cf02498a46ca237d6c9793d85713f658
ed79ce1f816daf0e9b27092a0cfdd24ed727994b
/applications/iiit/SmartStrip/smartstrip/agent.py
62bad5f68c3fb2a1b0ff1724d2e3631a9db4bfb0
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
cbs-iiith/volttron
ca00430c5c89f612fbf8fedc7c65fb90cae16ee3
a676d4af19a808581dde172ab08820087854e157
refs/heads/dev-cbs-iiith
2022-09-11T03:35:59.311254
2020-01-21T10:29:57
2020-01-21T10:29:57
59,084,828
2
0
NOASSERTION
2020-01-21T10:33:38
2016-05-18T05:31:50
Python
UTF-8
Python
false
false
33,459
py
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright (c) 2020, Sam Babu, Godithi. # All rights reserved. # # # IIIT Hyderabad #}}} #Sam import datetime import logging import sys import uuid from volttron.platform.vip.agent import Agent, Core, PubSub, compat, RPC from volttro...
[ "sambabug@gmail.com" ]
sambabug@gmail.com
9727a23ee67b30e1047ae42adce456f404725533
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/03_model_fitting/merraRF882/176-tideGauge.py
213caf41689339fc37bbff10add7acc8884a0e49
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
7,456
py
# -*- coding: utf-8 -*- """ Created on Mon May 4 15:51:30 2020 This program is designed to validate a Random Forest model by using the KFOLD method @author: Michael Tadesse """ #import packages import os import glob import numpy as np import pandas as pd from sklearn import metrics from scipy import stats import se...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
bb0ce723b9f7c137d0fe5b3dc2778a4f09899f70
63c206d7323689cc0a23e8806ca7d534b80b8b3f
/Exam2Practice/src/rosegraphics.py
3c659d201139f06059e72b1cd5fbfe36dabe73f8
[ "MIT" ]
permissive
eckelsjd-rose-old/csse120
82879898ff2a352bf9496ddbe20ef73703172446
08afd0fd541dc4988230c845d53fad64b95365c9
refs/heads/master
2022-06-09T16:14:06.040584
2020-04-26T02:41:08
2020-04-26T02:41:08
258,922,442
0
0
null
null
null
null
UTF-8
Python
false
false
67,650
py
""" rosegraphics.py - a simple Graphics library for Python. Its key feature is: -- USING this library provides a simple introduction to USING objects. Other key features include: -- It has a rich set of classes, methods and instance variables. -- In addition to classes like Circles that are natural f...
[ "eckelsjd@rose-hulman.edu" ]
eckelsjd@rose-hulman.edu
746f1734aa731689fe4eca6f3b69371a5ec03d7e
ac2c3e8c278d0aac250d31fd023c645fa3984a1b
/saleor/saleor/warehouse/migrations/0008_auto_20200430_0239.py
5f91fcf4c972a200f23a227faf2e5c7d76e85201
[ "BSD-3-Clause", "CC-BY-4.0" ]
permissive
jonndoe/saleor-test-shop
152bc8bef615382a45ca5f4f86f3527398bd1ef9
1e83176684f418a96260c276f6a0d72adf7dcbe6
refs/heads/master
2023-01-21T16:54:36.372313
2020-12-02T10:19:13
2020-12-02T10:19:13
316,514,489
1
1
BSD-3-Clause
2020-11-27T23:29:20
2020-11-27T13:52:33
TypeScript
UTF-8
Python
false
false
510
py
# Generated by Django 3.0.4 on 2020-04-30 07:39 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("warehouse", "0007_auto_20200406_0341"), ] operations = [ migrations.AlterField( model_name="sto...
[ "testuser@151-248-122-3.cloudvps.regruhosting.ru" ]
testuser@151-248-122-3.cloudvps.regruhosting.ru
95ba2c3cf868392a9cd37a3c94d87345f74d34b9
0477cfffe2305776ba9fecbe846680e52b9a34f0
/examples/academy_course_PYT26038/step5.py
ec1de275067ba468596f4d980577007cbe169ab8
[ "Apache-2.0" ]
permissive
epogrebnyak/transitionMatrix
7f6c1ae3493b8bb8049909148b4b6c78f61841b8
64c7b3f347664c8b0e06f6865ffb8ad0685b4000
refs/heads/master
2023-02-27T17:34:27.518863
2021-02-07T12:19:35
2021-02-07T12:19:35
329,254,641
0
0
Apache-2.0
2021-02-07T12:19:36
2021-01-13T09:21:28
Python
UTF-8
Python
false
false
1,910
py
# encoding: utf-8 # (c) 2017-2020 Open Risk (https://www.openriskmanagement.com) # # TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included # in the source distribution of TransitionMatrix. This is notwithstanding any licenses of # third-party software included in this distribution. You ...
[ "openrisk@outlook.com" ]
openrisk@outlook.com
f43d5807f9540f6606d61cfc5b608b586808dafe
fa124fdbf36327bf8e74bbc7f00ce448c1e7939a
/src/com/rwanda/mch/controller/stocks.py
3e86296156594688c5934240557d125329c47d39
[]
no_license
pivotaccess2007/mch
039f17cdb16b434c0a25504cc81b7db81e5da988
523d1cd706296744e17e85683b5dbedbc05dd9e6
refs/heads/master
2020-03-30T16:33:44.451275
2018-10-03T13:23:00
2018-10-03T13:23:00
151,414,990
0
0
null
null
null
null
UTF-8
Python
false
false
4,027
py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 ## ## ## @author UWANTWALI ZIGAMA Didier ## d.zigama@pivotaccess.com/zigdidier@gmail.com ## __author__="Zigama Didier" __date__ ="$Nov 22, 2017 1:29:30 PM$" from datetime import datetime, timedelta from controller.main import RSMSRWController from model.stock impor...
[ "zigdidier@gmail.com" ]
zigdidier@gmail.com
fc519358e7148cb7cb9adfc8863772e3aaf6c5cb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03026/s613366341.py
67a3eb35a3f577b9399c1bda81fc5d303cfbc346
[]
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
247
py
n,*t=map(int,open(0).read().split()) c=sorted(t[-n:]) print(sum(c[:-1])) e={i:[]for i in range(n)} for a,b in zip(t[:-n:2],t[1:-n:2]):e[a-1]+=b-1,;e[b-1]+=a-1, f=[0]*n q=[0] while q: v=q.pop();f[v]=c.pop() for w in e[v]:q+=[w]*(f[w]<1) print(*f)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5d44e31861e9f28d0056ba1133328324fdf4c478
658391aaf5756b057e67101baad5e51462fbc03c
/reference_books/tests.py
f9914fb97ae75dea14f0825f3671653477a08741
[]
no_license
vintkor/smartfield
e492d5b345e6dd09d6077426c8c0b7ce259cacda
bf1bf1575ae7c03b87eb8296c00a33de2c539f2a
refs/heads/master
2020-03-26T10:59:06.216459
2018-09-11T06:37:50
2018-09-11T06:37:50
144,823,382
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
import decimal from django.test import TestCase from .models import ( Fuel, FuelCoast, ) class FuelModelTest(TestCase): def setUp(self): Fuel.objects.create( title='test fuel' ) def test_save_model(self): saved_models = Fuel.objects.count() self.assertEqua...
[ "alkv84@yandex.ru" ]
alkv84@yandex.ru
baed56ad016160eedc9e0facb1fab6cab378cdb3
2e6859082fa5f093d597ccc0b1b22b26d38fe830
/LeetCode/Python/src/Merge_Two_Sorted_Lists.py
8f7cb987b470a0d42d69b06aa5cdde04cf133fc8
[ "MIT" ]
permissive
ruhulmus/RedQuarkTutorials
82399b0907037567c38f9ac87b579f5e50c8b4ab
a6f44b575fcf11bc288622926090e74e7c428775
refs/heads/master
2023-07-31T02:55:43.804163
2021-09-24T15:01:01
2021-09-24T15:01:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
""" @author - Anirudh Sharma """ class ListNode: def __init__(self, val=0, nextNode=None): self.val = val self.next = nextNode def printList(node: ListNode): while node is not None: print(str(node.val), end=" ") node = node.next print() def mergeTwoLists(l1: ListNode, l...
[ "anirudh03sharma@gmail.com" ]
anirudh03sharma@gmail.com
9a5874a0fc8ff90549a20cffea42ffac5f13738b
13774d8a2d657cdfa2f1d69e549c361301f90872
/cwt/wps/ows.py
df877aaf86d4a8a55035c89eb29b03fc9603752f
[]
no_license
nasa-nccs-cds/esgf-compute-api
4ba45538dccbe60fba50b2e0b284d0dee83cf3bb
d68ca27cbf42a0bb94074ef6824c10ac1e1e6b50
refs/heads/master
2020-04-20T22:43:29.534025
2019-02-04T01:58:19
2019-02-04T01:58:19
169,149,486
0
0
null
2019-02-04T21:03:44
2019-02-04T21:03:43
null
UTF-8
Python
false
false
3,426
py
from cwt.wps.raw.ows import * MissingParameterValue = 'MissingParameterValue' InvalidParameterValue = 'InvalidParameterValue' NoApplicableCode = 'NoApplicableCode' NotEnoughStorage = 'NotEnoughStorage' ServerBusy = 'ServerBusy' FileSizeExceeded = 'FileSizeExceeded' StorageNotSupported = 'StorageNotSupported' VersionNe...
[ "boutte.jason@gmail.com" ]
boutte.jason@gmail.com
878578ccc6596d05527147d08eed055bf11d2035
e25ff4345513f36352f069ab0c4f59fa306fb177
/build/mavros/catkin_generated/pkg.installspace.context.pc.py
2b44cb32d37910e7c67c74aa3100bfcd9f280ce6
[]
no_license
gistleejongwon/drone_with_arm
db9b40faac17bf59d21803ec3480f45dfec2a395
ad2abc0283362085379f112cbb66bf34a4a43419
refs/heads/master
2023-06-27T20:47:44.827312
2021-08-03T05:27:50
2021-08-03T05:27:50
387,333,909
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include;/usr/include/eigen3" != "" else [] PROJECT_CATKIN_DEPENDS = "diagnostic_msgs;diagnostic_updater;eigen_c...
[ "jongwonlee@gist.ac.kr" ]
jongwonlee@gist.ac.kr
871131270a85cb121f62378fac8f11a5f9a6fff0
d2c4151eff768af64946ababc2e41c13d8973cd3
/ABC178/a.py
f2e899a77d2753a4dd8e927d3e2e7bca363b02dc
[]
no_license
Intel-out-side/AtCoder
2de19b71981247135432aed2d6d9c2a16c3ab7f0
0c419d2df15fff02032432cb1b1323612484e16e
refs/heads/master
2022-06-23T04:21:12.886072
2022-06-13T14:39:07
2022-06-13T14:39:07
235,240,853
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
x = int(input()) if x == 0: print(1) if x == 1: print(0)
[ "so.eng.eng.1rou@gmail.com" ]
so.eng.eng.1rou@gmail.com
adff13d76e546d75adc0770d497d1721457ba727
d916d9f15b039abe4f824d58714e0c3277939711
/Iterators-And-Generators/Iterators-And-Generators-Lab/05_generator_range.py
b7e50f606f947e801d4076be82af69efe92644b3
[]
no_license
jesalshah14/SoftUni-Python-OOP-February-2021
a641e31e7144785cd05b0b6324348570ff90d7d7
45a584316951bca4d1bcfe35861f140d9fedf62a
refs/heads/main
2023-04-09T20:15:32.764633
2021-04-18T15:29:57
2021-04-18T15:29:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
def genrange(start, end): for el in range(start, end+1): yield el print(list(genrange(1, 10)))
[ "eng.antonov@gmail.com" ]
eng.antonov@gmail.com
57febaee9ad63d8d7983453a8ec0b3b504b2b0a8
d4a89b9113980e7b8225a5cfc197f6742b3e2ffe
/2nd year/CN/Solo Learning/networking/advanced_socket.py
55cb6034857804ae73b0b3945be5e5f4fc0dd943
[]
no_license
Akitektuo/University
26a37d2831c3ed8a42dc27bd8c27778b479367c2
3c94b6aedcf6e69012d8e892d775481965e7551d
refs/heads/master
2023-03-19T22:16:20.529707
2022-05-19T13:33:02
2022-05-19T13:35:03
212,976,476
2
2
null
2023-03-06T16:32:34
2019-10-05T09:46:05
Java
UTF-8
Python
false
false
2,010
py
import pickle import socket from networking.constants import HEADER_SIZE, ENCODING class AdvancedSocket: def __init__(self, using_udp, ip=socket.gethostname(), port=1234, initial_socket=None): self.using_udp = using_udp if initial_socket: self.socket = initial_socket else: ...
[ "alexcopindean@yahoo.com" ]
alexcopindean@yahoo.com
c7e6cb586b944e4d29eacabd9120e2da556d7636
c9ffa6e25b38d129edb14e2fc5a9699b353f7053
/src/endpoints.py
9bfe1214fd22e8930c9726c41c483e0fd71861b4
[ "MIT" ]
permissive
rycus86/webhook-proxy
6b22b2d28332f3d36fae11363d8cf1e38958a1d4
c994695b9bb8f41db6324d623cb2b9fe02de12f8
refs/heads/master
2023-02-03T20:37:29.839414
2023-01-23T06:09:30
2023-01-23T06:09:30
101,429,044
22
7
MIT
2023-01-23T06:09:32
2017-08-25T17:56:48
Python
UTF-8
Python
false
false
5,604
py
from __future__ import print_function import re import threading import traceback import six from flask import request from jinja2 import Template import docker_helper from actions import Action from util import ConfigurationException, classproperty class Endpoint(object): _current = threading.local() de...
[ "rycus86@gmail.com" ]
rycus86@gmail.com
11b648e5ab3452036438b50c6cac60bda6afa82b
4efca0b231a62c23d124b6d9dfad3022dda25e4b
/08_lesson_1608/dz.py
3d19a40cf75e69828b34cb7ecdee5fd9241cb854
[]
no_license
100ballovby/AutomationWithPython_Course
71fcb5b4e955593707dde2cffa3d4c330d0e7c2a
8e6b2c3ac7cf4121b9efa6a2e75e9bea78eb5ee6
refs/heads/master
2023-07-15T14:46:07.049933
2021-08-20T09:56:28
2021-08-20T09:56:28
387,419,895
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
import json import requests url = 'https://api.github.com/users/100ballovby/repos' response = requests.get(url) print(json.loads(response.text))
[ "greatraksin@icloud.com" ]
greatraksin@icloud.com
7554ec7b37fea01d201d5125ed9930eae394a038
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_displeased.py
59a894a0c34d8deab2fef19c0633b836c4a388a6
[ "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
259
py
from xai.brain.wordbase.verbs._displease import _DISPLEASE #calss header class _DISPLEASED(_DISPLEASE, ): def __init__(self,): _DISPLEASE.__init__(self) self.name = "DISPLEASED" self.specie = 'verbs' self.basic = "displease" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
46f92e5eeeca8d7e0ce91906d313c65fd73a460e
8408efa4511601764ccb5f8ed24eec16a7c6d8d2
/build/lib/lightningaddon/tests.py
1f2180cb93ceadf45385551f169590e4c4be1ed0
[]
no_license
utility-code/lightningAddOns
6d7b575a912b5a8ec90bfbc516eb3563829cd25f
0437cb955bbca54d7e7aba4bc51656cc4b393d1e
refs/heads/master
2023-05-31T06:00:46.812352
2021-07-01T17:33:27
2021-07-01T17:33:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
import operator import torch """ Tiny tests """ def test(a, b, cmp, cname=None): """ Test main """ if cname is None: cname = cmp.__name__ assert cmp(a, b), f"{cname}: \n{a}\n{b}" def test_eq(a, b): #%t """ Test if equal """ test(a, b, operator.eq, "==") def near...
[ "msubhaditya@gmail.com" ]
msubhaditya@gmail.com
82048bd1545304d77b8b689819ccc65e795057f2
b51b49c1cd5cbe69be0cb2d4e598f3e3c331d993
/genmod/utils/__init__.py
718cec434db39e5a3f59e5e597687d30a863da2a
[ "MIT" ]
permissive
nasty27/genmod
5e01ee6e9d96d0a67592821941b39fa7454e6ad5
1a636f4fc5d17c1a737c54bb78e9ef70d1cd3fb0
refs/heads/master
2020-04-03T07:24:06.650165
2015-01-26T12:25:30
2015-01-26T12:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from genmod.utils.load_annotation import load_annotations from genmod.utils.is_number import is_number from genmod.utils.plugin_reader import collectKeys from genmod.utils.sort_variants import sort_variants from genmod.utils.print_variants ...
[ "monsunas@gmail.com" ]
monsunas@gmail.com
06298902089a65d7cfeba91cf42502610f4fbfb0
75fd2d6cfac8f8222a3a70bc4a5b2e6c952a268a
/devito/ir/clusters/cluster.py
96acb61599a25059217834af89ff226a94d4a99e
[ "MIT" ]
permissive
richah2/devito
0c7ef37aa643ec139b4e9d1ddf3c7b7b0aba930d
79fbb53565572a8b6df295289c5579a8fed8f276
refs/heads/master
2020-03-21T02:48:31.329788
2018-06-18T16:32:18
2018-06-18T16:32:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,855
py
import numpy as np from cached_property import cached_property from frozendict import frozendict from devito.ir.equations import ClusterizedEq from devito.ir.clusters.graph import FlowGraph from devito.ir.support import DataSpace, IterationSpace, detect_io from devito.symbolics import estimate_cost __all__ = ["Cluste...
[ "f.luporini12@imperial.ac.uk" ]
f.luporini12@imperial.ac.uk
776c25f2a2210e3e5bd84eecde7bbb77bf9085b8
e48f110e638df31129963ff2a6b4dbba44354d33
/script/get_lineage.py
c496628a3c55e96f5736c650e9cc8a6fc6d611fd
[]
no_license
didw/kra
dfa6e0f4d305e56fb11255c8af0554767f981d44
2d5ac2bcab5a2b452381c433f4c3c10b8b95e94f
refs/heads/master
2021-01-11T05:50:49.239175
2019-01-06T14:22:36
2019-01-06T14:22:36
72,058,728
1
0
null
null
null
null
UTF-8
Python
false
false
3,491
py
# -*- coding:utf-8 -*- from __future__ import print_function from urllib2 import urlopen import os from bs4 import BeautifulSoup import datetime import re import numpy as np from mean_data import mean_data import time import glob import sys from sklearn.externals import joblib from etaprogress.progress import ProgressB...
[ "yangjy0113@gmail.com" ]
yangjy0113@gmail.com
a5259844bbdf1b3ef9268cd045527527df8ccf61
f995860ad78fc266d04b03c3478c74e989d8b568
/PE/pe0092.py
967a129c9821f9b6aeaaec742f93503a05c1255d
[]
no_license
196884/Python
edd0234fd72a40d7a0b3310776edcaa8bda74478
8dc2e7a32dd350227cde748600e713dc3eea3f4a
refs/heads/master
2016-09-06T19:26:19.860746
2015-11-09T00:09:23
2015-11-09T00:09:23
28,167,634
1
0
null
null
null
null
UTF-8
Python
false
false
519
py
cache = dict() def foo(n): if n == 89: return True if n == 1: return False r = cache.get(n, None) if r != None: return r a = 0 na = n while na > 0: d = na % 10 a += d * d na /= 10 r = foo(a) cache[n] = r return r def solve(): ...
[ "regis.dupont+git@m4x.org" ]
regis.dupont+git@m4x.org
5cc77de880f1cb82426e1c2ac9101b967ea69fc4
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_203/306.py
e52e63673c09e1543e4a3cb9720e45151c44266f
[]
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
580
py
import numpy as np def mainFunc(R, C): ret = "" M = np.chararray((R)) M = np.chararray(M.shape, itemsize=C) M[:]='' init = -1 for i in range(R): P = raw_input() lc = '?' for j in range(C): if(P[j]!='?'): if(lc=='?'): M[i]=M[i].replace('?',P[j]) lc = P[j] M[i]+=lc if (lc == '?'): M[i] = M[...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
93d8c39180250615a2451444846c840f95f8f0b8
a4653fb6c5a7a9e6db0457480e9e860c5304b2b8
/file_system/exercise/exercise2_better_sol.py
795e2b16efa4fde7e2b86d2dcdb34491d6825949
[]
no_license
pratik-iiitkalyani/Python
c315ca1f3a2446ccb871b74026edae97daec3773
082ae6d833f151054567d737de543898ebfe1d87
refs/heads/master
2020-08-07T05:59:21.930089
2020-01-04T17:05:27
2020-01-04T17:05:27
213,324,642
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
# if multiple a tag in single line with open('index.html', 'r') as webpage: with open('file4.html', 'w') as wf: page = webpage.read() link_exist = True while link_exist: pos = page.find('<a href=') if pos == -1: link_exist = False else: ...
[ "ts-pratik.kumar@rakuten.com" ]
ts-pratik.kumar@rakuten.com
368bbb49e9bbc3a866bdc1cef3451a2128d3e259
e72c52755fbf2438ce8fb86ef50fdaba50038435
/python/lib/util.py
2623fefa68d6936ee1b80f80d3de30d1d20de2f6
[]
no_license
stjordanis/avenir
fce6accb2aaffab3a3be62d404c0036269e9d1c2
d27dc947382c25799a15b567c48d5f7d7e195357
refs/heads/master
2023-03-28T05:26:59.354209
2021-03-22T02:58:52
2021-03-22T02:58:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,281
py
#!/usr/local/bin/python3 # avenir-python: Machine Learning # Author: Pranab Ghosh # # 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 ...
[ "pkghosh99@gmail.com" ]
pkghosh99@gmail.com
0bfe7b180d325402be96b545db34beb211cca8f9
099d7c012efc098a4b306aa8e77a3be53d8a53aa
/doc/examples/scripts/sequence/residue_coevolution.py
b401e48950bf96c7c12f2775d734b87a07cae6a0
[ "BSD-3-Clause" ]
permissive
clementleong/biotite
0404f1b4a07922de0f7d7359a9f5333638d3b9ab
084da91b0a0671e65e9f9533b85f87ada65ad4da
refs/heads/master
2021-05-23T17:44:25.839470
2020-04-01T06:52:48
2020-04-01T06:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,425
py
r""" Mutual information as measure for coevolution of residues ========================================================= Mutual information (MI) is a broadly used measure for the coevolution between two residues of a sequence (citation needed) originated in information theory. Basically, the mutual information is a st...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
55527ce0e4a9df289ea07d15bb44976393f14067
6b98594c029605806418d187672f476fde5792b7
/sandbox/rocky/tf/algos/maml_npo.py
366a80fcfb803c9788a5039ba2c5811b455d611d
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
russellmendonca/GMPS
3f65eb250bff008da9beea6b9d1f04aca2d46c6a
638087160c48f9f016dc74b0904f8ba2503ea285
refs/heads/master
2023-01-22T07:53:21.504243
2019-10-26T11:23:42
2019-10-26T11:23:42
178,866,391
18
8
NOASSERTION
2023-01-19T06:42:27
2019-04-01T13:12:40
Python
UTF-8
Python
false
false
11,018
py
import tensorflow as tf import numpy as np import rllab.misc.logger as logger from rllab.misc import ext from rllab.misc.overrides import overrides from sandbox.rocky.tf.algos.batch_maml_polopt import BatchMAMLPolopt from sandbox.rocky.tf.misc import tensor_utils from sandbox.rocky.tf.optimizers.first_order_optimizer i...
[ "russellm@berkeley.edu" ]
russellm@berkeley.edu
3b26104afcca412a0ff2214dcb20abb6e703f1a3
db86dad38a12f45b0d1c45e4f1f40a9f230bd2b7
/main.py
22d798fec941f59872759694f74d15b5468744f3
[ "MIT" ]
permissive
ImKingSP/05-Space-Shooter
56c16bf1dcb91b581d335d9ee83d0182bf639152
f561bd7214fdc9ed033ea974074b0be2af7e5490
refs/heads/master
2020-08-21T21:43:05.645163
2019-10-05T16:35:54
2019-10-05T16:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,200
py
import sys, logging, os, random, math, arcade #check to make sure we are running the right version of Python version = (3,7) assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1]) #turn on logging, in case we have to leave ourselves debugging messages logging....
[ "you@example.com" ]
you@example.com
0df856eb2b3bd78fa7de661cc14cef0887844b61
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/extra_tests/snippets/intro/3.1.2.6.py
92e434d6193b63c0b0238f3d2a40a0882f3a4be5
[ "CC-BY-4.0", "MIT" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
31
py
assert 'Python' == 'Py' 'thon'
[ "shing.lyu@gmail.com" ]
shing.lyu@gmail.com
d2b42931fae207fd90181297e6324128191063d8
a8a26198b18339bf7841516ed98b01af85f67352
/tests/lldb_api_tests.py
bdb783ebbc7013c2c68456ac89b31797fd3e43b9
[]
no_license
jhavstad/voltron
8711228b9fd03f8748e1d14ec7614a06a1f6a5c2
ad52eabfab5828336dac9b344adc2de8c413ec82
refs/heads/master
2021-01-17T10:26:04.561510
2015-02-01T15:30:45
2015-02-01T15:30:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,270
py
""" Tests that exercise the LLDB backend directly by loading an inferior and then poking at it with the LLDBAdaptor class. Tests: LLDBAdaptor """ import tempfile import sys import json import time import logging import subprocess import threading from mock import Mock from nose.tools import * import voltron from vo...
[ "snare@ho.ax" ]
snare@ho.ax
8dcd42fce9f827a2c08ff8f90dbba15a121b244d
849831c875f671c2f70c2093592bfc5d6ee32494
/pytorch/pytorchcv/models/others/oth_fpenet.py
1264bfcf672153160be2818f6adca32d29d42d26
[ "MIT" ]
permissive
weifengchiu/imgclsmob
98d0eb1bb985161d4868ac70ce1087c1fa230944
7defa73ffce54c210b40fde8d0a3b5b49bfe2986
refs/heads/master
2023-02-28T16:27:13.061029
2021-02-08T06:36:34
2021-02-08T06:36:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,077
py
import torch import torch.nn as nn import torch.nn.functional as F __all__ = ["oth_fpenet_cityscapes"] def conv3x3(in_planes, out_planes, stride=1, padding=1, dilation=1, groups=1, bias=False): """3x3 convolution with padding""" return n...
[ "osemery@gmail.com" ]
osemery@gmail.com
016475a88451d3f24ce9f59049663fc49c4b1380
2b398353f5b0529ac666ef180e9dc966474a70c0
/vspk/v5_0/nucosremarkingpolicy.py
00b6c466c5e9f3e449e72f9e090e332dcce67f83
[ "BSD-3-Clause" ]
permissive
nuagenetworks/vspk-python
e0c4570be81da2a4d8946299cb44eaf9559e0170
9a44d3015aa6424d0154c8c8a42297669cce11f9
refs/heads/master
2023-06-01T01:12:47.011489
2023-05-12T19:48:52
2023-05-12T19:48:52
53,171,411
21
18
BSD-3-Clause
2020-12-16T12:36:58
2016-03-04T23:10:58
Python
UTF-8
Python
false
false
7,892
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
[ "corentin.henry@nokia.com" ]
corentin.henry@nokia.com
9b1caa633638c2d35da4adc8596dd540a99c7276
6d70d4a361099cc354f720338de490c0a81bbec8
/test/test_odict.py
a682d7ebe016bc6f03cc1008bfe5c4aa95e57e2a
[ "MIT" ]
permissive
yoavfrancis/netlib
e21f539064a22ca9187db307354a4dcfaf4b92fb
2a2402dfffc9f1a51869170793673eaf49207d0f
refs/heads/master
2020-12-25T02:30:43.733718
2015-02-16T23:10:10
2015-02-16T23:10:10
31,251,005
1
0
null
2015-02-24T08:31:08
2015-02-24T08:31:08
null
UTF-8
Python
false
false
4,102
py
from netlib import odict import tutils class TestODict: def setUp(self): self.od = odict.ODict() def test_str_err(self): h = odict.ODict() tutils.raises(ValueError, h.__setitem__, "key", "foo") def test_dictToHeader1(self): self.od.add("one", "uno") self.od.add("t...
[ "aldo@nullcube.com" ]
aldo@nullcube.com
71590b06141f5d982bc503706e14e1b0a8833cc9
3071601130c27af220b3c62089e1d99854bd9883
/hydrus/client/ClientFiles.py
db2449e9ff553de827f6c708cfa609fbbec0f114
[ "WTFPL" ]
permissive
cutie/hydrus
1abe8436161b31960ad68d18113fe45d50773111
a44a18f7cabbb9ca053076bf964354bb29012a0b
refs/heads/master
2022-12-12T13:11:39.213226
2020-08-15T01:47:09
2020-08-15T01:47:09
287,639,405
0
0
null
2020-08-14T23:00:47
2020-08-14T23:00:47
null
UTF-8
Python
false
false
85,085
py
import collections import gc import os import random import threading import time from qtpy import QtWidgets as QW from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusExceptions from hydrus.core import HydrusFileHandling from hydrus.core import HydrusGlobals ...
[ "hydrus.admin@gmail.com" ]
hydrus.admin@gmail.com
f176846dffc747deeac17c7614092d844a981882
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/google/machineLearningRecipesWithJoshGordon/4_letsWriteAPipeline/pipeline.py
4fdabb854df8929f44f96dae64fb5ce066b717b6
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
1,067
py
# pipeline.py # import dataset from sklearn import datasets iris = datasets.load_iris() x = iris.data y = iris.target # splitting datasets from sklearn.cross_validation import train_test_split x_train, x_test, y_train, y_test = train_test_split(x,y, test_size = .5) # using Decision Tree from sklearn import tree dec...
[ "sagarnikam123@gmail.com" ]
sagarnikam123@gmail.com
ca861735693a7e81e59f4c5fc6d5812eea8381e9
d04eeab9d686bd99893c07058261ca5fd2cb8732
/test/integration_test/tools/lib/ofp/utils.py
564acc8982158ffad85a1f1f13528ddd52f15c65
[ "Apache-2.0" ]
permissive
lagopus/lagopus-next-virtio
8c3153f3248372be367179cd68209eca324fdae2
068df5d98330861ceb377c2610f89d01ff654718
refs/heads/master
2021-01-21T14:48:52.873650
2016-10-06T02:42:20
2016-10-06T02:50:02
58,738,736
2
0
null
null
null
null
UTF-8
Python
false
false
491
py
import os import sys import re import base64 def create_section_name(name, del_str): name = name.replace(del_str, "") name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name) name = re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower() return name def get_attrs_without_len(obj): return [k for k, v in ob...
[ "hibi.tomoya@lab.ntt.co.jp" ]
hibi.tomoya@lab.ntt.co.jp
480c010c011096813c8e48ac0af7c86c5e7bd772
cea30aead7f0b529ee072c1bcab2896777e1408d
/PreprocessingCropsData/venv/Lib/site-packages/sklearn/linear_model/_coordinate_descent.py
328ec75a4a643979b809f906a773408e227b42d9
[]
no_license
pgj9702/FarmSolution
3730ab3ca983b335ed48a60935c5fa6e3983cbb1
a8cacc45b8519e79b51ab65b9539a01f5006e64f
refs/heads/master
2023-03-30T15:41:10.312044
2021-03-31T08:47:23
2021-03-31T08:47:23
334,019,778
0
1
null
2021-02-22T09:32:57
2021-01-29T02:52:46
Python
UTF-8
Python
false
false
92,815
py
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings import numbers from abc import ABCMeta, abstractm...
[ "cao147147@naver.com" ]
cao147147@naver.com
271f0b2eec47bedc49e13052b32e1886fe8e8356
1ad2a774e0127a7a8733abd18ec1222dc4dc9aeb
/in_out/hvsmr/load_data.py
8f43887ebfe048f926541807966ffd413a05e55f
[]
no_license
toologicbv/dcnn_acdc
416bac9af47a9cff3488cc638688cdff64a51008
fcfabb54ed7390abcf3bd140192ccc8755f72be4
refs/heads/master
2021-05-04T04:36:32.210493
2018-11-23T08:51:41
2018-11-23T08:51:41
120,335,634
0
0
null
null
null
null
UTF-8
Python
false
false
18,571
py
import sys from collections import OrderedDict import numpy as np import os import glob import SimpleITK as sitk from tqdm import tqdm from torch.utils.data import Dataset from common.hvsmr.config import config_hvsmr from in_out.load_data import BaseImageDataSet from in_out.read_save_images import load_mhd_to_numpy ...
[ "jorg.sander@toologic.com" ]
jorg.sander@toologic.com
5ef17dd39b578a01defa67a4be97fcbd0feedc02
4766d241bbc736e070f79a6ae6a919a8b8bb442d
/archives/leetcode/0090. Subsets II.py
64351b413c7bc38ae1ef7e8cbf56ccbe3f642a8d
[]
no_license
yangzongwu/leetcode
f7a747668b0b5606050e8a8778cc25902dd9509b
01f2edd79a1e922bfefecad69e5f2e1ff3a479e5
refs/heads/master
2021-07-08T06:45:16.218954
2020-07-18T10:20:24
2020-07-18T10:20:24
165,957,437
10
8
null
null
null
null
UTF-8
Python
false
false
836
py
''' Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Example: Input: [1,2,2] Output: [ [2], [1], [1,2,2], [2,2], [1,2], [] ] ''' class Solution: def subsetsWithDup(self, nums): ...
[ "yangzong5@gmail.com" ]
yangzong5@gmail.com
38c3efee0bdc193d1baf8f5ca7d687eba8be7fc5
483a7c7ceacea9cff9c2712ea742270e9aa2acb9
/aws-bigdata-dm/rule/dict_page/dict_weixin_pagenum.py
04279454a846c3e227439e85598036eda64dcfcc
[]
no_license
beckett1124/cleardata
514dd07d787bd20b3a9dafab5205e9c5c8899aea
ad1a05eaaaa79c1f3e34b21ab0741634b72aae0e
refs/heads/master
2021-01-20T01:35:55.501736
2017-07-24T02:08:09
2017-07-24T02:08:09
89,304,781
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
# encoding: utf-8 dict_weixin_page_num = { "0": "首页", "1": "热挡页", "2": "我的页", "3": "点播页面", "4": "观看历史页", "5": "我的收藏页", "99": "其他页面" }
[ "qibin@mgtv.com" ]
qibin@mgtv.com
d8fa5480491fc03b50ab644924315385b726dc31
35dbd536a17d7127a1dd1c70a2903ea0a94a84c2
/src/sentry/migrations/0228_update_auditlog_index_with_entry.py
3e4a20c8c18c49a467341d20dce351580f3c0662
[ "Apache-2.0", "BUSL-1.1" ]
permissive
nagyist/sentry
efb3ef642bd0431990ca08c8296217dabf86a3bf
d9dd4f382f96b5c4576b64cbf015db651556c18b
refs/heads/master
2023-09-04T02:55:37.223029
2023-01-09T15:09:44
2023-01-09T15:09:44
48,165,782
0
0
BSD-3-Clause
2022-12-16T19:13:54
2015-12-17T09:42:42
Python
UTF-8
Python
false
false
2,351
py
# Generated by Django 2.1.15 on 2021-08-31 01:53 from django.db import migrations, models class Migration(migrations.Migration): # This flag is used to mark that a migration shouldn't be automatically run in # production. We set this to True for operations that we think are risky and want # someone from ...
[ "noreply@github.com" ]
nagyist.noreply@github.com
d830556e278d9196233a44301b429cb53209d2c1
d1e4f29e583ee964d63bc48554eaa73d67d58eb2
/zerver/webhooks/uptimerobot/tests.py
30962b19bd10510404283f66f0f842168b2a77b5
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
hygolei/zulip
299f636f9238f50b0d2746f1c371748f182f1f4e
39fe66ab0824bc439929debeb9883c3046c6ed70
refs/heads/master
2023-07-11T22:50:27.434398
2021-08-09T10:07:35
2021-08-09T10:07:35
375,401,165
1
1
Apache-2.0
2021-08-09T10:07:36
2021-06-09T15:20:09
Python
UTF-8
Python
false
false
1,972
py
from zerver.lib.send_email import FromAddress from zerver.lib.test_classes import WebhookTestCase from zerver.models import Recipient from zerver.webhooks.uptimerobot.view import MISCONFIGURED_PAYLOAD_ERROR_MESSAGE class UptimeRobotHookTests(WebhookTestCase): STREAM_NAME = "uptimerobot" URL_TEMPLATE = "/api/v...
[ "tabbott@zulip.com" ]
tabbott@zulip.com
7e6ccd84cdce8ab1454969bc0a06226bf6b39ff4
ecd75802d500f0d514ad35b284798f8c0929ed03
/feedly/tests/storage/redis/activity_storage.py
11bb6a7cc9d6e7efe288be05112f4b4ffcc4079c
[ "BSD-3-Clause" ]
permissive
viirak/Stream-Framework
3ca07f256523dc528727f23a6081ef6201f03d04
5586c8c055a760230f3da292b8dcc9a36ca35160
refs/heads/master
2021-01-18T09:36:42.065035
2015-02-05T21:55:28
2015-02-05T21:55:28
31,207,349
1
0
null
2015-02-23T12:34:29
2015-02-23T12:34:28
null
UTF-8
Python
false
false
245
py
from feedly.tests.storage.base import TestBaseActivityStorageStorage from feedly.storage.redis.activity_storage import RedisActivityStorage class RedisActivityStorageTest(TestBaseActivityStorageStorage): storage_cls = RedisActivityStorage
[ "tbarbugli@gmail.com" ]
tbarbugli@gmail.com
bad729df75c91059093605f3d572173e60ece3be
b3b7f07a07a169a590e95d70e772b26477c3ace0
/backend/system_service/server/modules/security/serializers.py
b5b89816a174a96627c4cd8c397d201143944173
[]
no_license
roomanidzee/transportik-lite
984fff1af9a55273004d4fe2eec75ef956239d66
50e873d604eb4c931dfc99ce5f10db16886e99bd
refs/heads/master
2020-08-21T16:55:32.272729
2020-01-22T19:29:38
2020-01-22T19:29:38
216,203,431
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
from rest_framework import serializers as srlz class AuthSerializer(srlz.Serializer): """Serializer for user authorize""" email = srlz.CharField(max_length=100, required=True) password = srlz.CharField(max_length=100, required=True)
[ "romanov_andrey_vl@protonmail.com" ]
romanov_andrey_vl@protonmail.com
72e481fcf539498bf52293b80236eaf3860a0ebd
eeb8f0d9d0b0413f945e57e3de119c3964fb6a89
/epitools-env/lib/python3.8/site-packages/nltk/app/nemo_app.py
3b5e858a309536dc014c035f68aabdbbc12735b5
[]
no_license
Hillary05/EPITECH-DOCUMENTATION
13ff301fa657ff9ffd55ef61e64647453eda7a8c
4ea0bbef1d27003b7d5902cbdfdd41fbc9173b2c
refs/heads/master
2023-05-10T12:43:09.237217
2021-06-29T11:41:05
2021-06-29T11:41:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,354
py
# Finding (and Replacing) Nemo, Version 1.1, Aristide Grange 2006/06/06 # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496783 """ Finding (and Replacing) Nemo Instant Regular Expressions Created by Aristide Grange """ import re import itertools from tkinter import ( Frame, Label, ...
[ "hamidtessilimi@gmail.com" ]
hamidtessilimi@gmail.com
4708280c90eba62fef31161e23e13b4ad84817b9
ca5de66d73dcf62b3d3f9014f4577ed3119054c5
/ivy_tests/test_core/test_math.py
c650f217078e3afbb9de23ca8d43c8a73a32a010
[ "Apache-2.0" ]
permissive
MZSHAN/ivy
172dea365e8a903d3548b786cbb0f10d4fd03406
02ac7e8ee2202563049116186fe6595313d65cc1
refs/heads/master
2023-08-20T19:02:57.389728
2021-10-23T12:34:54
2021-10-23T12:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,114
py
""" Collection of tests for templated math functions """ # global import pytest import numpy as np # local import ivy import ivy.numpy import ivy_tests.helpers as helpers # sin @pytest.mark.parametrize( "x", [[0.], [[0.]]]) @pytest.mark.parametrize( "dtype_str", ['float32']) @pytest.mark.parametrize( "t...
[ "daniel.lenton11@imperial.ac.uk" ]
daniel.lenton11@imperial.ac.uk
ba855307bdff24c468e4a8b47a2b9981db73b447
c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5
/ml/m21_FI_test4_boston.py
f0c00e39e7739a8d6c0c735aa4fa88add49dfcc4
[]
no_license
89Mansions/AI_STUDY
d9f8bdf206f14ba41845a082e731ea844d3d9007
d87c93355c949c462f96e85e8d0e186b0ce49c76
refs/heads/master
2023-07-21T19:11:23.539693
2021-08-30T08:18:59
2021-08-30T08:18:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
# feature_importances # 중요도가 낮은 컬럼 제거한 후 실행 >> 제거하기 전이랑 결과 유사하다 from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split import pandas as pd import numpy as np #1. DATA dataset = load_boston() x = dataset.data ...
[ "hwangkei0212@gmail.com" ]
hwangkei0212@gmail.com
210cb2d81df56b182fbc0e4cc0f85093c3fc6176
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_image_version.py
46be6cfe6266f4b2f7f1b0c1182a534728b85893
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
3,205
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
2b9641ce62d2a1b48ec94cacdf79f44d687fc01b
70f5f279e051360310f95be895320d8fa6cd8d93
/extraPackages/matplotlib-3.0.2/examples/user_interfaces/embedding_in_wx2_sgskip.py
895627733f437fd84a120bb3b043e54e64de6729
[ "BSD-3-Clause" ]
permissive
spacetime314/python3_ios
4b16ab3e81c31213b3db1e1eb00230621b0a7dc8
e149f1bc2e50046c8810f83dae7739a8dea939ee
refs/heads/master
2020-05-09T20:39:14.980041
2019-04-08T15:07:53
2019-04-08T15:07:53
181,415,024
2
0
BSD-3-Clause
2019-04-15T05:00:14
2019-04-15T05:00:12
null
UTF-8
Python
false
false
1,761
py
""" ================ Embedding In Wx2 ================ An example of how to use wxagg in an application with the new toolbar - comment out the add_toolbar line for no toolbar """ from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wx import NavigationToolba...
[ "nicolas.holzschuch@inria.fr" ]
nicolas.holzschuch@inria.fr
7fca44b664b67ba6c0298e2a02aadee85b40fb2b
6413fe58b04ac2a7efe1e56050ad42d0e688adc6
/tempenv/lib/python3.7/site-packages/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py
72b1e789df5bba958c800f53cf744fc93731bbee
[ "MIT" ]
permissive
tytechortz/Denver_temperature
7f91e0ac649f9584147d59193568f6ec7efe3a77
9d9ea31cd7ec003e8431dcbb10a3320be272996d
refs/heads/master
2022-12-09T06:22:14.963463
2019-10-09T16:30:52
2019-10-09T16:30:52
170,581,559
1
0
MIT
2022-06-21T23:04:21
2019-02-13T21:22:53
Python
UTF-8
Python
false
false
9,649
py
from plotly.basedatatypes import BaseTraceHierarchyType import copy class Tickformatstop(BaseTraceHierarchyType): # dtickrange # ---------- @property def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possibl...
[ "jmswank7@gmail.com" ]
jmswank7@gmail.com
513502edeb9c0a6e0453ff859b796700cacd04cd
201919ea970f0dd249c7f88bc4ffc8515d7a0c78
/client/verta/verta/endpoint/__init__.py
2ef0297b9af2fcfe7c1423d99c51cedc3746ff23
[ "Apache-2.0" ]
permissive
vishalbelsare/modeldb
a473dcd2524750d3bbfff1c46111d5806b090867
0c135828dae668c769a4c4a5e933d38a934a9d10
refs/heads/master
2022-02-03T04:26:07.441559
2021-12-30T18:59:10
2021-12-30T18:59:10
211,615,963
0
0
Apache-2.0
2021-12-30T22:55:05
2019-09-29T06:38:32
Java
UTF-8
Python
false
false
397
py
# -*- coding: utf-8 -*- """Model deployment and management.""" from verta._internal_utils import documentation from ._build import Build from ._kafka_settings import KafkaSettings from ._endpoint import Endpoint from ._endpoints import Endpoints documentation.reassign_module( [ Build, KafkaSetti...
[ "noreply@github.com" ]
vishalbelsare.noreply@github.com
71d2b2487e1d81099723f9f7f04ac3b82e8225b8
01062df369907a6ff4367ad006d9be75f3b0886f
/zvt/factors/ma/domain/stock_1d_ma_stats_factor.py
bd7548159a9fb8a109e1ab2aee170b5f4d1220b6
[ "MIT" ]
permissive
scanfyu/zvt
917d8dd6df63fd3d55183896710573700f615a0e
2ff38155bd85fb0945a7b45cad8dbdf2f175a3d5
refs/heads/master
2021-12-01T13:40:00.241766
2021-11-26T16:04:04
2021-11-26T16:04:04
186,553,012
0
0
MIT
2020-03-01T02:33:08
2019-05-14T05:46:40
Python
UTF-8
Python
false
false
535
py
# -*- coding: utf-8 -*- from sqlalchemy.ext.declarative import declarative_base from zvt.contract.register import register_schema from zvt.factors.ma.domain.common import MaStatsFactorCommon Stock1dMaStatsFactorBase = declarative_base() class Stock1dMaStatsFactor(Stock1dMaStatsFactorBase, MaStatsFactorCommon): ...
[ "5533061@qq.com" ]
5533061@qq.com
4c6bc048d8113a709c45c7cd699a7ff7637a5d56
1df8d24373d05074a0a1bb70f73bd8f313e65465
/tests/util.py
e4507239553537f271ecf8cf09538393b450ad1a
[]
no_license
andy-mcn/rpi-can-logger
3f5c0b491899932e902d975363919a27ddc2b20e
4c16a880717740848cd89fcd0af9d3832dc32276
refs/heads/master
2023-04-11T05:11:57.273424
2021-03-14T01:05:24
2021-03-14T01:05:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
import sys def get_args(): print(sys.argv) if len(sys.argv) > 1: arg = sys.argv[1].lower() if arg == 'pcan': # PCAN interface = 'pcan' channel = 'PCAN_USBBUS1' elif arg in ['can1', 'can0']: # pican channel = arg in...
[ "jonmac1@gmail.com" ]
jonmac1@gmail.com
9bf80412e8a757f46f7124870d363133e8b79d80
cf8be80fe9d7acfae03d86430d1c8ff8d22a8655
/unit/dispatch_spec.py
d0dc6a9b0cf8418415cc52b0f103ac570a18c31b
[ "MIT" ]
permissive
tek/ribosome-py
4da2faf3f7c2d646c5a90bf73e81ec12bd360d38
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
refs/heads/master
2022-12-21T22:46:49.075358
2020-08-31T16:22:51
2020-08-31T16:22:51
66,086,253
0
0
null
null
null
null
UTF-8
Python
false
false
3,701
py
from typing import Any from kallikrein import Expectation, k, pending from amino.test.spec import SpecBase from amino import Lists, List, _, IO, __, do, Do from amino.boolean import true from amino.dat import Dat from ribosome.compute.api import prog from ribosome.data.plugin_state import PluginState, PS from riboso...
[ "torstenschmits@gmail.com" ]
torstenschmits@gmail.com
7f857334e26e13ecc75c3262b9d7905df2ad481a
27317b3adb1ccd99afa86cb931d2d14e23b9b175
/bcs-app/backend/bcs_k8s/authtoken/providers/app_provider.py
61388135edf519c3986ef6fb327776bd57aa3f98
[ "BSD-3-Clause", "LicenseRef-scancode-unicode", "ICU", "LicenseRef-scancode-unknown-license-reference", "Artistic-2.0", "Zlib", "LicenseRef-scancode-openssl", "NAIST-2003", "ISC", "NTP", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "MIT" ]
permissive
freyzheng/bk-bcs-saas
cf5a6c4ab1c20959bda1362bc31de7884451acd7
96373cda9d87038aceb0b4858ce89e7873c8e149
refs/heads/master
2021-07-05T04:11:08.555930
2020-09-22T12:26:37
2020-09-22T12:26:37
201,279,048
0
1
NOASSERTION
2020-09-16T03:07:16
2019-08-08T14:48:27
Python
UTF-8
Python
false
false
3,478
py
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. # Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the MIT License (the "License"); you may not use this file except i...
[ "gejun.coolfriend@gmail.com" ]
gejun.coolfriend@gmail.com
7e47e54e7ed44a58053935a515d22b5e795cb2e7
3903b5f316cc11ff8970d29deb07d0fa74166166
/cloudmesh/launcher/Launcher.py
2eed73501a64bfab2cd3852334eba7db3a8a526a
[ "Apache-2.0", "Python-2.0" ]
permissive
cloudmesh/cloudmesh-launcher
7890f94ae8b07b651b0f28240b68bdd8b1433d42
80cf9ade82f45a42e55c03de51d9a6e3ade8cf42
refs/heads/main
2021-04-04T21:43:33.530932
2020-04-11T22:27:24
2020-04-11T22:27:24
248,490,985
0
1
null
null
null
null
UTF-8
Python
false
false
3,152
py
from cloudmesh.common.util import banner from cloudmesh.common.console import Console from cloudmesh.launcher.Config import Config import sys from pprint import pprint import textwrap import os as _os # noinspection PyUnusedLocal class Launcher(Config): spec = textwrap.dedent(""" info: name: sample ...
[ "laszewski@gmail.com" ]
laszewski@gmail.com
d2400aafef9a69be9a9808ae3d96884e1b9777e1
f0ee987789f5a6fe8f104890e95ee56e53f5b9b2
/pythia-0.8/examples/opaldemo/content/pages/sample.odb
1e80cff2f8b14f73f7da93716a75ef4b931b36da
[]
no_license
echoi/Coupling_SNAC_CHILD
457c01adc439e6beb257ac8a33915d5db9a5591b
b888c668084a3172ffccdcc5c4b8e7fff7c503f2
refs/heads/master
2021-01-01T18:34:00.403660
2015-10-26T13:48:18
2015-10-26T13:48:18
19,891,618
1
2
null
null
null
null
UTF-8
Python
false
false
1,847
odb
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~...
[ "echoi2@memphis.edu" ]
echoi2@memphis.edu
654ff8c1778ac83daf22080b2ef8317d165aa128
f023692f73992354a0b7823d9c49ae730c95ab52
/other/2012/tenka1-2012-qualB/B.py
d7a8659bded549d18f61a0304d1d0de5885d2368
[]
no_license
corutopi/AtCorder_python
a959e733f9a3549fab7162023e414ac2c99c4abe
a2c78cc647076071549e354c398155a65d5e331a
refs/heads/master
2023-08-31T09:40:35.929155
2023-08-20T06:19:35
2023-08-20T06:19:35
197,030,129
1
0
null
2022-06-22T04:06:28
2019-07-15T15:57:34
Python
UTF-8
Python
false
false
2,922
py
# import sys # sys.setrecursionlimit(10 ** 6) # import bisect # from collections import deque # import string from math import ceil, floor import re # inf = float('inf') # mod = 10 ** 9 + 7 # mod2 = 998244353 def is_word(s): if s == '': return False for i, c in enumerate(s): if i == 0: i...
[ "39874652+corutopi@users.noreply.github.com" ]
39874652+corutopi@users.noreply.github.com
f7cad14ae71674e7322643e84e5bae7f75ae155e
b523cb4a55b751cd5447dbf470b3725db4c9ae77
/metalearner.py
e551cd053793d29be8b3d89ad9684c5ef3fa92c5
[ "MIT" ]
permissive
pedronahum/varibad
0d763f2d720df2f66d951c1e917f5efb76c80d93
2fcca1cb73e863b5b91e66cb189c333afddde0dd
refs/heads/master
2022-04-14T00:27:13.992489
2020-03-30T18:23:44
2020-03-30T18:23:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,341
py
import os import time import gym import numpy as np import torch from algorithms.a2c import A2C from algorithms.online_storage import OnlineStorage from algorithms.ppo import PPO from environments.parallel_envs import make_vec_envs from models.policy import Policy from utils import evaluation as utl_eval from utils i...
[ "lmzintgraf@gmail.com" ]
lmzintgraf@gmail.com
eaee37925f58f69bd0e8cac9e5505c0731c0257c
1213bcf770a94a89b39be8dc7b99a3f7e35fd369
/src/xenia/debug/protocols/ws/sources.gypi
f3313acf274506e8e083be1fdc1110f7fc551e03
[]
no_license
wtfaremyinitials/xenia
c86e4625a1dd084d97d44c3242e2faf208bca2b8
16b3ecd5897051f82bc236ad9a4d0ab5cab22e87
refs/heads/master
2020-12-31T02:43:53.168712
2014-01-14T22:06:05
2014-01-14T22:06:05
15,918,955
2
0
null
null
null
null
UTF-8
Python
false
false
198
gypi
# Copyright 2013 Ben Vanik. All Rights Reserved. { 'sources': [ 'simple_sha1.cc', 'simple_sha1.h', 'ws_client.cc', 'ws_client.h', 'ws_protocol.cc', 'ws_protocol.h', ], }
[ "ben.vanik@gmail.com" ]
ben.vanik@gmail.com
161fcc4e9d18391b8e4a0a8c5ce6467e482bed76
dbd6275aacc6a8812fc0d9c3dc0a4846a61bdb82
/qa/reject_direct_offline.py
3acc2d1e79e9406f9929fb3d1072c7c61416b0ab
[ "MIT" ]
permissive
cpacia/openbazaar-go
9e52a6c789c38a2759cafb69b57b709a1a43ba5d
8eaf68a4ca45e54c44125123551e14d5f97a9b95
refs/heads/master
2020-12-28T07:45:48.152210
2017-03-20T22:07:44
2017-03-20T22:07:44
63,965,163
1
0
null
2017-01-04T00:28:43
2016-07-22T15:49:15
Go
UTF-8
Python
false
false
7,709
py
import requests import json import time from collections import OrderedDict from test_framework.test_framework import OpenBazaarTestFramework, TestFailure class RejectDirectOfflineTest(OpenBazaarTestFramework): def __init__(self): super().__init__() self.num_nodes = 3 def run_test(self): ...
[ "chris@ob1.io" ]
chris@ob1.io
8fea4394f9dfc0ee8d8d8ca5e82b96250660c553
bc167f434158921bcf2c678155c5cdfec1c9b0c9
/PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav152.py
4e35a0a629e468b58fd096f8f015f395004c2f9f
[]
no_license
s0217391/DifferentProjects
6450efc89c64ecd21b86c705737e89e5c69433a6
7f4da153660817b6cbf72d2e823aa29c0c2f95a9
refs/heads/master
2021-01-17T02:58:46.219240
2015-05-26T22:45:46
2015-05-26T22:45:46
34,995,164
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
#!/usr/bin/python import sys def compute(prey): if prey[1] > prey[1]: temp0 = -1 * prey[0] else: if prey[1] != 0: temp0 = prey[1] / prey[1] else: temp0 = prey[1] if prey[0] != 0: temp1 = prey[0] / prey[0] else: temp1 = prey[0] temp2 = prey[1] - prey[1] temp2 = prey[1] - temp2 if temp0 != 0: te...
[ "i7674211@bournemouth.ac.uk" ]
i7674211@bournemouth.ac.uk