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
32c223029e04429994b265ecb332f2ad008e6039
309d17b81cea038713ba67bee72a41d2df4d6869
/Python/Python A.prasert/forloop_2.py
1a98309614b2354a002eec306a860489ba68164f
[]
no_license
Bongkot-Kladklaen/Programming_tutorial_code
ac07e39da2bce396e670611884436b360536cdc5
cda7508c15c3e3d179c64b9aac163b6173ef3519
refs/heads/master
2023-06-20T13:14:17.077809
2021-07-18T04:41:04
2021-07-18T04:41:04
387,081,622
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
def temperature_table(): for celsius in range(101): f = (celsius * 9 / 5) + 32 # print(celsius, "=", f) print("{}c = {:.2f}f".format(celsius, f)) # temperature_table() def multi_table(from_n,to_n): for i in range(from_n, to_n + 1): for j in range(1, 13): print("{} * ...
[ "bongkot.klad@gmail.com" ]
bongkot.klad@gmail.com
bee0b25f7bf3529da60127074790761198586582
ecb7e109a62f6a2a130e3320ed1fb580ba4fc2de
/reference-code/lambda/cm-premembers-backend/premembers/check/logic/check_asc/asc_item_4_logic.py
d263a613b3deac0683cd2de5a7f72df4a73fd5ff
[]
no_license
nisheeth84/prjs_sample
df732bc1eb58bc4fd4da6e76e6d59a2e81f53204
3fb10823ca4c0eb3cd92bcd2d5d4abc8d59436d9
refs/heads/master
2022-12-25T22:44:14.767803
2020-10-07T14:55:52
2020-10-07T14:55:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
from premembers.check.logic.check_asc import asc_item_common_logic def check_asc_item_04_01(trace_id, check_history_id, organization_id, project_id, aws_account, session, result_json_path): return asc_item_common_logic.check_asc_item_copy_cis_check( trace_id, check_history_id, org...
[ "phamkhachoabk@gmail.com" ]
phamkhachoabk@gmail.com
d27524d554ab79c93d8d8363b471671afed612ca
f33fff1f392d19c46a38c5a053bd206186a5c9d4
/contrib/python/scikit-learn/py2/sklearn/ensemble/tests/test_forest.py
59cebb82220f59fdd46696d1b1c54c43b6c7e077
[ "Apache-2.0" ]
permissive
david-waterworth/catboost
6d276d284dc0dee4908d88aa6c3b3cdd19918a63
134c66156105cb8f7f6e4478dacf727ea53d0d29
refs/heads/master
2022-03-10T11:31:31.795631
2022-03-07T01:20:08
2022-03-07T01:20:08
175,712,691
0
1
Apache-2.0
2019-07-30T23:35:34
2019-03-14T22:59:46
C++
UTF-8
Python
false
false
41,797
py
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle from collections import defaultdict from itertools import combinations from itertools import product import numpy ...
[ "evgueni.s.petrov@gmail.com" ]
evgueni.s.petrov@gmail.com
a16b6a375d17fcb0ba727973155c51df82d3a814
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200321191228.py
a370b8f323c28ddf03a604664d7a0c7aadeb5d76
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
import os import subprocess import re from datetime import datetime import time print("Test for 5 0 10") for i in range(0, 10): process = subprocess.Popen(['./algo_tabou.exe', '5', '0', '10', 'distances_entre_villes_10.txt'],stdout=subprocess.PIPE,stderr=subprocess.PIPE) stdout, stderr = process.communicate()...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
e22e37363041509e1d8f04a89050cff1b9e817b3
92948f28664da00685bc05d4f9d134099941eef0
/backend/home/management/commands/load_initial_data.py
0a220fbd4fd0c489c705367a1a9565874439e806
[]
no_license
crowdbotics-apps/vdc-5030
54ce72c65570a02d48da872712dd4a5412159b4e
f5d58c855663c577399b902a9cc72fa008d204cc
refs/heads/master
2022-12-09T19:39:19.058510
2019-06-22T16:08:20
2019-06-22T16:08:20
193,253,454
0
0
null
2022-12-03T14:46:55
2019-06-22T16:07:51
Python
UTF-8
Python
false
false
709
py
from django.core.management import BaseCommand from home.models import CustomText, HomePage def load_initial_data(): homepage_body = """ <h1 class="display-4 text-center">vdc</h1> <p class="lead"> This is the sample application created and deployed from the crowdbotics slack app. You...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
acb0ce475798995aa834b75d1f6b2945899a39e0
f4c36d1b5946ad0145d10164c40ee0635903accb
/tech/views.py
95b0ce80125c17bbe52c5105e0b42396e028246d
[]
no_license
Vivekdjango/techstop
69c2edec92ef9b0e7318b908c8cf8044c5d7dfa2
1c0a0b992136a129a0d4226ee1ae691cd0a91ae4
refs/heads/master
2021-01-11T17:59:29.690837
2018-09-01T13:12:52
2018-09-01T13:12:52
79,893,964
0
0
null
null
null
null
UTF-8
Python
false
false
7,418
py
from django.shortcuts import render_to_response from django.http import HttpResponse from jira.client import JIRA from django.shortcuts import render from django.contrib.auth.decorators import login_required import ldap from django.shortcuts import redirect from django.conf import settings from django.contrib.sessions....
[ "viveksinha@IC0532-L0.corp.inmobi.com" ]
viveksinha@IC0532-L0.corp.inmobi.com
d63470fb86678ce5b76e79d0a4e13193d3f69c46
7966fa31437cc8a539621a5a0642ce24c1c9de50
/PycharmProjects/WeightGraph/SparseGraph.py
77f3e4545f3130a397838972d2511e9b06f6536c
[]
no_license
crystal30/DataStructure
4f938508f4c60af9c5f8ec5520d5acedbe2dc90e
c55b0cfd2967a2221c27ed738e8de15034775945
refs/heads/master
2021-06-25T17:49:03.048853
2021-01-22T00:37:04
2021-01-22T00:37:04
192,374,326
0
0
null
null
null
null
UTF-8
Python
false
false
2,203
py
# -*- coding: utf-8 -*- import random from Edge import Edge #稀疏图用邻接表来表示 class SparseGraph: def __init__(self, n, directed): self.n = n #节点数 n>0 self.m = 0 #边数 初始为0 self.directed = directed #是否为方向图 #构造邻接表 self.g = [None]*n for i in range(n): self.g[i] = ...
[ "zhao_crystal@126.com" ]
zhao_crystal@126.com
93d10c036970bdb91caf046fb6d9d4b48c4dd8f8
b9ef7ae443bb42555d71da4950206bd127a2a3f7
/ui_element_creation_speed_test.py
3793aa8377c1873b4827f5ec2c90d4847092d771
[]
no_license
zximeng/pygame_gui_examples
f6acf04b77b74172bf717fc5fca3d9ff38c7095c
f888c196c74d5fbe4cc173e01bb8b46f4dd2e085
refs/heads/master
2022-07-20T16:10:12.678765
2020-05-10T17:56:30
2020-05-10T17:56:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
import pygame import pygame_gui # (182 x rounded rectangles) # in 0.42 # -------- # Button creation time taken: 0.092 seconds. # Clear and recreation time taken: 0.088 seconds. # in 0.55 # -------- # Button creation time taken: 0.21 seconds. # Clear and recreation time taken: 0.229 seconds. # in 0.56 # -------- # ...
[ "dan@myrespace.com" ]
dan@myrespace.com
1a9def7f1ae036aab3b850b95dda93b4e1a707e7
84688170125e990eb8f70ccc51a3fe529a9ab9dc
/29-4.py
a5c357276aa28a59c33f629d77dd603ac6506dde
[]
no_license
zhaolixiang/Python3Spider
0be225b08d08bf542a4ac2fcfd44b892cd84c589
6c86d74ccfb02c02aa36c700feeb7c70eb924ffc
refs/heads/master
2020-07-07T22:23:46.919570
2019-09-09T09:28:35
2019-09-09T09:28:35
203,493,099
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
from bs4 import BeautifulSoup html = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title" name="dromouse"><b>The Dormouse's story</b></p> <p class="story">Once upon a time there were three little sisters; and their names were <a href="http://example.com/elsie" class="sister" id="link1"><!...
[ "1782980833@qq.com" ]
1782980833@qq.com
92a864eaa57b791297099ebb05957a4fd48fe2e6
c071eb46184635818e8349ce9c2a78d6c6e460fc
/system/python_stubs/-745935208/PyQt5/QtWidgets/QStyleFactory.py
ec8a48796310b69ab600a6096b11ea9d404a2507
[]
no_license
sidbmw/PyCharm-Settings
a71bc594c83829a1522e215155686381b8ac5c6e
083f9fe945ee5358346e5d86b17130d521d1b954
refs/heads/master
2020-04-05T14:24:03.216082
2018-12-28T02:29:29
2018-12-28T02:29:29
156,927,399
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
# encoding: utf-8 # module PyQt5.QtWidgets # from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PyQt5\QtWidgets.pyd # by generator 1.146 # no doc # imports import PyQt5.QtCore as __PyQt5_QtCore import PyQt5.QtGui as __PyQt5_QtGui import sip as __sip class QStyleFactory(__sip.simplewrapper):...
[ "siddharthnatamai@gmail.com" ]
siddharthnatamai@gmail.com
af1700995d996e36b3f702b4ce18d891402f6190
cc0d06e2aad3d30152c4a3f3356befdc58748313
/2.til8.oktober/f2c_shortcut_plot.py
d571b11565e8cdb75218df78d232137ea7bd8ba4
[]
no_license
lasse-steinnes/IN1900
db0bb4da33fa024d4fe9207337c0f1d956197c50
c8d97c2903078471f8e419f88cc8488d9b8fc7da
refs/heads/master
2020-12-14T15:34:36.429764
2020-01-18T19:59:46
2020-01-18T19:59:46
234,789,653
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
### Oppgave 5.12 ### Skal plotte eksakt og tilnærming til celsius i et og samme plotte def c_eksakt(f): c = (float(5)/9)*(f - 32) return c def c_tilnarmet(f): c = (f - 30)/2 return c ## Skal jobbe med array, det er enklest ## Lager en ny med linspace. from numpy import linspace F_deg = linspace(-2...
[ "lasse.steinnes93@gmail.com" ]
lasse.steinnes93@gmail.com
db2030a20cbd443947dc38df007ab1f7c2da3381
9d77c2434b0e804af2ecaf4a4ea6d99f6ac6d96d
/models/research/lstm_object_detection/seq_dataset_builder_test.py
a756b1cc4973a252e275584978372f0d67cfd2e9
[ "Apache-2.0", "MIT" ]
permissive
UpCoder/ISBI_LiverLesionDetection
cce7c118601548eef8bfeeedfe4f50d88411a7df
e21ce360e55092a16acc4d147a1418a53545d562
refs/heads/master
2022-12-12T12:57:50.299718
2019-04-03T03:49:43
2019-04-03T03:49:43
179,206,267
8
1
MIT
2022-12-08T16:02:31
2019-04-03T03:49:00
Python
UTF-8
Python
false
false
9,297
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...
[ "546043882@qq.com" ]
546043882@qq.com
fb6e9d9fa6d38c6b4db1e11b15ea7304e8751cd2
de9b8b7192a0a81e9249823bb2b86f0b7e452863
/.history/classes/Season_20171107224017.py
f92eab1b71a68c9d9afa81833545afbecae2a2dd
[ "MIT" ]
permissive
reecebenson/uwe-dadsa-tennis-a
f5eaeb1b96d4e61f29279514e68eeea8ad6533db
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
refs/heads/master
2023-07-08T16:13:23.963348
2017-11-30T12:07:01
2017-11-30T12:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,829
py
# DADSA - Assignment 1 # Reece Benson from classes import Player from classes import Round class Season(): _app = None _j_data = None _name = None _players = { } _tournaments = { } _rounds = { } _rounds_raw = { } _settings = { } def __init__(self, _app, name, j_data): # Se...
[ "me@reecebenson.me" ]
me@reecebenson.me
c4ddb9fcfd6374c8d0cbe1d5dba0753a9a292153
ea522b496372174216fba2aad29bf231a28cc819
/QuikLab/.svn/pristine/db/dba4312bca32411390a8c2e7b55daf97bbee9821.svn-base
eaabda8db25787f6702842a672c63439c47d2cdb
[]
no_license
gatdotZF/svn192.168.1.5
15fdf074042b0a1e5e8c795d3c340080c04ba496
196bd4c83b12e3476c269057a4ef3b730a967d9e
refs/heads/master
2020-07-26T17:45:16.259037
2019-09-16T06:36:35
2019-09-16T06:36:35
null
0
0
null
null
null
null
GB18030
Python
false
false
2,927
#! /usr/bin/env python #coding=GB18030 from pywinauto import application from pywinauto import mouse as ms import auto_lib as pywin import SendKeys import time import os app=pywin.Pywin() #添加客户端接口 def add_TCP_Client_Interface(window_name): app.connect(window_name) app._wait_child(window_name, u'添加接口', 'ready'...
[ "994430058@qq.com" ]
994430058@qq.com
62c65ac9be1451c84693cb71bf845bd0706d4b20
7a884ce8dd90828bf7a6e29a2bab1a85810334d7
/OPENiapp/OPENiapp/user_management/JsonSerializations.py
45e54ae4c38e4d5c5ddec2153ebd6b7b007a8828
[]
no_license
OPENi-ict/api-framework
d724047f4d0157c91914dbdbf553076b8c073125
b667236d6a9fb243d2c69f3efc1d15a6aa11f3fc
refs/heads/master
2020-06-02T05:25:04.286876
2015-06-24T12:42:02
2015-06-24T12:42:02
20,104,796
0
1
null
null
null
null
UTF-8
Python
false
false
693
py
__author__ = 'mpetyx' import logging from OPENiapp.models import Person def profileJson(person): """ @param person: @return: >>> from OPENiapp.Profile import * >>> profileJson(2,3) """ response = {} if type(person) == int: person = Person.objects.get(id=person) re...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
167db88f0151e2022f01c11da25138c06455da7f
c140ad38b1463024e289ceb0d5d6d44a45c91724
/test/test_zipfile.py
c1eb86e61143ed0dea9e16adb37b433c8e03bc32
[ "Apache-2.0" ]
permissive
NVIDIA/hpc-container-maker
3a333526decbd18352ef8d1fb3bec0033be221e8
60fd2a51c171258a6b3f93c2523101cb7018ba1b
refs/heads/master
2023-08-21T13:32:27.132476
2023-06-12T21:12:40
2023-06-12T21:12:40
126,385,168
419
88
Apache-2.0
2023-09-11T18:33:26
2018-03-22T19:26:41
Python
UTF-8
Python
false
false
1,507
py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
03f6df13aa9b2a8790b6ce5b3470846777a1a740
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/modify_customized_fields_response.py
1af0bdcb790b879339b683785055b75bccc570b1
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,221
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ModifyCustomizedFieldsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9aecad9ee0adccc0fe5c655ca1efef2ec9258522
b3c47795e8b6d95ae5521dcbbb920ab71851a92f
/HackerRank/Mathematics/Combinatorics/Super Humble Matrix.py
bcc9470c8f626a298ba1b8f1f6e53c76e2b1ee53
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Wizmann/ACM-ICPC
6afecd0fd09918c53a2a84c4d22c244de0065710
7c30454c49485a794dcc4d1c09daf2f755f9ecc1
refs/heads/master
2023-07-15T02:46:21.372860
2023-07-09T15:30:27
2023-07-09T15:30:27
3,009,276
51
23
null
null
null
null
UTF-8
Python
false
false
597
py
#!/bin/python3 # https://www.hackerrank.com/challenges/super-humble-matrix/problem import os import sys MOD = (10 ** 9) + 7 fac = [1] for i in range(1, 1234567): fac.append(fac[-1] * i % MOD) # Complete the solve function below. def solve(n, m): res = 1 for i in range(1, n + m): res *= fac[min(...
[ "noreply@github.com" ]
Wizmann.noreply@github.com
8627510c17d6689b16f9e413871da1ed4a413aaa
3052941bbde225a1ececbeb628c05c47bcd7c494
/ProgressiveNN_atari_1.py
b133cf1cdc427ef1e606afc22de9ae6552ccf0de
[]
no_license
LKH-1/A3C-tensorflow
32cffb66f07b1903dd774e49aee43bd966b6abd8
807e545194534f12a3a1d5838343df5a248bd833
refs/heads/master
2021-06-03T03:12:10.595718
2016-10-11T02:00:01
2016-10-11T02:00:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,077
py
#!/usr/bin/python # -*- coding: utf-8 -*- # author: yao62995@gmail.com import cv2 import re import gym import signal import threading import scipy.signal from tensorflow.python.ops.rnn_cell import BasicLSTMCell from common import * tf.app.flags.DEFINE_string("game", "Breakout-v0", "gym environment name") tf.app.fla...
[ "yao62995@gmail.com" ]
yao62995@gmail.com
3ba67a97b759773cb9e889e27b55307e1c57fd85
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03631/s959764183.py
de08ce7cd29feedfc964754d0c6483963748765b
[]
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
112
py
def main(): s = input() print('Yes' if s[0] == s[-1] else 'No') if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9bf44324f5467ec4f2cd2ed1d89d9dacd7af861d
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_299/ch33_2020_04_06_20_17_27_367095.py
fb5bc9a88a4a4d64cc0470b1d3e5450bc6a27deb
[]
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
665
py
def eh_primo (m): if m == 0: return False elif m == 1: return False elif m == 2: return True elif m == 3: return True else: i=3 primu=True while i<m and primu: if m%2==0: primu = False return False ...
[ "you@example.com" ]
you@example.com
f16ccbf8be3542dd72e17abbdee91ec2e53f9d11
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch12/Python/P12-ThrowPC.py
cbdf19d1f813cb40469a23c430aadd2af720e8ac
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
1,775
py
# Oblique throw of an object with drag using the Euler PC method from math import * from ode import * g = 9.81e0 # gravitational acceleration def Func(t, y, f): # RHSs of 1st order ODEs for oblique throw f[1] = y[3] # y[1] = x, y[2] =...
[ "me@yomama.com" ]
me@yomama.com
744d42ace846196a4392fc809c25cd402ec4bfa8
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_100/ch26_2020_10_04_04_08_41_035633.py
66ad65d59192df943f83f83b422b95e5f8bfe334
[]
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
324
py
c = float(input('Qual é o valor da casa?')) s = float(input('Qual é o seu salário?')) t = float(input('Vai pagar isso em quantos anos?')) def f(c, s, t): vp = c / (t*12) x = s*0.30 if vp > x: return 'Empréstimo não aprovado' else: return 'Empréstimo aprovado' print(f(c,s,t))
[ "you@example.com" ]
you@example.com
50dd5ebbd548bd0c7c9695d4ec2a965a0154c571
42643ad30817f4bd3415f00854d3e284de76a459
/test.py
4d12015bf536da6cfefbe4c80d80ba8119134a4d
[]
no_license
wqqsukida/Python_road
3506ccd8897ef22e40d205009eef7080df79858d
ae83fd988cf1fd7be374707c35a11b3713d4e6b7
refs/heads/master
2020-08-25T04:28:44.228436
2019-10-21T14:54:25
2019-10-21T14:54:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
def outer(data): def inner(): print(data) return inner li = [] for i in range(10): li.append(outer(i)) li[0]() li[1]() li = [1, 2, 3] s = {1,2,3} print(s + s) # import sys # # a = {1: 1} # print('----', sys.getrefcount(a)) # print(sys.argv) # # # def func(arg): # print(id(arg)) # print...
[ "958976577@qq.com" ]
958976577@qq.com
c873f94a9aeab7bf6a4f25afdac85ea9277cb0af
76d388b5d2e74ff0eda748c7868fadf0704cf700
/examples/FasterRCNN/config.py
633f46e6cf1adfc31ebe3a753ae9a742f1ca7055
[ "Apache-2.0" ]
permissive
jooyounghun/tensorpack
eebf0867e5a82ffd52660dccfbd34879b8d0f5af
90cdae380c40a1e91f627520c4a739bd6ee3f18b
refs/heads/master
2020-03-23T23:24:41.651089
2018-07-27T02:57:19
2018-07-27T02:57:19
142,232,523
1
0
Apache-2.0
2018-07-25T01:45:06
2018-07-25T01:45:05
null
UTF-8
Python
false
false
7,894
py
# -*- coding: utf-8 -*- # File: config.py import numpy as np import os import pprint from tensorpack.utils import logger from tensorpack.utils.gpu import get_num_gpu __all__ = ['config', 'finalize_configs'] class AttrDict(): def __getattr__(self, name): ret = AttrDict() setattr(self, name, ret) ...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
432f5e5de5b1090f72c32a097ac339e71a8cb320
051c3ee44478265c4510530888335335ec9f7fdf
/ML_Applications/SVM/Mutants/code/SVM_linear/DigitRecognitionApp_22.py
690ffac0876fee2652f2836dc42244430a89da02
[]
no_license
PinjiaHe/VerifyML
b581c016012c62d8439adfce0caef4f098b36d5e
3bd7c49e45720c1cdfe0af4ac7dd35b201056e65
refs/heads/master
2020-03-25T19:40:39.996370
2018-01-30T08:58:58
2018-01-30T08:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,180
py
""" Created on Fri May 26 15:20:01 2017 #Digit Recognition for V & V #Following note added by RR Note: 1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example 2. For more info, refer this link htt...
[ "anurag.bms@gmail.com" ]
anurag.bms@gmail.com
b751d1420ca33f5bbca1cadf5b485e0d5e6cf34e
13688b7981908e126087814b4528f5ef5cc63ad2
/test/test_linalg.py
f26f7dedd235bdfd240b0df71ffdebbe7f8349bb
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
shrutiramesh1988/pytorch
be34bb0c674bf27dc847b13a40b982d3d550b787
be2a4294244bc79a3f2f60f712e83a9214dfd8e2
refs/heads/master
2021-07-08T21:27:28.917944
2021-03-31T15:21:52
2021-03-31T15:21:52
233,527,778
0
0
NOASSERTION
2020-01-13T06:35:32
2020-01-13T06:35:31
null
UTF-8
Python
false
false
344,216
py
import torch import numpy as np import sys import subprocess import os import unittest import itertools import warnings import math from math import inf, nan, isnan import random from random import randrange from itertools import product from functools import reduce from torch.testing._internal.common_utils import \ ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
70390dff272d7a09c18c30b9e1521ae4adcaf5bd
0d90e76b0fedfe7de7736dfccde72ee158aa2a7d
/froide/foirequest/foi_mail.py
dc9d5982ae2251faecdbcf0de0e51d2961cb1fcc
[ "MIT" ]
permissive
daonb/froide
b75e7e613fdfb9365b1c91bd330ff7abde4c2884
e055589e57ce7a3d1a1f6f7185e5c58aa1a09f1e
refs/heads/master
2020-12-25T03:29:47.598216
2011-06-20T06:17:26
2011-06-20T06:17:26
1,811,809
1
0
null
null
null
null
UTF-8
Python
false
false
2,444
py
import logging from email.utils import parseaddr from django.conf import settings from django.core.mail import get_connection, EmailMessage from froide.helper.email_utils import (EmailParser, UnsupportedMailFormat, get_unread_mails, make_address) def send_foi_mail(subject, message, from_email, recipient_list...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
91b69bbbbbd96afdb1e0df44872ae04652841601
62f14a7eab00216122e1d2bd4c19ed0c3045398a
/main/migrations/0064_auto_20190507_1713.py
17c82e62a1b2b056097a5110f581f86c8c77693c
[]
no_license
pzagora/share.it
12280372eb2c124cf807d04534a1fefdd0183356
ab825862d6f776f4d8617438f9c98bc183be089f
refs/heads/master
2020-04-30T10:03:58.919422
2019-05-21T19:14:15
2019-05-21T19:14:15
176,766,038
6
0
null
2019-05-21T19:14:16
2019-03-20T15:41:56
Python
UTF-8
Python
false
false
731
py
# Generated by Django 2.1.7 on 2019-05-07 15:13 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0063_auto_20190507_1636'), ] operations = [ migrations.AlterField( model_name='topiccategory', ...
[ "patrykdziedzioch@gmail.com" ]
patrykdziedzioch@gmail.com
e7b840762ed07ac0749ced146d258eeaa0666d89
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2514/60657/251036.py
8fd03daae8725dc402250c4f2b1bef58d6fa020b
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
278
py
import math import re A=input() A=list(A) B=input() B=list(B) def find(A,B): cons=[] for i in A: if B.count(i)==0: return False cons.append(B.index(i)) new=cons.copy() new.sort() if new==cons: return True print(find(A,B))
[ "1069583789@qq.com" ]
1069583789@qq.com
9bc68669c948abd5150829c13b1478cdb6f5bf0a
20673555b1c9ea933fe16e6453dfc7a9fe5836e3
/setup.py
b550f5d6e0802f7bb6d77c4c06be02d544c62c06
[ "BSD-3-Clause" ]
permissive
LyleH/splinter_python_web_test_1
676d716d69c7ccd295658107f7eb67841f7e3899
1a40f815a45d441818f4913e03db6b3ccb22f314
refs/heads/master
2021-01-11T07:24:25.892345
2016-09-21T19:04:43
2016-09-21T19:04:43
68,848,645
1
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from setuptools import setup, find_packages import codecs README = codecs.open('README.rst', encoding='utf-8').read() setup( name=...
[ "lyle.henkeman01@gmail.com" ]
lyle.henkeman01@gmail.com
7d6db882073f3fac6e4c0623a1d38ca9aa8df6d6
db155ccf70e16f3e7cd9b42bd45851abe3f3113a
/juju_docean/tests/test_commands.py
9ffb00634536a4fd95ab169f21ec143594d967a8
[]
no_license
dulvac/juju-digitalocean
5a8060a969a8b532f9204d185833f52f28f1592e
f5363dd708989c4b34b1f2bc225c4b96f4078a14
refs/heads/master
2020-12-30T18:16:01.750814
2014-06-24T01:22:04
2014-06-24T01:22:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,510
py
import mock import os import tempfile import unittest import yaml from juju_docean.commands import ( BaseCommand, Bootstrap, AddMachine, TerminateMachine, DestroyEnvironment) from juju_docean.client import SSHKey, Droplet from juju_docean.exceptions import ConfigError from juju_docean.tests.base ...
[ "kapilt@gmail.com" ]
kapilt@gmail.com
97f94cd80ab0903b5fe431592579f89f6021412b
059c4606fd93b70c244a0017cc1727d1b951e75a
/7-developer-tools/virtual_env.py
50d3dc93448a2e84dc411c2837de0c7fc8131893
[]
no_license
andyguwc/python-resources
1f6850b1fde243912644530ee8985ae09773c68e
d8ab7e54d287a697e4763a36b10136af461ec820
refs/heads/master
2021-06-24T13:30:25.196129
2021-03-02T03:11:49
2021-03-02T03:11:49
210,958,803
1
1
null
2019-10-25T03:12:31
2019-09-25T23:29:29
Python
UTF-8
Python
false
false
5,390
py
################################################## # Properly Installing Python ################################################## # Python that ships with OS X is good for learning not stable for releases # Need Cpython release # First install Homebrew $ BREW_URI=https://raw.githubusercontent.com/Homebrew/install/m...
[ "tianyou.gu@gmail.com" ]
tianyou.gu@gmail.com
6551ffb31aaa1a70e8e67a319cf4d54dd581805a
3bb57eb1f7c1c0aced487e7ce88f3cb84d979054
/sgss_retro_senseaware/scripts/solo_rankers/lexenstein/features.py
cb6268e36104a8acd5a055c3e82727f08e17f9af
[]
no_license
ghpaetzold/phd-backup
e100cd0bbef82644dacc73a8d1c6b757b2203f71
6f5eee43e34baa796efb16db0bc8562243a049b6
refs/heads/master
2020-12-24T16:41:21.490426
2016-04-23T14:50:07
2016-04-23T14:50:07
37,981,094
0
1
null
null
null
null
UTF-8
Python
false
false
118,623
py
from lexenstein.util import * from nltk.stem.porter import * from nltk.corpus import wordnet as wn import kenlm import math import gensim from nltk.tag.stanford import StanfordPOSTagger from nltk.parse.stanford import StanfordParser import os import pickle from sklearn.preprocessing import normalize import numpy import...
[ "ghpaetzold@outlook.com" ]
ghpaetzold@outlook.com
64a2a6727635f31aa3196c78bf27625411ceb371
790473470ffaf79277a72659016c2ec935e948e5
/tasks.py
294826a491f68415bc2d54d79ad385a778278cf7
[]
no_license
peterbe/toocool
8df079e8550f54146efca753a0ea6b00b1d6d694
d6e24e55728585addbad945122e7293e8903d14a
refs/heads/master
2020-05-17T15:38:17.893070
2012-10-13T22:45:12
2012-10-13T22:45:12
2,273,196
44
6
null
null
null
null
UTF-8
Python
false
false
1,702
py
import logging import tornado.escape import tornado.auth import tornado.ioloop from celery.task import task from celery import conf import settings from models import Tweeter, connection @task def refresh_user_info(*args, **kwargs): try: _refresh_user_info(*args, **kwargs) except: logging.err...
[ "mail@peterbe.com" ]
mail@peterbe.com
d12b82ba7df22556d1bd36790e6174a72d713e76
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_103/ch18_2020_03_09_18_49_40_533455.py
c0079ec85cb2958ccb42a80ef527bf5b2e2248d9
[]
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
195
py
def verifica_idade(idade): if idade >= 21: return 'Liberado EUA e Brasil' elif idade >= 18: return'Liberado BRASIL' else: return 'Não está liberado'
[ "you@example.com" ]
you@example.com
93f66a9a24d9ecb7880fe184f4f7a360e49eb417
c080168133f2752b02bf8337d936a6a47f6a3c35
/prompt_toolkit/key_binding/bindings/vi.py
d42f18758b671ade54145f0cc2ab24ff0e1f428e
[ "BSD-3-Clause" ]
permissive
abspoel/python-prompt-toolkit
1bc89facd5cee6a37a68d1cb47ae12463bb4652f
9bde4052d0bf67d1f3abdab51e48f1bf5602dd6d
refs/heads/master
2020-12-25T20:42:20.889458
2016-05-11T13:46:17
2016-05-11T13:59:32
58,549,105
0
0
null
2016-05-11T13:50:21
2016-05-11T13:50:21
null
UTF-8
Python
false
false
58,631
py
# pylint: disable=function-redefined from __future__ import unicode_literals from prompt_toolkit.buffer import ClipboardData, indent, unindent, reshape_text from prompt_toolkit.document import Document from prompt_toolkit.enums import IncrementalSearchDirection, SEARCH_BUFFER, SYSTEM_BUFFER from prompt_toolkit.filters ...
[ "jonathan@slenders.be" ]
jonathan@slenders.be
8c5fb0d9e50199cb91a14ef1b55509f42158014e
81e706b69c789aff05691c41fa79156942927f82
/site-packages/tensorflow/python/autograph/pyct/errors.py
e5020a658b6865270e0a8ba2d1dae12a0a36cfd0
[]
no_license
yoncho/OpenCV-code
f5a1091ef32f3c8c3254ab93e083950b84c4fabd
bda2f793b11462e67c7ab644b342beffb871e3de
refs/heads/master
2023-03-30T12:01:23.521511
2021-04-01T13:45:44
2021-04-01T13:45:44
291,398,453
0
0
null
null
null
null
UTF-8
Python
false
false
5,923
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...
[ "yoncho@student.42seoul.kr" ]
yoncho@student.42seoul.kr
1f40d5582daafb15fbab1a0c6959dc06bd51e58a
ebd90e0d54fee3a5013eb3881a307da2895284d8
/xnr/behavioGauge/views.py
aa1241677fe5779d74cc503636ac71fb54a6bf4e
[]
no_license
NoahChanInvictus/xnr1
a9c54c5b6598fb2e3ba166d8e22f116da101fdf1
dc344ba8a455a83f43a81b7b2b23ad7f57440a0c
refs/heads/master
2020-12-02T22:08:41.688653
2017-08-28T07:15:19
2017-08-28T07:15:19
96,089,422
0
1
null
2017-07-03T08:41:12
2017-07-03T08:41:12
null
UTF-8
Python
false
false
674
py
#-*- coding:utf-8 -*- import os import time import json import pinyin from flask import Blueprint, url_for, render_template, request,\ abort, flash, session, redirect mod = Blueprint('behavioGauge', __name__, url_prefix='/behavioGauge') @mod.route('/influeAssess/') def influeAssess(): return r...
[ "1257819385@qq.com" ]
1257819385@qq.com
f880e23e474656ead738591927db225f272ed5f1
cc096d321ab5c6abf54fdcea67f10e77cd02dfde
/flex-backend/pypy/module/__builtin__/test/test_builtin.py
820905bd0c1e6a1d4e55152ca5e0b2e5860e37e0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
limweb/flex-pypy
310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2
05aeeda183babdac80f9c10fca41e3fb1a272ccb
refs/heads/master
2021-01-19T22:10:56.654997
2008-03-19T23:51:59
2008-03-19T23:51:59
32,463,309
0
0
null
null
null
null
UTF-8
Python
false
false
17,442
py
import autopath class AppTestBuiltinApp: def setup_class(cls): class X(object): def __eq__(self, other): raise OverflowError def __hash__(self): return 42 d = {X(): 5} try: d[X()] except OverflowError: ...
[ "lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d" ]
lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d
8f97e75d36a3c9e7aef7515a627d79ab73476650
bd696223aaf5404987df11832b4c17c916b9690f
/nlp_sample/deep_zero_nlp/ch03/layers.py
8154d8a576963a7ccf6691661f22b76f0b0295cc
[]
no_license
wararaki718/scrapbox3
000a285477f25c1e8a4b6017b6ad06c76f173342
9be5dc879a33a1988d9f6611307c499eec125dc2
refs/heads/master
2023-06-16T08:46:32.879231
2021-07-17T14:12:54
2021-07-17T14:12:54
280,590,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
import numpy as np from functions import cross_entropy_error, softmax class MatMul: def __init__(self, W: np.ndarray) -> None: self.params = [W] self.grads = [np.zeros_like(W)] self.x = None def forward(self, x: np.ndarray) -> np.ndarray: W, = self.params out = np.dot...
[ "ky7.ott.w@gmail.com" ]
ky7.ott.w@gmail.com
a4d631ee9a06ea5737e002a8944f519147917957
1cb97b0fe8b275efd540716cb6e742fc44e927bf
/tests/algorithm/test_sac_discrete.py
fa453f69919dd5fbb34e568d1025db9fb2b1acad
[ "MIT" ]
permissive
khushjammu/rljax
31e4d0f9c6aa57a0a07a35f7f8854cc78360ae5a
f2d5e81240d99187fcb625d2caa630c3c7deecfc
refs/heads/master
2023-06-27T17:15:43.437065
2021-07-30T16:55:47
2021-07-30T16:55:47
391,125,669
0
0
MIT
2021-07-30T16:18:23
2021-07-30T16:18:22
null
UTF-8
Python
false
false
635
py
import gym import pytest from rljax.algorithm.sac_discrete import SAC_Discrete from ._test_algorithm import _test_algorithm @pytest.mark.slow @pytest.mark.parametrize( "use_per, dueling_net", [ (True, False), (False, True), ], ) def test_sac_discrete(use_per, dueling_net): env = gym....
[ "kuboy2482@gmail.com" ]
kuboy2482@gmail.com
f304ce6ab747c0c98a6825c7aff62f207d4cb9b9
aa13e1d93b7a8017e1e610a900bd05f6df91604f
/spoj/challenges/CDGLF1.py
663ffeee1221ed5a4c618c07c838f9106da0f6d4
[]
no_license
laveesingh/Competitive-Programming
3ce3272eab525635f9ce400f7467ee09de8b51df
41047f47c23bc8572a1891e891a03cc3f751e588
refs/heads/master
2021-01-24T09:51:00.332543
2017-10-30T17:11:48
2017-10-30T17:11:48
52,956,650
1
0
null
null
null
null
UTF-8
Python
false
false
144
py
r=lambda:map(int,raw_input().split()) for _ in range(input()): n,m=r();a=sorted(r());s=0 for i in range(m):s+=a[i]if a[i]<0 else 0 print -s
[ "laveechaudharytheone@gmail.com" ]
laveechaudharytheone@gmail.com
b81b3f482a415c4e6bece8d03efebfa57fcc7a2d
80bca71f03ce74e4a87352be4e58d11516ab707f
/gym_quickcheck/__init__.py
1d6bb58164fc6f7593abba61f8bd281d68e1d525
[ "MIT" ]
permissive
SwamyDev/gym-quickcheck
ca80d9cb4094ee29b4e24a2f9312b538ebc365ca
d271f509c11998c9f210c5d8131906f712553123
refs/heads/master
2020-08-06T11:58:34.539703
2020-02-18T21:08:23
2020-02-18T21:08:23
212,968,174
0
0
MIT
2020-02-18T21:03:00
2019-10-05T08:34:41
Python
UTF-8
Python
false
false
381
py
from gym.envs.registration import register from gym_quickcheck._version import __version__ name = "gym_quickcheck" register( id='random-walk-v0', entry_point='gym_quickcheck.envs:RandomWalkEnv', ) register( id='alternation-v0', entry_point='gym_quickcheck.envs:AlternationEnv', ) register( id='n...
[ "b.raml@gmx.at" ]
b.raml@gmx.at
525d97e1f4c05a31640c7d24c99830e1b9fce0b9
0ea5c9dbb7ba775d6b8d9d6a2ad7a9644073ca4b
/PRÁCTICA 2/3d/irregular.py
9a451d2991c2c80ff43bcfdd4ad8bf558ea20658
[]
no_license
CarMoreno/PracticasPyOpengl
9d0954240238c5032da5772cc561d24921f4b3ed
82f2197279f17322eeb9ef20b61bd8876d0580b5
refs/heads/master
2021-01-18T16:32:26.129564
2015-09-10T00:43:27
2015-09-10T00:43:27
31,389,091
2
0
null
null
null
null
UTF-8
Python
false
false
3,749
py
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * from random import random #Necesaria para generar numeros pseudoaleatorios from math import sin from math import cos from math import pi # ==================================================================== #Para el color de fondo de ventana re...
[ "carlosandresmorenovelez@gmail.com" ]
carlosandresmorenovelez@gmail.com
a8134b604d1fa4a095705e6d5aa39d00138303ad
5872c24113040eb8fb7948e22f49a80e3ffa3295
/spotify_web/search.py
831910e6b4f32e8902bcfd5ae5f7d1ed1c984e19
[]
no_license
fuzeman/spotify-websocket-api
46362af7ee484cb9e0fefc12ffc1e632777dd6c6
890104b4b72b084362bc1a590fa1b49870eca538
refs/heads/master
2020-12-03T05:21:05.253535
2014-05-23T10:08:36
2014-05-23T10:08:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,853
py
from lxml import etree from spotify_web.spotify import IMAGE_HOST, SpotifyUtil class SpotifySearch(): def __init__(self, spotify, query, query_type, max_results, offset): self.spotify = spotify self.query = query self.query_type = query_type self.max_results = max_results s...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
b2abd885f9026f7bcb6bf0665e021aab9e07dc09
1c2428489013d96ee21bcf434868358312f9d2af
/ultracart/models/geo_point.py
96c2b9e9c561d6b5fa7748663c650ce2bdab6d0b
[ "Apache-2.0" ]
permissive
UltraCart/rest_api_v2_sdk_python
7821a0f6e0e19317ee03c4926bec05972900c534
8529c0bceffa2070e04d467fcb2b0096a92e8be4
refs/heads/master
2023-09-01T00:09:31.332925
2023-08-31T12:52:10
2023-08-31T12:52:10
67,047,356
2
0
null
null
null
null
UTF-8
Python
false
false
3,489
py
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GeoPoint(object): ""...
[ "perry@ultracart.com" ]
perry@ultracart.com
5b0835c1b395183ed33731528213d98efb0770fe
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/6/pa7.py
d911e6975020ab1ebd5d24993e0b9fc5183bd851
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
ec558a33fa757c5779ce5092bded577aeb997189
54a2f8f22504bb7621a14f4cb5884dcacca1f9d0
/tests/models/vivit/test_modeling_vivit.py
4440f46d046d71bb8aa4714d26e51505708e4df6
[ "Apache-2.0" ]
permissive
jplu/transformers
8dfb42700be2e8c9339165e8b1000780b5445557
906afa1d5c6054a641cb6abb009cdec732a5a094
refs/heads/master
2023-07-20T06:45:35.261259
2023-07-13T02:19:45
2023-07-13T02:19:45
222,976,604
1
0
Apache-2.0
2019-11-20T16:08:14
2019-11-20T16:08:13
null
UTF-8
Python
false
false
13,163
py
# coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. 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 r...
[ "noreply@github.com" ]
jplu.noreply@github.com
3e8464fe8073cc228c67ed3d26671d9c8f113bf2
4c7ea6295a487ec18543e82f66e08a3a2a2fd124
/apps/logs/action/action_pikachu_massage.py
7956c8d8a533b8eea0f3ba6704d07ae54cbc275c
[]
no_license
robot-nan/GameLogServer
16217689d88ac5353a61881b03adb1b372cc3e16
ff2afd6d29e9dce6157a66ff62b4d1ea97d04184
refs/heads/master
2021-11-07T21:27:30.494271
2015-09-23T15:01:55
2015-09-23T15:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
# -*- coding:utf-8 -*- """ 皮卡丘按摩 """ from apps.logs.action import action_base from apps.utils import game_define def log(user, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_MASSAGE_REWARD log_lst = action_base.log_base(user) log_lst.append(str(action)) log_lst.append...
[ "a.robot.n@gmail.com" ]
a.robot.n@gmail.com
43ec0c28c1cb73cb835c7809314aa078d394c545
0104add04cd6da515e2ccb2c27e44bc6693f9bcf
/Yurii_Khomych/l_7_files/dir_listing.py
6474af3ba71e8e11693a5498902bc597329601ef
[]
no_license
YuriiKhomych/ITEA-advanced
c96c3cf9b279caf62fefcd41faf543cee7534626
90bc47733c07b5b866aa3a14aa12a169f5df289c
refs/heads/master
2022-12-09T20:38:23.607426
2019-12-22T17:30:59
2019-12-22T17:30:59
209,354,034
0
9
null
2022-12-08T03:04:04
2019-09-18T16:23:12
Python
UTF-8
Python
false
false
226
py
import os with os.scandir() as entries: for entry in entries: print(entry.name) entries = os.listdir() # # from pathlib import Path # # entries = Path() # for entry in entries.iterdir(): # print(entry.name)
[ "yuriykhomich@gmail.com" ]
yuriykhomich@gmail.com
cda86102d5fa8a4964a2c25c39e1fb01969a9b5c
e842289d7d84211fecc04eb90c2bedd4bb24b3c0
/src/main/com/mason/网络编程/tcp/tcp_server.py
9ecbd16876f43724ac3b93c0159fa294f3da3a59
[]
no_license
MasonEcnu/PythonStarter
b4340fe251c53894e50d40d9c9ca658e20439f92
916312a84706ace5f5ab9b18a4b7d459e3fcfadc
refs/heads/master
2020-08-01T00:57:45.132248
2019-11-04T13:41:05
2019-11-04T13:41:05
210,806,727
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # tcp服务器 import socket import threading def tcp_link(sock, addr): print("Accept new connection from %s:%s..." % addr) sock.send(b"Welcome!") while True: data = sock.recv(1024) # time.sleep(1) if not data or data.decode("utf-8") == "ex...
[ "364207187@qq.com" ]
364207187@qq.com
cf4dd8a0e1ec8ef99983ff323116d2080bbe4e39
da19363deecd93a73246aaea877ee6607daa6897
/xlsxwriter/test/comparison/test_textbox05.py
99c0d7254659dde2bb1a42a7519a12039588f3ca
[]
no_license
UNPSJB/FarmaciaCrisol
119d2d22417c503d906409a47b9d5abfca1fc119
b2b1223c067a8f8f19019237cbf0e36a27a118a6
refs/heads/master
2021-01-15T22:29:11.943996
2016-02-05T14:30:28
2016-02-05T14:30:28
22,967,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,803
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTes...
[ "lealuque.tw@gmail.com" ]
lealuque.tw@gmail.com
b3bb522e773cf92d8cf867d5d82c966b7ac27879
83fd11a4530dabf710ddd4a4e612992746d24647
/apps/external_apps/django_extensions/management/modelviz.py
755f4bfedc6ebfbe00548af8d22904507f0454ec
[ "MIT" ]
permissive
indro/t2c
fa59b5f0c3b89886178290703df25fea6a4c1354
56482ad4aed150f29353e054db2c97b567243bf8
refs/heads/master
2021-01-20T04:32:16.165754
2008-11-19T15:38:13
2008-11-19T15:38:13
78,160
3
0
null
null
null
null
UTF-8
Python
false
false
8,563
py
#!/usr/bin/env python """Django model to DOT (Graphviz) converter by Antonio Cavedoni <antonio@cavedoni.org> Make sure your DJANGO_SETTINGS_MODULE is set to your project or place this script in the same directory of the project and call the script like this: $ python modelviz.py [-h] [-a] [-d] [-g] [-i <model_names>]...
[ "indro@debian.(none)" ]
indro@debian.(none)
1f7ea37268d087453be78b700fbca9753bc97de0
dfc3232256294e740d2d2eabf24d4390d99bf7c3
/baseAppOne/apps.py
036a37d39a4c266b95754ffa9990872ee81cc5a2
[]
no_license
pritamSarkar123/django2020-PracOne
0158867ba0fa16acdf3acf5799b87cfad47662a1
6075939371aa353ae9db2c07e9d1061a8bd629a7
refs/heads/master
2022-07-12T15:34:26.080300
2020-05-14T18:32:54
2020-05-14T18:32:54
263,191,616
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from django.apps import AppConfig class BaseapponeConfig(AppConfig): name = 'baseAppOne'
[ "pritamsarkar84208220@gmail.com" ]
pritamsarkar84208220@gmail.com
0586036f34e95e917a20c8c45bf386b78e717700
2ba7e55deac3477287f559736b94aa73e80d17b6
/backend/users/migrations/0002_auto_20210514_1426.py
34b456f9568c7112c9573392c90010ef6de971ff
[]
no_license
crowdbotics-apps/testapp-26695
4132bbc287f05ba197dd8de7baa3672e2a6ad4d6
33ba8b72eea90bb2248a77825a82b2f2670a7d43
refs/heads/master
2023-04-24T15:48:58.899206
2021-05-14T14:28:22
2021-05-14T14:28:22
367,386,708
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 2.2.20 on 2021-05-14 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='name', field=...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f262551d7350d9fbcf635fbe454b0aad085e4631
53e0b0616ece7867b1d37d755fd034e5b3d5ebe5
/Medium/779. K-th Symbol in Grammar/solution (1).py
41866819ddb7b7cd6c696fe4354f20ca8a5b6ce8
[ "MIT" ]
permissive
czs108/LeetCode-Solutions
a7a29b90ad330d8d4bd73b5d0d243dc5b4121bc9
fc4ef8aed90614e2e4ad39fa1c9eec5881b7b5f5
refs/heads/master
2023-03-03T09:55:51.045837
2023-02-20T23:39:15
2023-02-20T23:39:15
237,709,633
4
1
null
null
null
null
UTF-8
Python
false
false
528
py
# 779. K-th Symbol in Grammar # Memory Limit Exceeded class Solution: def kthGrammar(self, n: int, k: int) -> int: def build_next(row: str) -> str: if len(row) == 0: return "" elif row[0] == "0": return "01" + build_next(row[1:]) elif r...
[ "chenzs108@outlook.com" ]
chenzs108@outlook.com
f931567ed279e171b70187b1bbc9b8656649a87c
6bc42771a987b503df1866ad3fb8cf3126805806
/fooof/__init__.py
cb262593ab63815253f4306fefd8a535649d722e
[ "Apache-2.0" ]
permissive
anchandm/fooof
82c479ebd08e154cb1a3feedf60804ede81a76cb
dcc93b14c4a6987ce7e394696af3221dd2a7bbd6
refs/heads/master
2020-05-02T07:51:03.064334
2019-03-20T03:06:19
2019-03-20T03:06:19
177,828,211
1
0
Apache-2.0
2019-03-26T16:30:30
2019-03-26T16:30:29
null
UTF-8
Python
false
false
174
py
"""FOOOF - Fitting Oscillations & One-Over F""" from .version import __version__ from .fit import FOOOF from .group import FOOOFGroup from .funcs import fit_fooof_group_3d
[ "tdonoghue@ucsd.edu" ]
tdonoghue@ucsd.edu
3b0ac815e30d0152d4d3cbc85d7204215ce40de5
71c331e4b1e00fa3be03b7f711fcb05a793cf2af
/QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/util.py
08525e9c494b334bbda86f090b35ca3958f2fc79
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
iofh/QA-System
568228bb0c0adf9ec23b45cd144d61049e720002
af4a8f1b5f442ddf4905740ae49ed23d69afb0f6
refs/heads/master
2022-11-27T23:04:16.385021
2020-08-12T10:11:44
2020-08-12T10:11:44
286,980,492
0
0
null
null
null
null
UTF-8
Python
false
false
5,596
py
# -*- coding: utf-8 -*- # # Copyright 2016 Google LLC. 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 requir...
[ "ige-public@hotmail.com" ]
ige-public@hotmail.com
a1d5258653062ac5d750a2a9049ef4eafc34ac18
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/9/wfr.py
bf35daedbfd2406220b667913472881d30979a31
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
e166e962d13e2811765e599d4b9fadcefdd45e8a
b911843074e06707c4404588e78c78dfe11d6742
/FinalProject/models/cigar.py
972b0f930ca55dd2581660b1a9402bfca6a37758
[]
no_license
AnhQuann/nguyenanhquan-fundameltal-c4e14
afc4ea5d108729231357057a62ae3be81b183b6c
2f0edb00a2b79f28d4f85786ee008845489b7b0f
refs/heads/master
2021-09-03T16:46:41.976317
2018-01-10T14:54:14
2018-01-10T14:54:14
111,936,679
0
1
null
null
null
null
UTF-8
Python
false
false
186
py
from mongoengine import * class Cigar(Document): image = StringField() brand = StringField() cigar_type = StringField() name = StringField() # price = StringField()
[ "anhquan19051905@gmail.com" ]
anhquan19051905@gmail.com
0f10c0d2db5014ad938830c62c1f84c38f042ad3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/88/usersdata/212/59630/submittedfiles/listas.py
7ebb4fbffaecae40592d6e4d5cfde1b7293c9f7b
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# -*- coding: utf-8 -*- n=int(input('digite o número de elementos:')) a=[] for i in range(0,n,1): v=int(input('digte um número para alista:')) a.append(v) vat=0 for i in range(1,len(a),1): v=(a[i-1]-a[i]) if v>vat: v=vat if v<0: v=v*(-1) vat=v print(v)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ff1c00291e164e9f98aa0bf9996a1b68921ec55e
23d2433e38244dce29dad3dc9f090ea92b6ebd6c
/autofixture/values.py
c8caf21147125594715ed4db8e89297fd673dab2
[ "BSD-3-Clause" ]
permissive
ntbrown/django-autofixture
3482ee88a42aeb33397a84f26a4b28307905044c
b11dc3c804aa5f9348f65b51ecc0158c651d03d9
refs/heads/master
2021-06-08T19:40:12.175411
2020-01-25T21:34:02
2020-01-25T21:34:02
145,890,283
3
3
BSD-3-Clause
2020-01-25T21:34:03
2018-08-23T18:07:08
Python
UTF-8
Python
false
false
1,570
py
from django.utils.six import with_metaclass class ValuesMetaclass(type): def __new__(mcs, name, bases, attrs): parent_value_attrs = {} # left most base class overwrites righter base classes for base in bases[::-1]: if hasattr(base, '_value_attrs'): parent_value_...
[ "gregor@muellegger.de" ]
gregor@muellegger.de
af8a6a50656f5732730bc3e37d479f6bf9f1abc3
a24b8446639f2157e2ecbdb7c11eda8e4e4344cc
/Configurations/UserConfigs/2018_AntiIso_MCOnly/ZZ2L2QConfig.py
392a40b70442ccb7124f764c372fde4c346dac38
[]
no_license
aloeliger/ReweightScheme
dcebc5651094d8d3da65885c59dae4070983624a
05c9783fcf8e024fd26a6dbb9b1fbab4aee3c7f4
refs/heads/master
2021-12-11T16:10:12.881863
2021-08-27T21:02:21
2021-08-27T21:02:21
215,565,834
0
1
null
null
null
null
UTF-8
Python
false
false
1,793
py
import ROOT from Configurations.Weights.CrossSectionWeightingModule.CrossSectionWeight import crossSectionWeight from Configurations.Weights.MuIDIsoReweightingModule.MuIDIsoWeight import muIDIsoWeight_2018 as muIDIsoWeight from Configurations.Weights.MuTrackingWeightModule.MuTrackingWeight import muTrackingWeight_201...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
8942adeeb4b55e5d8641822b4e19688c051d3a41
07d7d675b6f46548c21bdd36729efd0b449cc62b
/src/utils/MOEAD_Utils.py
dfe978f4b59a9f232b2885cfb19f25ee2b850bf8
[ "Apache-2.0" ]
permissive
bestyours/MOEAD
b20bd7c81c2cdd96879f2adf11dc927d2e6f88a6
43e9ee7d3434d42cd00991891de762172ad4edf9
refs/heads/master
2022-04-06T02:45:45.350699
2020-02-29T07:24:16
2020-02-29T07:24:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,137
py
import os from math import sqrt import numpy as np from src.utils.Mean_Vector_Util import Mean_vector ''' MOEAD工具包 ''' def Load_W(moead): file = moead.name + '.csv' path = moead.csv_file_path + '/' + file if os.path.exists(path) == False: print('not exists') mv = Mean_vector(moead.h, moe...
[ "425776024@qq.com" ]
425776024@qq.com
ca9e2e79f1203ae24c4daa0054417461e86cb5b7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03041/s284752497.py
f53085856cd1854a4f142a6afccf3140c8c96526
[]
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
210
py
N, K = map(int, input().split()) S = input() if S[K-1] == 'A': S = S[:K-1] + 'a' + S[K:] elif S[K - 1] == 'B': S = S[:K - 1] + 'b' + S[K:] elif S[K-1] == 'C': S = S[:K-1] + 'c' + S[K:] print(S)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
97fc822f10edc24876c88b73913ce444a5f5bf66
b9b306ddca53762854aabce6d288dba1acf6def5
/API_Project15/API_Project15/asgi.py
42e2ee228cac50b7d5d8d7253fe3aac74d0def9c
[]
no_license
Shivamj075/django_rest_framework_preparation
a30f1fba20129437bb282a219aa8f615558acd78
7cf638edfb764a1c4e1e54ab2e65e046c7468402
refs/heads/master
2023-04-29T03:42:02.297789
2021-05-25T14:15:01
2021-05-25T14:15:01
370,711,579
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" ASGI config for API_Project15 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "shivamj075@gmail.com" ]
shivamj075@gmail.com
aff15daed445b493532c083be48e82ee4a1aa52a
284b88b3ff07430e17c04503f646db50677f627b
/Algorithm_w_Python/betweenTwoSets/reb.py
3d1b5d1bbe07b6ff95f9a73098c355576154028f
[]
no_license
ybgirgin3/hackerrank-solutions
ae61c27173c24c920f6e002a12a1acd20928cf59
58c4f62585d115eff3e1a43595d6a8375f185696
refs/heads/master
2023-05-27T11:32:06.099639
2021-06-13T18:12:22
2021-06-13T18:12:22
280,741,585
1
0
null
null
null
null
UTF-8
Python
false
false
700
py
# -*- coding: utf8 -*- from fractions import gcd import sys def getTotalX(a, b): lcm_num = a[0] gcd_num = b[0] if len(a) > 1: for x in range(1,len(a)): lcm_num = (lcm_num * a[x])/gcd(lcm_num,a[x]) if len(b) > 1: for x in range(1,len(b)): gcd_num = gcd(gcd_num,b[...
[ "ybgirgin3@gmail.com" ]
ybgirgin3@gmail.com
385985635de8305ce9263396b47196d739825878
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/framework/model.py
7bef513e1c07c7a87a607e7359e6c0eb20811256
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
25,794
py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
[ "noreply@github.com" ]
Oneflow-Inc.noreply@github.com
4b0b01e45b7cce922d871a42d21f0d1a73543c2c
dcf2b82996bc8a0091aaff76e4838cc99dbc0da9
/arelle/plugin/transforms/SEC/__init__.py
6c0a1fcc23283aaab192f8734a478e31174fb65c
[ "Apache-2.0" ]
permissive
wycliffwasonga/Arelle
5a3a1027a4ff45b7792b77f819f03211bfbd9760
745f8940e0c1e374d35179b12c609de1b325cca6
refs/heads/master
2023-08-30T14:41:46.269581
2021-09-12T03:49:47
2021-09-12T03:49:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,566
py
# -*- coding: utf-8 -*- ''' Custom transforms for SEC Created by staff of the U.S. Securities and Exchange Commission. Data and content created by government employees within the scope of their employment are not subject to domestic copyright protection. 17 U.S.C. 105. (c) Copyright 2015 Mark V Systems Limited, All ...
[ "fischer@markv.com" ]
fischer@markv.com
7f2416f05fce7fc900b54a0b9421702932c8c74b
0987f31e64bcacb41ba3a1e20054d7b8ac0d7346
/contests/nikkei2019/C_correct.py
4123424c93544e77cd487d02dc28e64d46877f76
[]
no_license
masakiaota/kyoupuro
81ae52ab3014fb2b1e10472994afa4caa9ea463b
74915a40ac157f89fe400e3f98e9bf3c10012cd7
refs/heads/master
2021-06-27T04:13:52.152582
2020-09-20T03:21:17
2020-09-20T03:21:17
147,049,195
1
0
null
null
null
null
UTF-8
Python
false
false
974
py
N = int(input()) # 仮に青木さん(B)が全て食べたとき、高橋(A)にとっては最悪な状況 # これを打破するためには、自分の得点と相手の得るはずだった得点の和を最大にするようなものについて食べれば良い # 青木さんも同じことを考えるので、要は幸福度の和をソートして交互に食べていけば、互いに最善の行動を取ることとなる。 # 答えを出す際には、AがBから何点奪ったかだけを考えればよい。 # つまり、Aが最善で何点奪えるか から 全てBさんが食べたとき を引けばいい sum_happiness = [] all_for_B = 0 for i in range(N): tmp1, tmp2 = list(map...
[ "aotamasakimail@gmail.com" ]
aotamasakimail@gmail.com
e07958aafbfe113a2a76b94f1545d72a9624ab3d
407ffd78d91c4669af2d8c1af0de491d514302ad
/src/python/dspk/dspk_util.py
bf30af9aa5c311b9967a6ee87eb3fbd0110acd65
[]
no_license
MosesLab/iris_despike
c44a74cf06a4a4c8422792437d021c38b84406be
c2f5a6ee3b3e94de8a499ce5b8b135a79d8ff8eb
refs/heads/master
2021-05-06T04:19:03.842621
2018-01-19T04:36:57
2018-01-19T04:36:57
114,927,114
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
import numpy as np def flatten_cube(data_3D, sz_x, sz_y, sz_z): panes = int(np.sqrt(sz_z)) orig_data_flat = np.reshape(data_3D, [sz_x, sz_y, panes, panes]) orig_data_flat = np.swapaxes(orig_data_flat, 1, 2) orig_data_flat = np.swapaxes(orig_data_flat, 0, 1) orig_data_flat = np.swapaxes(orig_data_f...
[ "roytsmart@gmail.com" ]
roytsmart@gmail.com
b1de055927870332d66226266a6fcd80048f31a3
dbb32a7d5b96a94533b27a6ccf2474c660a863b7
/containers/master/sources/utils/types/hostProfiles/runningContainres.py
ce47da68a7df225457067311831a1650a5444586
[]
no_license
ankurhcu/FogBus2
772e8346c5e01e2aa8a02da9ef91fd696dd587a7
2cefabdd1d131fc8e9015ca31d414665e6014a69
refs/heads/main
2023-08-07T15:33:54.039724
2021-09-21T05:02:49
2021-09-21T05:02:49
410,610,212
1
0
null
2021-09-26T16:57:23
2021-09-26T16:57:22
null
UTF-8
Python
false
false
53
py
from typing import Set RunningContainers = Set[str]
[ "plocircle@live.com" ]
plocircle@live.com
0bbe1b5e5695d895ab0ebcb574d4024588aa71af
74fb05c7b5eddf2b368e181f38b9423a711bf2e0
/python_patterns/creational/brog.py
81aee1cc309b88018e96452f9a71a42f3450f2b2
[]
no_license
musram/python_progs
426dcd4786e89b985e43284ab5a5b1ba79cb285e
ad1f7f2b87568ba653f839fe8fa45e90cbde5a63
refs/heads/master
2022-11-10T09:53:29.993436
2020-06-21T00:21:23
2020-06-21T00:21:23
264,607,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,040
py
""" *What is this pattern about? The Borg pattern (also known as the Monostate pattern) is a way to implement singleton behavior, but instead of having only one instance of a class, there are multiple instances that share the same state. In other words, the focus is on sharing state instead of sharing instance identity...
[ "musram@gmail.com" ]
musram@gmail.com
e0fda8d606124b7f9150ec821ef06aa9ae60326a
5028a2b425972366bd424bdaf112d5e78e6c8083
/molecule_classifcation/xgb_most_recent.py
4a867dd4913ff2925a24feea9fc7800d6f722561
[]
no_license
spierre91/rdkit_read_sdf
09fea271705812feaec0a56ff9c32c38cc32adf6
5dfa763ee3d0a2840ecd1da863eee5878bd581af
refs/heads/master
2022-09-15T09:04:52.655545
2020-06-04T19:50:03
2020-06-04T19:50:03
260,543,929
0
0
null
null
null
null
UTF-8
Python
false
false
19,509
py
import pandas as pd import numpy as np import seaborn as sns import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.svm import SVC import xgboost as xgb from sklearn.model_selection import train_test_split from sklea...
[ "noreply@github.com" ]
spierre91.noreply@github.com
72898c763e0b6a343efc3d98d85a855c66eadf89
b595a24b07662a89826a1b6d334dfcaa3ec1c4b0
/venv/lib/python3.6/_weakrefset.py
1c283bc7b40f7df03368e5024acb4126a945b81e
[ "CC0-1.0" ]
permissive
kentarofujiy/base1
4629b638f96b3ed091ea695c81b3b7837af1ec79
f820b9b379cda86ca5b446c63800fbe4bb8f3bce
refs/heads/master
2021-07-13T02:06:01.371773
2017-03-11T12:43:19
2017-03-11T12:43:19
84,649,225
0
1
CC0-1.0
2020-07-26T01:08:25
2017-03-11T12:43:32
Python
UTF-8
Python
false
false
101
py
/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py
[ "Kentaro@Kentaros-MacBook-Pro.local" ]
Kentaro@Kentaros-MacBook-Pro.local
02064e921f70c826b2e6db30c692e9d76ab8ad27
1811d37ed6474ab7eaeafff3c82d3bb7c0466e3d
/bin/pidproxy
896bd7fc702e48a78a99df668bcc04cea806d19d
[]
no_license
bernatcortina/zodiac
ed384fe96f6739d841a3a777d10bad4b33fd0e78
aa0ecb2c386fc5b54ff60ba94e0a1bc5a7493f17
refs/heads/master
2021-01-18T14:02:44.978553
2014-02-07T17:33:27
2014-02-07T17:33:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
312
#!/usr/bin/python import sys sys.path[0:0] = [ '/Users/Bernat/GitHub/zodiac/eggs/supervisor-3.0-py2.7.egg', '/Users/Bernat/GitHub/zodiac/eggs/meld3-0.6.10-py2.7.egg', '/Library/Python/2.7/site-packages', ] import supervisor.pidproxy if __name__ == '__main__': sys.exit(supervisor.pidproxy.main())
[ "bernatcortina@gmail.com" ]
bernatcortina@gmail.com
a008992e304e7614633250cda07f735cc75a34a1
bee72a3b67331308cd0720c680057184853faf88
/tensorflow_privacy/privacy/analysis/dp_event_builder.py
53d4cc2a29895ff2e57a15451639f58c60c14238
[ "Apache-2.0", "MIT" ]
permissive
zhenv5/privacy
cbac15ba30adc7d328bcecc4c157b249a0132fe7
c530356ae9a4c12218f6ba6c4275f6153520f0b7
refs/heads/master
2023-08-19T18:25:51.547714
2021-10-18T22:08:40
2021-10-18T22:09:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,855
py
# Copyright 2021, The TensorFlow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
16c54fc4c7e0a1128d000cd5424a076a82bf7e87
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/prime-big-539.py
7d775fb7ebf217897d2dee8642a03b19a04a63e1
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,704
py
# Get the n-th prime starting from 2 def get_prime(n:int) -> int: candidate:int = 2 found:int = 0 while True: if is_prime(candidate): found = found + 1 if found == n: return candidate candidate = candidate + 1 return 0 # Never happens def is_prime...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
9363cef15bff82539cd037e391a86998833de124
3de11c5630cad4ca816ad17dd2f6c743b8799108
/Basic/module/src/game/sound/echo.py
dd98e70eeaec1ff5bd099ab20d5e382953055bc1
[]
no_license
greenfrog82/TIL_Python
a6f03b0ae6f2260310faa5ef59d4bd01dcf6a1ed
015116c5ff4a14f531e3693f9cfd3a921a674b81
refs/heads/master
2022-12-09T22:34:49.485937
2021-05-11T10:59:41
2021-05-11T10:59:41
154,969,150
0
1
null
2022-12-08T01:20:11
2018-10-27T13:44:56
Python
UTF-8
Python
false
false
40
py
def test_echo(): print('echo test')
[ "greenfrog82@naver.com" ]
greenfrog82@naver.com
750c6bd1a57ddd205ed594a1b357759e56db7da5
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/project_euler/problem_686/sol1.py
99a317cd145151327236a481d9f1b7c1e664cf20
[ "MIT", "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
5,237
py
""" Project Euler Problem 686: https://projecteuler.net/problem=686 2^7 = 128 is the first power of two whose leading digits are "12". The next power of two whose leading digits are "12" is 2^80. Define p(L,n) to be the nth-smallest value of j such that the base 10 representation of 2^j begins with the digits of L. ...
[ "noreply@github.com" ]
TheAlgorithms.noreply@github.com
f5222b8f1278fedd7f59c79e858d96677742e2e9
91fe8f479fa921fa84111d19222a5c6aa6eff030
/apps/spiders/taobaopjt/taobaopjt/items.py
7199c330a77a92376b4d341053cde0147531dc77
[]
no_license
romanticair/python
2055c9cdaa46894c9788d5797643283786ed46dd
6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141
refs/heads/master
2022-11-03T17:17:17.608786
2019-07-05T07:07:29
2019-07-05T07:07:29
195,356,190
0
1
null
2022-10-14T20:51:14
2019-07-05T07:00:33
Python
UTF-8
Python
false
false
1,102
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class TaobaopjtItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() url = scrapy.Field() ...
[ "1024519570@qq.com" ]
1024519570@qq.com
33d7b6df3876efdf0235b54751d30c5da4fc92c9
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_show_security_group_rule_response.py
9854ef71f7bb054ac1c2a8b2f90a2b18a4649e00
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class NeutronShowSecurityGroupRuleResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dic...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
37a13ee25760247308b2367b2fa6b5669fffd22b
00e925fe9705dddd93c155667d71da861fb01772
/test/functional/wallet_abandonconflict.py
abe5ffd14b8adaebab21f70b31cef6d87a0c13cc
[ "MIT" ]
permissive
Crowndev/crown
f017445d4cbc6b5dda4e6a57fec16d07febfdf92
7d8f35e5f1749b0b93e16fda5c45c800ba15f882
refs/heads/main
2022-12-28T08:08:51.649518
2022-12-25T19:59:36
2022-12-25T19:59:36
415,886,236
7
3
MIT
2022-12-25T19:59:37
2021-10-11T10:57:29
C++
UTF-8
Python
false
false
8,778
py
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Crown Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the abandontransaction RPC. The abandontransaction RPC marks a transaction and all its in-wallet ...
[ "blockmecha@gmail.com" ]
blockmecha@gmail.com
04303497a1eb03e05a323e4340340d06e94ec43a
b5380153bdb5ecf82e6d2f6c932f4f7c21997cf6
/items/api/views.py
bf5e877e823f7c60eba9361e977e07c176103053
[]
no_license
sudhanshuchopra/Inventory_management_rest_backend
ac05cc01147fe475981f8d18b744caa2b44a675c
3dad65ea2e24d311a95cf3a311a0beebec7e88b8
refs/heads/master
2020-04-05T13:08:57.330743
2017-07-13T06:28:53
2017-07-13T06:28:53
95,120,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
from .serializers import CategorySerializer,ItemSerializer from rest_framework import generics from items.models import Category,Item from rest_framework.decorators import api_view from rest_framework.response import Response class CategoryList(generics.ListCreateAPIView): queryset = Category.objects.all() se...
[ "sudhanshuccp@gmail.com" ]
sudhanshuccp@gmail.com
5eb7bd7a4521b6eebd8b2cc3c594b15ef1d2845f
1d5dee76c70ef5e9417d414626840d893d6cb55f
/datasite/dataentry/celery.py
526154af67d6f25be95e03c0427fd28da0448672
[]
no_license
WilliamQLiu/timetracker
4a36875583903a403df7927fdfc601251e00181d
276169e81f89b7a2cae5a68a37d9c89f35fb4237
refs/heads/master
2022-06-25T15:18:15.279674
2015-07-01T21:13:14
2015-07-01T21:13:14
38,395,455
0
0
null
2022-06-21T21:08:07
2015-07-01T21:15:37
Python
UTF-8
Python
false
false
444
py
""" Settings to setup celery """ from __future__ import absolute_import import os import django from celery import Celery from django.conf import settings # Reference our default settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dataentry.settings') app = Celery('dataentry') app.config_from_object('django...
[ "William.Q.Liu@gmail.com" ]
William.Q.Liu@gmail.com
77a667255e0631e1799ff3fd76d80749da98f86a
c9c329f977138d518636221fde28bfb16e5caab2
/code/dataset/europarl.py
97efdaad87dc3bad44d6758b44ef1bbf688f5e09
[ "MIT" ]
permissive
AndreasMadsen/master-thesis
1690f3ae76531f5b489f48d4980d85c1cbd8628b
294042091ee595bff813422fc54805f474711594
refs/heads/master
2021-03-16T10:12:12.318947
2017-08-06T17:13:37
2017-08-06T17:13:37
78,628,027
12
2
null
null
null
null
UTF-8
Python
false
false
4,029
py
from typing import Optional, Iterator, Tuple from contextlib import contextmanager import tarfile from code.download import EuroparlCache from code.dataset.abstract.text_dataset import TextDataset from code.dataset.util.length_checker import LengthChecker _v7_url = 'http://www.statmt.org/wmt13/training-parallel-euro...
[ "amwebdk@gmail.com" ]
amwebdk@gmail.com
824ae509c6367d90b66001898cac3b76360618ac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02628/s157682354.py
47d8ca2dd01cb7c733a119f83f7650d889b2494d
[]
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
286
py
import sys input = sys.stdin.readline ins = lambda: input().rstrip() ini = lambda: int(input().rstrip()) inm = lambda: map(int, input().split()) inl = lambda: list(map(int, input().split())) out = lambda x: print('\n'.join(map(str, x))) n, k = inm() a = sorted(inl()) print(sum(a[:k]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
450ae2654fd2b9e1a32b69bdb6c3d613a17e45a8
e5a9f032c160b841fd9cbac9675c06dd2cf4dbe0
/onlinelinguisticdatabase/model/user.py
9a6e0f537a85d0b653e561b20f07c05095b283f9
[ "Apache-2.0" ]
permissive
FieldDB/old
bfaa94690dc10f8081ad586663f09b550c2b50aa
f9cdbfe48eb9709f0b2d1e7790e7c2e612937071
refs/heads/master
2021-01-21T04:00:01.450384
2013-08-13T18:14:32
2013-08-13T18:14:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
# Copyright 2013 Joel Dunham # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "jrwdunham@gmail.com" ]
jrwdunham@gmail.com
89232c7993682653e76357bd57e34145cb5ee14f
0e638cd11c1ac64dcd1672936a1b0d7d545ee29f
/src/true_bool_variable.py
22c2e79080501bd4debfa8bc25954ffde37f1f78
[]
no_license
simon-ritchie/python-novice-book
2557d397a8f6025b63f3173c24bd4dcdb48aef8c
1492adf603ba4dd1e9fadb48b74e49887c917dc6
refs/heads/master
2020-12-26T16:47:36.945581
2020-08-04T12:16:10
2020-08-04T12:16:10
237,569,248
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
i_like_cats = True
[ "antisocial.sid2@gmail.com" ]
antisocial.sid2@gmail.com
7bf7ea0b38f449b62e2269a3c02423b71516893e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_054/ch19_2020_09_28_13_09_27_997404.py
cfc8da85bb2805836b2ee1935264587da4b33650
[]
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
170
py
def classifica_triangulo (a, b, c): if a == b == c: return 'equilátero' elif a != b != c: return 'escaleno' else: return 'isóceles'
[ "you@example.com" ]
you@example.com
9b2dad2ae1bb08b23008da404ef1e47c5c187b4f
0bc0db1edc610c9f08261c777d06cb1be4b7a524
/lgp/pythonSpider/ch1/7.2网络_tcpclient.py
b1d7e5beea9f4d3f7ae99cfc60ece18d549cdbce
[]
no_license
danpianji/python3.7
9bc7f9a765ec76d7d4c5fb413dcdada4f9e8f510
f66bc7139f9441583b1043d3da11597987e3fbc0
refs/heads/master
2020-12-28T14:49:41.410708
2019-05-19T10:13:32
2019-05-19T10:13:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
# -*- coding: UTF-8 -*- import socket if __name__=="__main__": #1、创建socket,连接服务端 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("127.0.0.1", 9999)) #2、发送和接收数据 data = s.recv(1024) print ("accept server data:%s" % data.decode("utf-8")) s.send(b"hello I'am client") data...
[ "liguangpei1@163.com" ]
liguangpei1@163.com
82b2ea94fba93298ee6143769cf021d4fd114358
63b0fed007d152fe5e96640b844081c07ca20a11
/ABC/ABC200~ABC299/ABC222/c.py
dda2a56b190027c791f97565be1e72af8b3ec1c1
[]
no_license
Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
n,m=map(int,input().split()) a=[] for _ in range(2*n): a.append(list(input())) from collections import deque rank=deque([]) for i in range(2*n): rank.append([i,0]) for j in range(m): for i in range(n): l=rank.popleft() r=rank.popleft() te_l=a[l[0]][j] te_r=a[r[0]][j] ...
[ "ymdysk911@gmail.com" ]
ymdysk911@gmail.com
8814261f88035e40b4cfb2a037db809bd939b967
34a5b76ebc992feb62ca5ead401b0b220b0ec23c
/accounts/forms.py
604a859f6d6e64fa40e34ba92386a6366fe573cc
[]
no_license
apengok/jujulong
168068bd1ec7704e5d9391a3b6d3087a31a709c5
c79f9a0dd13004df674b2d717cabe39add923823
refs/heads/master
2020-07-01T14:16:18.355441
2019-06-02T15:48:21
2019-06-02T15:48:21
74,339,120
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# -*- coding:utf-8 -*- from django import forms from django.contrib.auth import authenticate, login, get_user_model from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.urls import reverse from django.utils.safestring import mark_safe from .models import UserProfile class LoginForm(forms.Form)...
[ "apengok@163.com" ]
apengok@163.com
2039e15ac0c8a477b5e83328f585011b7753a25f
aacd813df79d65fda68fafc7f171c689e5dbe8e1
/distillation/scripts/extract_distilbert.py
8a752f571c66460b2fb1cc2ef5cbbec30af9c70a
[ "Apache-2.0" ]
permissive
KKbeom/DistilKoBERT
e685a4407cebbf63886634d7b79222c637cbf9f0
b09f2b78b0d554be4885b5a9042a41e4ca76fd78
refs/heads/master
2020-12-10T05:11:59.909126
2020-01-12T11:02:45
2020-01-12T11:02:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,526
py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team. # # 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 a...
[ "adieujw@gmail.com" ]
adieujw@gmail.com
7e67629eaeeba9609442e9f4b194252f8e25ab69
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/hamming/48e0a082a97d474facf9e8fc757bc295.py
ef3c32ed4ec232c4adb738c863e7b4b2f3b00ddb
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
179
py
def distance(strand1, strand2): hamming_count = 0 for pair in zip(strand1, strand2): if pair[0] != pair[1]: hamming_count +=1 return hamming_count
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
713e6a41548d4fe4966ba82027dabf2b2b1a24a5
69813ea65a6b070572e3a35d2850305d617251c3
/short/scripts.py
30a058074f3eb1997afaa764cedf9faeeb13263a
[]
no_license
gawel/short
37bf728c32e88ce4578473eaad2870db5cfdacfb
154031c30d9e38de561717b69e235fbc63fe519b
refs/heads/master
2023-05-30T22:48:13.620396
2022-10-14T11:30:55
2022-10-14T11:30:55
69,682,122
0
0
null
null
null
null
UTF-8
Python
false
false
1,370
py
# -*- coding: utf-8 -*- from chut import ini from chut import console_script import requests @console_script def main(args): """Usage: short [--serve] [-l] [-d] [<alias>] [<url>]""" if args['--serve']: import short short.main() return cfg = ini('~/.short.ini').short url = cfg.u...
[ "gael@gawel.org" ]
gael@gawel.org
62d0e6eee447c965e45cde1e1b3e7f01886665aa
fd67592b2338105e0cd0b3503552d188b814ad95
/test/test_paths/test_users/test_get.py
c299888de1353b915422a152dfd98545c2c13b2d
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
770
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ import unittest from unittest.mock import patch import urllib3 import egoi_api from egoi_api.paths.users import get # noqa: E501 from egoi_api import configuration, schemas, api_client from .. import ApiTestMixin class TestUsers(ApiTestM...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
760a6f8c5d97d89f38389b1df64f2e7de0b6f2b4
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/l2/egrpktshist1h.py
3a71260fedf594f53d39b9b3aea2bc42b508b59e
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
19,157
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
4cc2f4920a951b5e702c4c1a9a3ecc8127d9cf89
1d95953a5b92f0cb7c7e3ced2aa4869e5d584762
/map_app/geojson_fix.py
69bbd1c95c5ddc8cedcaced485cbc9c2b1e9c2a2
[]
no_license
HCDigitalScholarship/8D-map
83fb2d330797318ac620dd1c0f7dbffe6a856c61
f8cbfe301787afcb0dd564bf71aeeff9d626bff0
refs/heads/master
2022-12-02T23:59:12.474988
2020-12-10T15:54:16
2020-12-10T15:54:16
132,939,118
0
0
null
2022-11-22T02:30:12
2018-05-10T18:25:45
JavaScript
UTF-8
Python
false
false
3,531
py
''' Created on 2011-05-12 Updated on 2011-11-09 -- added desrializer support @author: Daniel Sokolowski Extends django's built in JSON serializer to support GEOJSON encoding Requirements: Install and setup geodjango (django.contrib.gis) Install: Add ``SERIALIZATION_MODULES = { 'geojson' : 'path.to.geojson_s...
[ "apjanco@gmail.com" ]
apjanco@gmail.com