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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
286864eacf9154a24065fdf1e5b18b860c826d76 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_278/ch41_2020_03_25_21_10_21_390790.py | e8f67d2cc56c2a64668dc79e57a44e8f1d3eb468 | [] | 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 | 212 | py | lista=[-2,-3,5,-7,9]
def zera_negativos(lista):
i=0
while i<len(lista):
if lista[i]<0:
lista[i]=0
else:
lista[i]=lista[i]
i+=1
print (zera_negativos(lista)) | [
"you@example.com"
] | you@example.com |
8e349f13cfccb9d99d8cb4662053d114ecfb612c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/3588.py | ea2860528327bf800b2de801a8878ee50ea10224 | [] | 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 | 530 | py | t = int(raw_input())
for a in range(t):
x = 0
q = raw_input()
(q,r) = q.split(" ")
r = int(r)
for b in q:
x <<= 1
if b == "+":
x += 1
ans = pow(2, len(q))-1
#print ans
if x == ans:
print "Case #%d: 0" % (a+1)
continue
z = 0
flip = pow(2,r)-1
for c in range(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3c6261e0b2c6ec72b6185ad8f669d0524dabc55f | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_code_container.py | 489e521d1a64a089896048b211f358be6d91500d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
5bb6c03821770b94727dfc12ba46e4c9a6adc7dc | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/makeatoon/TTPickANamePattern.pyc.py | e39ab9d55869962c7a83b33be001632f45106140 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # 2013.08.22 22:21:11 Pacific Daylight Time
# Embedded file name: toontown.makeatoon.TTPickANamePattern
from direct.showbase.PythonUtil import listToItem2index
from otp.namepanel.PickANamePattern import PickANamePatternTwoPartLastName
from toontown.makeatoon.NameGenerator import NameGenerator
import types
class... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
2fa34def1606c556012fafa87a7c4700ea1b623a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JPdKrztrcL7DpooDr_10.py | ec9b02ef047cfcc04455aada9edff4896f17d5e8 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py |
def collatz(n):
num_steps = 0
highest_number = n
while n > 1:
n = n / 2 if n % 2 == 0 else n*3 + 1
highest_number = n if n > highest_number else highest_number
num_steps += 1
return [num_steps, highest_number]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b0d2dcc803ebdb67a7b6a87cafab3cbbf1ea3720 | 5779d964d5ee42b586697a640ff0f977e0fa1e55 | /synclient/model/list_json_schema_version_info_request.py | 73246b7e59983bb38c6387238ba7ff169934f1ab | [] | no_license | thomasyu888/synpy-sdk-client | 03db42c3c8411c8c1f8808e1145d7c2a8bcc3df1 | d1e19e26db5376c78c4ce0ff181ac3c4e0709cbb | refs/heads/main | 2023-02-28T09:33:12.386220 | 2021-02-02T15:09:59 | 2021-02-02T15:09:59 | 333,744,741 | 3 | 0 | null | 2021-01-30T12:10:50 | 2021-01-28T11:57:48 | Python | UTF-8 | Python | false | false | 7,121 | py | """
Platform Repository Service
Platform Repository Service - Sage Bionetworks Platform # noqa: E501
The version of the OpenAPI document: develop-SNAPSHOT
Contact: thomas.yu@sagebionetworks.org
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
i... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
010e8d58d1383f6d1c04af7d8f70789164bd50c2 | 238c565643ab07fc5fb494f17d8e8927915288dd | /complete/files/utils/app.py | 41d49400df3aa42e4aae6e6c77138b4c3496d6cd | [] | no_license | hoodielive/pythonnerd | 14d4e5033673953832055053d4a6d89b9c356895 | c2de38d43f3df46792b95f5c481d430c580381cf | refs/heads/master | 2020-03-22T19:00:27.840514 | 2020-02-01T01:51:47 | 2020-02-01T01:51:47 | 140,497,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from utils.file_operations import save_to_file, read_file
from utils.find import find_in
print(__name__)
| [
"hoodielive@gmail.com"
] | hoodielive@gmail.com |
cdb2241f97b5c058793e921bee06b833a0659592 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4442980.3.spec | 539056839ce5efcd10118fb65a4894ede523cba7 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,969 | spec | {
"id": "mgm4442980.3",
"metadata": {
"mgm4442980.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
31b34ded1d05f588b96850a44e1d2230c4002d11 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03569/s610058929.py | 82b825253adf77c653ae1c7ac8d31a2575f87d52 | [] | 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 | 372 | py | S=input()
T=S.replace("x","")
if all(s==t for s,t in zip(T,T[::-1])):
ans=0
i=0
j=len(S)-1
while i<j:
pi=i
pj=j
while i<len(S) and S[i]=="x":
i+=1
while j>=0 and S[j]=="x":
j-=1
if i>j:
break
ans+=abs(i-pi-pj+j)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fb1e6d6cae34aa52dd7ba8bb67c88e6fe540ffdb | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_158/867.py | 09a8e95e9891cd47ecbffe946251cab080a70747 | [] | 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 | 2,536 | py | import sys
N = int(sys.stdin.readline())
f = open("omino2.txt", 'w')
for n in range(1, N+1):
line = sys.stdin.readline()
numbers = line.split()
X = int(numbers[0])
R = int(numbers[1])
C = int(numbers[2])
results = {}
results[(1,1,1)] = "GABRIEL"
results[(1,1,2)] = "GAB... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
41f56136414bf028b4bb3b4b13844944e5f7b6d7 | 8f1d6f17d3bdad867518b7b0a164adfe6aeeed95 | /recognition/arcface_mxnet/symbol/fresnet.py | 7b17788d1a58d82161ef1931478c306656ffdbd9 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | xwyangjshb/insightface | 2c7f030a5d1f5a24b18967bd0d775ee33933d37f | ae233babaf7614ef4ef28dac0171205835d78d64 | refs/heads/master | 2022-09-29T07:49:22.944700 | 2022-09-22T11:36:12 | 2022-09-22T11:36:12 | 221,020,460 | 1 | 0 | MIT | 2019-11-11T16:16:56 | 2019-11-11T16:16:55 | null | UTF-8 | Python | false | false | 47,119 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"guojia@gmail.com"
] | guojia@gmail.com |
e6edf7e821959e69ebfbd514bfd6ebed4d6a3504 | a893d00bae0c0fa7db1d42cd14c368033e1c3d3f | /name_cases.py | f23cbc3d995276a3e3a079a1f32e13c489f2a5cc | [] | no_license | taozhenting/python_introductory | 71ac4b5fe4aa45a9008c9510c77e34e31226f849 | f88afa0b4232e7ba79b42c370f2266fde85e7462 | refs/heads/master | 2020-04-27T06:02:20.169314 | 2019-05-22T09:17:40 | 2019-05-22T09:17:40 | 174,096,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #练习
name="eric"
print('"Hello '+name.title()+',would you like to learn some Python today?"')
print(name.title())
print(name.upper())
print(name.lower())
print('Albert Einstein once said, "A person who never made a mistake never tried anything new."')
famous_person='Albert Einstein'
message=famous_person + ' once said,... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
32ab25e66443620e7ac905e4b6352acf4ecb1f7d | e2590e0a78046a22131b69c76ebde21bf042cdd1 | /ABC101_200/ABC167/A.py | af8f6364a3b8a0d6fde91a9081914a508fa55c49 | [] | no_license | masato-sso/AtCoderProblems | b8e23941d11881860dcf2942a5002a2b19b1f0c8 | fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8 | refs/heads/main | 2023-01-22T23:57:58.509585 | 2023-01-21T14:07:47 | 2023-01-21T14:07:47 | 170,867,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py |
S=input()
T=input()
if(S==T[:len(S)] and len(S)+1==len(T)):
print("Yes")
else:
print("No")
| [
"noreply@github.com"
] | masato-sso.noreply@github.com |
857dc8dcf80e7511f376bf1fcf9216db3c651819 | a32dc4bad80b3d77c76bca996059d7551c559db7 | /qtoggleserver/drivers/fwupdate/__init__.py | 3cfdf9621f5ec050494968558dd85316191510bd | [
"Apache-2.0"
] | permissive | qtoggle/qtoggleserver | 145a6ec9728ed7fdad0b602419244b52ec0431ed | 8eccc3c0dffb0018727ef4a073e8916f6554df3a | refs/heads/main | 2023-05-01T02:58:15.466040 | 2023-04-17T16:58:02 | 2023-04-17T16:58:02 | 212,895,635 | 17 | 2 | Apache-2.0 | 2023-03-14T21:18:28 | 2019-10-04T20:15:56 | Python | UTF-8 | Python | false | false | 31 | py | from .dummy import DummyDriver
| [
"ccrisan@gmail.com"
] | ccrisan@gmail.com |
5edc672ee2ac2868887614633f8974fb3595edab | a9f7e40e18c935fb004fe813f98e298ded0581af | /AGC/AGC016/AGC016-B.py | 0a2151f7ba22b78686fa18cbb48298d6c6c6da8a | [] | no_license | happa64/AtCoder_Beginner_Contest | 2eb350f500f4bd65f5491b98cdf002ac9b174165 | 2526e72de9eb19d1e1c634dbd577816bfe39bc10 | refs/heads/master | 2023-07-08T15:13:51.449555 | 2021-08-11T14:18:09 | 2021-08-11T14:18:09 | 255,601,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # https://atcoder.jp/contests/agc016/submissions/16466372
# B - Colorful Hats
import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7
def resolve():
n = int(input())
A = list(map(int, input().split()))
MAX = max(A)
MIN = min(A)
if MAX == MIN:
... | [
"happa_iidx@yahoo.co.jp"
] | happa_iidx@yahoo.co.jp |
a75537b0845c95662d6654245a603fd219e4dc53 | d3196fb38078fdbe966bd5af8a8a4f2924a47c20 | /tests/notebooks/ipython_exit.py | 2337aa80f09307f8c6d922a1f4aed68075cc6c71 | [
"MIT"
] | permissive | morganmcg1/client | a1ae01ea302f13a6c9850972411ecabcb900dbc6 | 099f7aa938fb62c5a5d3e12f7d2067196498b67c | refs/heads/master | 2023-09-06T01:14:40.282234 | 2021-11-13T03:01:01 | 2021-11-13T03:01:01 | 427,620,124 | 0 | 0 | MIT | 2021-11-13T09:22:12 | 2021-11-13T09:22:11 | null | UTF-8 | Python | false | false | 26 | py | import wandb
wandb.init()
| [
"noreply@github.com"
] | morganmcg1.noreply@github.com |
b2f329c27387be6e052c9e78193129b95dd9fcd1 | f39c2c500873180d953ab9a7b22a4f6df95fb1c3 | /linkedin/Binary Tree Upside Down.py | 19f519c4bf99dfad57d08cf3eea98ad8fcdd43b5 | [] | no_license | Jason003/interview | 458516f671d7da0d3585f89b098c5370edcd9f04 | e153306b85c3687b23a332812a0885d25ecce904 | refs/heads/master | 2021-07-15T15:28:07.175276 | 2021-02-05T03:21:59 | 2021-02-05T03:21:59 | 224,898,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | '''
Given the root of a binary tree, turn the tree upside down and return the new root.
You can turn a binary tree upside down with the following steps:
The original left child becomes the new root.
The original root becomes the new right child.
The original right child becomes the new left child.
The mentioned ste... | [
"jiefanli97@gmail.com"
] | jiefanli97@gmail.com |
6c5033cad3e07830d59179aa7c8d155f2d4f7af9 | 93f7ee5c39e33b318f68cb2c5ee95688214c20f2 | /initiation/forms.py | 11e0c7f5d480fe4f5321a19ea85d92a51c862306 | [] | no_license | mohamad1213/Steamdom | a405a6c305822c80cce5589a11c7882de2da38d3 | 235891d03aeab68731d6863a787993517ba8f32c | refs/heads/main | 2023-01-24T05:50:57.532596 | 2020-12-07T04:47:15 | 2020-12-07T04:47:15 | 319,206,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.forms import ModelForm
from bootstrap_datepicker_plus import DatePickerInput
from . import models
class SchoolForm(ModelForm):
class Meta :
model = models.Schools
exclude=[]
class TeacherForm(ModelForm):
class Meta :
model = models.Teachers
exclude=[]
widget... | [
"hatami391998@gmail.com"
] | hatami391998@gmail.com |
ca3c6c324cda2b563d58ddcbc0f5eb5aeb5679ae | 810a8ed334a29b81ddd5a4364c06d0272c3aae39 | /clash-of-code/fastest/calc-accuracy/calc_accuracy.py | 4f6fa1dc14b7341138b35cd20d1c5b5ea6e5ece6 | [
"MIT"
] | permissive | charlesfranciscodev/codingame | d7bdfc244cb58fa356dec73fb2f2ec5470755dbc | 37b8e269e40f1b4e9807c305874f3b97f7c03a03 | refs/heads/master | 2023-08-16T23:26:20.818882 | 2023-08-16T17:12:06 | 2023-08-16T17:12:06 | 179,561,845 | 53 | 26 | MIT | 2021-05-19T19:36:46 | 2019-04-04T19:16:12 | Python | UTF-8 | Python | false | false | 699 | py | def calculate_accuracy(key, submission) -> float:
if len(key) == 0 and len(submission) == 0:
return 1.0
else:
matching_chars = sum(a == b for a, b in zip(key, submission))
return matching_chars / len(key)
if __name__ == "__main__":
key_phrase = input().lower() # Read the key phras... | [
"charlesfranciscodev@gmail.com"
] | charlesfranciscodev@gmail.com |
c595f7338ed6dc64268d0073aae284a7c29fd2e9 | ec65636f2f0183c43b1ec2eac343b9aa1fc7c459 | /train/abnormal_detection_new/10.133.200.71/sga_shared_poolr.py | 0f9952e82deca4b584a12007ca0274a8619af893 | [] | no_license | tyroarchitect/AIOPs | db5441e5180fcace77b2d1022adb53bbd0b11f23 | 46fe93329a1847efa70e5b73bcbfd54469645cdd | refs/heads/master | 2020-04-16T13:45:02.963404 | 2018-11-15T06:50:57 | 2018-11-15T06:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# settings of lstm model
timesteps = 20
batch_size = 64
epochs = 5
lstm_size = 30
lstm_layers = 2
filename = "../../../datasets/1-10.133.200.71_20181027_20181109.csv"
model = "../../../model/abnormal_detection_model_new/10... | [
"873869027@qq.com"
] | 873869027@qq.com |
8b2e01f0650b8c1ed0ad397152037d40674b83fd | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_operation_statuses_operations.py | b12706b4169631549738379d3ab032c132be61d6 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 5,234 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
2c1437656e12d873e37c89b6ea01a918115b5844 | b15f161ce84479d52e8ec748ab1eb7af53b814aa | /pybot/dbus/lcdconsole.py | d871f57a95ed39eb0e8b956f84c86a815010f4cc | [] | no_license | pobot/PyBot | cea7f3e3c7bb4862cc3c629794e6589bbe65770c | bded78fd278408ccd04480c3bb6abce533fc9501 | refs/heads/master | 2021-01-18T07:15:48.731745 | 2015-12-05T16:02:51 | 2015-12-05T16:02:51 | 11,432,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import dbus.service
from pybot.lcd03 import LCD03
import pybot.log
import time
import threading
# I2C_BUS_ID = 1
BUSNAME = 'org.pobot.rob.Console'
IF_DISPLAY = 'org.pobot.rob.Console.display'
IF_INPUT = 'org.pobot.rob.Console.input'
IF_CONTROL = 'org.pobot.rob.Console.control'
OBJPATH = '/org/pobot/rob/Console/objec... | [
"eric@pobot.org"
] | eric@pobot.org |
6806c32c73012a93165960fd6ce41090576b3c3f | 7e0b9f757d829cb2b68af6cdf1d77acf4c76746f | /Lab6/lab6_q1.py | 02f6db0bf83b5bae102a4f86c0aa14bd651d772e | [] | no_license | NatalieP-J/PHY407 | 874957178afc372acd5354f41a2bf21488a6d98d | 1601cace9827876ac3c8df7e0b193a1c93233064 | refs/heads/master | 2021-01-01T15:50:45.500791 | 2014-12-10T14:23:51 | 2014-12-10T14:23:51 | 24,184,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | import numpy as np
import matplotlib.pyplot as plt
from time import clock
###############################################################################
# This code computes the oribit a comet under the influence of solar gravity.
# It does this with fourth order Runga-Kutta solving of Newton's law of
# gravitation ... | [
"natalie.price.jones@mail.utoronto.ca"
] | natalie.price.jones@mail.utoronto.ca |
ab2cad1445c94130646c466a501e62cb3dd2aa33 | 4fdaa61e2fb2d320a0903e17024598c6a67ab0fb | /python/quick_sort_version1.py | b60433cda67705dc4529b7abb020f6eecd0064d1 | [] | no_license | khans/ProgrammingAndDataStructures | 10d5cd5f30f703298ba132be4dfba828f3a0e9e1 | 58c1d822fa5eab17485369bc40dd1376db389f44 | refs/heads/master | 2021-01-25T14:03:40.616633 | 2018-06-19T23:02:44 | 2018-06-19T23:02:44 | 123,643,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #quick sort
'''
given: [3,5,2,1,0,3,6,9]
output: [0,1,2,3,3,5,6,9]
pivot is suppose a[mid]
'''
def quick_sort(given):
if len(given)<=1:
return given
else:
pivot = given[0]
left=right=[]
left = quick_sort([x for x in given[1:] if x < pivot])
right = quick_sort([x for x in ... | [
"isafakhan@gmail.com"
] | isafakhan@gmail.com |
dcbf207cc2ab3f9a87e789c0ee35c1c1dfdf2ad7 | 7ebb2f0458d3813737dd045473d7c1398d08392d | /tests/test_generate_maximum_intensity_between_points_matrix.py | 5572c6d66c673efcef71e237fe6300822da85042 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | clEsperanto/pyclesperanto_prototype | b3192d6984f45571fe0a7dfcceee2058bc4debbe | b465c8669f8e9326874139cf4b9c9af22c22757c | refs/heads/master | 2023-09-04T11:07:55.828329 | 2023-08-25T17:18:30 | 2023-08-25T17:18:30 | 248,206,619 | 152 | 36 | BSD-3-Clause | 2023-05-23T09:44:51 | 2020-03-18T10:56:29 | Jupyter Notebook | UTF-8 | Python | false | false | 776 | py | def test_generate_maximum_intensity_between_points_matrix():
import pyclesperanto_prototype as cle
import numpy as np
image = np.zeros((10, 10))
image[5:, :5] = 5
image[5:, 5:] = 10
coords = np.asarray([
[1, 1], # first point
[8, 1], # second ...
[1, 8],
[8, 8... | [
"haesleinhuepf@users.noreply.github.com"
] | haesleinhuepf@users.noreply.github.com |
365c13f2fc0d7fdcf557b0de80070e0b5049cb0a | dd027c4bbcace97e3dbf566c123b178ceb1a8282 | /sett/libsass.py | ac616b59aaeaabe3f89b6b366455d6eaee8759f1 | [] | no_license | cecedille1/Sett | 479bf00ca8df807f431e235c68b892bb90fab9b0 | bf8b9f204caa532a5fb8f110ab4e4a1cea03cb96 | refs/heads/master | 2021-01-10T13:28:11.614022 | 2016-03-31T16:51:14 | 2016-03-31T16:51:14 | 43,488,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,377 | py | # -*- coding: utf-8 -*-
import time
import os.path
import collections
import importlib
import traceback
import threading
from sett import optional_import, defaults, ROOT
from sett.utils.dispatch import Dispatcher
from paver.easy import task, info, debug, consume_args, path, error
from paver.deps.six import string_typ... | [
"gr@enix.org"
] | gr@enix.org |
2f0c0229b9b1ce45085bd6399c877404d7a3187c | fa7c302f7df6b1773b27de3b742d551bd54aa4e2 | /test/test_add_aws_network_request_all_of.py | b7e6158f1218f4f9eebc4004c511636512f33d87 | [] | no_license | cons3rt/cons3rt-python-sdk | d01b3b174c295491130fba0d76d046b16492e9f7 | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | refs/heads/master | 2021-11-04T02:31:54.485541 | 2021-10-26T19:28:57 | 2021-10-26T19:28:57 | 241,673,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # coding: utf-8
"""
CONS3RT Web API
A CONS3RT ReSTful API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.mode... | [
"shaun.tarves@jackpinetech.com"
] | shaun.tarves@jackpinetech.com |
49d641eb6442ec2bf947fb154798653095f870c2 | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/geo/migrations/0015_add_permissions.py | fb55613e6ec6ba41d43887bf3fb1712a14dcda15 | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 693 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-11-11 12:19
from __future__ import unicode_literals
from django.db import migrations
from bluebottle.utils.utils import update_group_permissions
def add_group_permissions(apps, schema_editor):
group_perms = {
'Staff': {
'perms': (
... | [
"loek@goodup.com"
] | loek@goodup.com |
d185518f4ac19a4dc252e1403bc4b462e7a11ec9 | 868cd4895a8da17a7e3e2c8da0ec9e139f8d0c30 | /module/p13_do_name.py | c0dfaa81c281c2b29557876bf93e29c9fcfe219d | [] | no_license | inJAJA/Study | 35d4e410df7b476a4c298664bb99ce9b09bf6296 | c2fd9a1e1f3a31cb3737cbb4891d848cc802f1d4 | refs/heads/master | 2022-12-21T11:41:15.396610 | 2020-09-20T23:51:45 | 2020-09-20T23:51:45 | 263,212,524 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # 같은 폴더 안에만 있으면 import로 불러 올 수 있다.
import p11_car
import p12_tv
print("====================")
print("do.py의 module 이름은", __name__)
print("====================")
p11_car.drive()
p12_tv.watch()
'''
운전하다.
car.py의 module 이름은 p11_car
시청하다
tv.py의 module 이름은 p12_tv # 가져온 파일의 이름 = 파일명
====================
do.py의 modu... | [
"zaiin4050@gmail.com"
] | zaiin4050@gmail.com |
34a700eb3dc72a9fed4eb18cebbdc01f492d6556 | 0a080a6040b83cc7bec25d516da0ad68a77380c3 | /service.py | dba4f5a7845c1980a48f0c085cea935f0fafbbf6 | [] | no_license | deeppavlov/p_srv | 0e4b173221b5488b7018195bf135435d01103e75 | 778bd977598323c71b2842b660a1dcfe67043086 | refs/heads/master | 2022-10-04T21:33:24.266327 | 2017-10-03T14:27:24 | 2017-10-03T14:27:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,755 | py | from nameko.rpc import rpc
from keras.models import Model
import numpy as np
from model_provider import Agent, Classifier
from faq_provider import Faq
class Paraphraser(object):
name = 'paraphraser'
a = Agent()
@rpc
def predict(self, phrase=None, phrases=[]):
if phrases is None or len(phras... | [
"seliverstov.a@gmail.com"
] | seliverstov.a@gmail.com |
485d60aea9ae5b06b4ba56c2e88d845d7210bb20 | fc90cf8df03efa4d2c5225f4197f1786e46e3c18 | /test/analysis/test_expand.py | 92814ba2b20bbfa31553786c8f8548114ae0cf0c | [
"MIT"
] | permissive | The-Actual-Damien/https-github.com-salesforce-policy_sentry | 4d37417bad88ad1bcb05e2ff7ad4a5224d12fa55 | db5f885936cf47eccce2bbc59c7c4d6bbbd1b3be | refs/heads/master | 2023-05-07T05:39:57.476038 | 2021-03-23T17:21:24 | 2021-03-23T17:21:24 | 352,931,793 | 1 | 0 | MIT | 2021-04-01T02:37:30 | 2021-03-30T08:46:52 | Python | UTF-8 | Python | false | false | 1,887 | py | import unittest
from policy_sentry.analysis.expand import get_expanded_policy
class PolicyExpansionTestCase(unittest.TestCase):
def test_policy_expansion(self):
"""command.expand_policy.get_expanded_policy: Test the expansion of the cloud9 service"""
policy = {
"Version": "2012-10-17",... | [
"kmcquade@salesforce.com"
] | kmcquade@salesforce.com |
9c35e4be584f1d02d3a54366564114b0461b933a | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getAutorizedTargetFormatItemList.py | 45442e12c5b849f819b98f1162799e4224a0f051 | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | autorized_format_list = []
format_list = context.getTargetFormatItemList()
for format in format_list:
if context.Document_isTargetFormatPermitted(format[1]):
autorized_format_list.append(format)
return autorized_format_list
| [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
6feacb3730a4ccf6c90242ef82a63304491e44c5 | 22aa900e70c8cc6005ecadbb2ae710526af8d3ba | /course/models.py | 49fc565e5f2adbeb8e582069d4cc82e273edef2a | [] | no_license | skafis/career_choice | f79ac3df223122a19a7718d9247ca4e2e72ee22e | 84d3ec752ba6da60e7130f132bd329ff72d66cae | refs/heads/master | 2021-01-13T02:50:44.580867 | 2016-12-22T16:32:40 | 2016-12-22T16:32:40 | 77,144,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Courses(models.Model):
name = models.CharField(max_length=200)
slug = models.SlugField(unique=True)
time = models.IntegerField()
cost = models.IntegerField()
def __unicode__(self):
return self.name
def __s... | [
"franciskipchumba5@gmail.com"
] | franciskipchumba5@gmail.com |
b56ae5334891f956c0756ad37daac2f6903e0d67 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_loosing.py | fd0cf5bd1912835e51602671a21775fa927bad72 | [
"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 | 233 | py |
from xai.brain.wordbase.verbs._loose import _LOOSE
#calss header
class _LOOSING(_LOOSE, ):
def __init__(self,):
_LOOSE.__init__(self)
self.name = "LOOSING"
self.specie = 'verbs'
self.basic = "loose"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
baab85f958cfaa388d8699c5746b47731b2f9b42 | 92f9c8c03902fe6dcf3f6de9fec0529118dcf1de | /awacs/cloudwatch.py | 221112860d98ad339625734abe397e22f58c2f1c | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MicrohexHQ/awacs | a1ef33b195eb6845736b23b345ad7d6cacf353e0 | 91800082135167d1e2e24a7f14b5e5800ef17a83 | refs/heads/master | 2020-08-11T03:35:25.378257 | 2019-10-11T16:32:59 | 2019-10-11T16:32:59 | 214,483,240 | 0 | 0 | BSD-2-Clause | 2019-10-11T16:32:23 | 2019-10-11T16:32:23 | null | UTF-8 | Python | false | false | 1,487 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'Amazon CloudWatch'
prefix = 'cloudwatch'
class Action(BaseAction):
def __init__(self, action=None):
sup = super(... | [
"mark@peek.org"
] | mark@peek.org |
cb09f89461ca52365df10df5119517d3f9c04f05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03274/s797202728.py | a3418c5e82873593ccf048b263a057bb7bfe00cf | [] | 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 | 701 | py | import bisect, copy, heapq, math, sys
from collections import *
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
def input():
return sys.stdin.readline()[:-1]
def ruiseki(lst):
return [0]+list(accumulate(lst))
def celi(a,b):
return -(-a//b)
sys.setrecursi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
663b419d1c8950fc473bbe1a203d417b961d7ea1 | 9cec93a18ea94504947820205d0faae4d67ecd8d | /H2TauTau/plotting/et/combineCards.py | 9a8b333e134f6ca70d2a39f303801ed95b559cb8 | [] | no_license | DESY-CMS-SUS/cmgtools-lite | de88b1d5dc20a925ed5b7c7be69fa3ef677955c6 | db52d50047178563a0eb7f5858ae100aa408ec68 | refs/heads/8_0_25 | 2021-05-23T04:36:22.900460 | 2017-11-09T10:32:41 | 2017-11-09T10:32:41 | 60,184,794 | 3 | 9 | null | 2021-02-17T23:22:12 | 2016-06-01T14:37:18 | Python | UTF-8 | Python | false | false | 2,161 | py | import os
from CMGTools.H2TauTau.proto.plotter.datacards import *
for mssm in [True, False]:
prefixes = ['']
if mssm:
prefixes = ['2013', 'default', 'fine']
for prefix in prefixes:
if not mssm:
inFiles = [
'eleTau_0jet_high.root',
'eleTau_0jet_medium.... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
bd5a2c1dc1e2a7989d611a1af82645b662517f47 | 48d232cc6dcf57abf6fca9cbbef8943e189acb04 | /intersection-of-two-linked-lists.py | d355cca9d17c5c92b079ca03d52ca7c0af8e4089 | [] | no_license | csusb-005411285/CodeBreakersCode | dae796ba4262770e0a568e9c27597a041db0775c | 8f218164e1b9e42c1a928d22ef5a76328abb66a2 | refs/heads/master | 2022-01-12T09:11:33.668338 | 2021-12-27T04:45:13 | 2021-12-27T04:45:13 | 232,490,141 | 1 | 1 | null | 2021-01-29T23:09:14 | 2020-01-08T06:02:11 | Python | UTF-8 | Python | false | false | 613 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
if not headA or not headB:
return None
p1 = hea... | [
"noreply@github.com"
] | csusb-005411285.noreply@github.com |
4892ab2f48573e6c1ea92e16f2dee3af395f2fc7 | 878c1cf93bfae1a9ea1ef8bed9d85dbae2c05c17 | /MyWeb/web/setting.py | d9ab041895d2b748929d49d28a34cafc900b5b1f | [] | no_license | JackLeeMing/python_serve | e2b928587b17fbc485588e6e77ffe657ab3179dd | 24f25c52fd5bdb2fbebe9e9baefba39194260c9c | refs/heads/master | 2021-07-25T01:02:06.989609 | 2017-11-03T01:16:07 | 2017-11-03T01:16:07 | 109,335,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | DEBUG = True
DB_NAME = "lijiakui_web"
DB_HOST = '192.168.111.5:27011'
CACHE_HOST = '192.168.111.149'
PORT = 8888
ACTION_DIR = ('testweb','logic')
LOCAL_URL = 'http://t-lijiakui.thunics.org' | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
7b0d98694a35fc93be16213cd48ecd2a31a1f438 | 7c67952f1c18d42f283f395d02294e148f3dd349 | /export/contract/views.py | e8cdaedb13debd4af63d8d11cd4469171d96d731 | [] | no_license | 314casso/cportal | cfb4cc9e53819950177728bc5d42e47f2aa3d45e | a0a2043616241429571ec1b99302dada49af1485 | refs/heads/master | 2022-12-11T07:19:14.209367 | 2021-10-05T21:27:00 | 2021-10-05T21:27:00 | 110,969,703 | 0 | 0 | null | 2022-12-07T23:47:26 | 2017-11-16T12:37:59 | HTML | UTF-8 | Python | false | false | 4,921 | py | # -*- coding: utf-8 -*-
import datetime
from django.core.cache import cache
from django.db.models import Q
from django.http import JsonResponse
from django.shortcuts import render
from django.utils.timezone import now
from rest_framework import viewsets
from rest_framework.pagination import PageNumberPagination
impor... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
95c46d48ef00f34c693b9dd3229a8a29d270fb6d | 2565b3edfee1dbacbe0f20440337641c99be3356 | /czaSpider/spiders/数博-船舶json数据英转中/code/downloader.py | f2b75f1c6e5c4f9c4198738dd4222d7414991fe4 | [] | no_license | hi-noikiy/ScrapyLearning | 9f2cd3c7a1404ec06f4db9c958542b36abbeba09 | 1dd4c946f133d461dfe3fe21e31e5ba57adfd18a | refs/heads/master | 2022-04-27T11:24:28.748495 | 2020-04-28T00:30:34 | 2020-04-28T00:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import requests
import json
from scrapy import Selector
from importlib import import_module
list2china = getattr(import_module("english2china"), "list2china")
names = getattr(import_module("SHIPS_NAME"), "names")
url = "http://track.logink.org:9082/OceanTracking/VesselTracking"
# server_provider = ['CNNGB', 'CNZOS... | [
"czasg0.0"
] | czasg0.0 |
e307004a0b4f2c95fbf1c7c8ef25014a590117f8 | 9e2ee03f33066c34d51c6a9e3af41a47319d94c7 | /kyu6/format_a_string_of_names.py | d13f02a614149924e2a73732dadc77022c5165f4 | [] | no_license | anton-dovnar/CodeWars | 4243df233b5bb3c49f04c44edb8d66414519b409 | 3ca4ca64c41e8089baed3f8ce47e2625d3b2e463 | refs/heads/master | 2023-06-25T20:14:46.154994 | 2021-07-25T15:48:27 | 2021-07-25T15:48:27 | 384,199,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from operator import itemgetter
def namelist(names):
name_getter = itemgetter('name')
list_of_names = [name_getter(name) for name in names]
if len(list_of_names) < 2:
return ''.join(list_of_names)
return ', '.join(list_of_names[:-1]) + f" & {list_of_names[-1]}"
| [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
5d8c09b58740ed6ee2115cd826004dc7d06ffa8b | 6bd9d7679011042f46104d97080786423ae58879 | /630/d/d.py | 9795fcd1f1ad64d71a4a8cae375b78fc2f9b7e23 | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 44 | py | n = int(input())
print(1 + 3 * n * (n + 1))
| [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
c826b7ea20da109ffe2c709b6592d0aef0051969 | 14b5679d88afa782dc5d6b35878ab043089a060a | /students/Cao Jiaming/20200408作业/open.py | 6f0e51e4d76e5e1ad736aea5003f9f070cce6015 | [] | no_license | mutiangua/EIS2020 | c541ef32623f67f9277945cd39cff3c02f06e4dd | 92aa2711b763a2c93be238825c445bf2db8da391 | refs/heads/master | 2022-11-18T05:21:47.567342 | 2020-07-11T10:11:21 | 2020-07-11T10:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import mcpi.minecraft as minecraft
import csv
import serial.tools.list_ports
import time
#com1
ser = serial.Serial(port='COM1')
mc = minecraft.Minecraft.create()
pos = mc.player.getTilePos()
#我的世界回到家后点亮arduino的一盏灯,走出家后arduino灯关闭
def run(action):
ser.write(action.encode())
#house类
class House:
def __init__(se... | [
"noreply@github.com"
] | mutiangua.noreply@github.com |
3cb910983046ede6f75925d46b57dc497e246008 | 9c5a2a12035d7408cbe2c1046cf743c4ae9545d6 | /restaurants/views.py | 35f3f330a8160355a082e60046207cb45d6c7d61 | [] | no_license | laqatami/task_07 | 7e1285bbae231c122a02ee36467aae64b7e9ed07 | 2f6bf043299e34f29d0f9555e31b879e102b1568 | refs/heads/master | 2020-04-18T08:37:00.377213 | 2019-01-24T17:22:36 | 2019-01-24T17:22:36 | 167,402,546 | 0 | 1 | null | 2019-01-24T16:49:43 | 2019-01-24T16:49:42 | null | UTF-8 | Python | false | false | 1,486 | py | from django.shortcuts import render, redirect
from .models import Restaurant
from .forms import RestaurantForm
def welcome(request):
return render(request, 'index.html', {'msg':'Hello World!'})
def restaurant_list(request):
context = {
"restaurants":Restaurant.objects.all()
}
return render(re... | [
"hamzamakia@gmail.com"
] | hamzamakia@gmail.com |
9362675f51d55e6ef70137da342b4bfdb247af9f | 6684f88abb4dde0e1295fd65e1d82b5d5a3a0414 | /projects/views.py | 7bc225848f70773252faadc3c989fbe0c0e93e60 | [] | no_license | mostafaitalian/mostafaprofile | f6242bcdb60af3c679530a9dc4f6dfb3aee6bfd9 | ac7fa2e2e73cc9dca08e3127dd2a1859e7bbdd28 | refs/heads/main | 2023-06-12T12:01:22.766499 | 2021-07-05T19:53:43 | 2021-07-05T19:53:43 | 382,725,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.shortcuts import render, get_object_or_404
from .models import Project
# Create your views here.
def index(request):
projects = Project.objects.all()
return render(request, 'projects/project_index.html', {'projects': projects})
def project_detail(request, pk):
project = get_object_or_404(Pro... | [
"eng_mustafa_yossef@hotmail.com"
] | eng_mustafa_yossef@hotmail.com |
cfb8b34c854afa1d3e07fc5063c6c673398689fc | e4910c4b436223859d91f3569cadafa69a3c777b | /src/computer_vision/nodes/ros_daev.py | ebf8c4f1f661e2f973bd888c6b87f125468ecd2d | [] | no_license | pmusau17/F1TenthHardware | 81ae6870e15c1fe39a1f386b8bcfaa653bf2675c | 3ae3ab1cedd89e56db2fbabe24f1c6a79d3553d9 | refs/heads/master | 2023-04-01T09:02:12.635614 | 2021-04-07T16:34:17 | 2021-04-07T16:34:17 | 298,356,593 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | #!/usr/bin/env python
import rospy
import cv2
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
import imutils
#import the tensorflow package
from tensorflow.python.keras.models import load_model
import tensorflow.keras.backend as K
# s... | [
"pmusau13ster@gmail.com"
] | pmusau13ster@gmail.com |
5c45794d8f5c8e2888c80ae2cf3edb55d5664113 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/authorization/outputs.py | 57b5ab1c2233da2fcd025d6a7863383ad4a8a51e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,543 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
f637b99c3707e649fa28238f9d713e05cbc81b76 | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /bin/diffMaps.py | 8f74f142f349808de59b56060e97b8ca12442ed3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 3,018 | py | #! /usr/bin/env python3
# <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import argparse
from fudge import map as mapModule
summaryDocStringFUDGE = '''Prints the protare d... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
93a843c16033ac6bec830788fcd6a53faa88e9c7 | 4597f9e8c2772f276904b76c334b4d181fa9f839 | /Python/4Sum.py | 4dda6ab706cd6d2311fd66de2a0d60aac40142c0 | [] | no_license | xxw1122/Leetcode | 258ee541765e6b04a95e225284575e562edc4db9 | 4c991a8cd024b504ceb0ef7abd8f3cceb6be2fb8 | refs/heads/master | 2020-12-25T11:58:00.223146 | 2015-08-11T02:10:25 | 2015-08-11T02:10:25 | 40,542,869 | 2 | 6 | null | 2020-09-30T20:54:57 | 2015-08-11T13:21:17 | C++ | UTF-8 | Python | false | false | 1,034 | py | class Solution:
# @return a list of lists of length 4, [[val1,val2,val3,val4]]
def fourSum(self, num, target):
n = len(num)
num.sort()
res = []
for i in range(n-3):
if i > 0 and num[i] == num[i-1]:
continue
for j in range(i+1, n-2):
... | [
"jiangyi0425@gmail.com"
] | jiangyi0425@gmail.com |
01eefc50126d52470fe671a1cb4455dbc4110569 | a0343a5b57249be9b11f67b8ed8d69b61fb5c316 | /aoc/2019/d22.py | 0cc53584e296ed9fdc53bd4815d3f7f7605f4ce2 | [] | no_license | bj0/aoc | 7b8ba0b06385f7832ece0978604c710d4670ddd7 | a81ac2b5f8e237d02eb1a223753ce73dade550d4 | refs/heads/master | 2023-01-27T16:51:12.203477 | 2023-01-24T02:08:49 | 2023-01-24T02:08:49 | 228,558,550 | 1 | 0 | null | 2022-06-29T17:54:06 | 2019-12-17T07:29:16 | Python | UTF-8 | Python | false | false | 1,260 | py | import re
from aocd import data
def egcd(a, b):
if a == 0:
return b, 0, 1
else:
g, y, x = egcd(b % a, a)
return g, x - (b // a) * y, y
def modinv(a, m):
g, x, y = egcd(a, m)
if g != 1:
raise Exception("failed")
else:
return x % m
def deal(s):
yield ... | [
"execrable@gmail.com"
] | execrable@gmail.com |
d14648dc74a17e48476480a0e421beafe5dc7250 | 0d87906ca32b68965c3aa5b4cb829383276b13c8 | /tests/extension/thread_/multibank_ram_dma/thread_multibank_ram_dma.py | fdc604b56c25f4adfa9321e8dc372657c2874245 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tanbour/veriloggen | 301beea3d9419c2d63d1d1159a2ec52ed316ef20 | 858fbc872be78964cfc7e5a23e1491b2c3d5cf52 | refs/heads/master | 2020-03-18T20:38:24.653119 | 2018-05-19T04:49:01 | 2018-05-19T04:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
from veriloggen import *
import ve... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
7fd3925b28c6215191934b4b97eca3ad17376a4d | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/data/_internal/execution/operators/actor_pool_map_operator.py | 6a48638a20e20a94e149a1a2798658dd2283e165 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 31,878 | py | import collections
from dataclasses import dataclass
from typing import Any, Dict, Iterator, List, Optional, Union
import ray
from ray.data._internal.compute import ActorPoolStrategy
from ray.data._internal.dataset_logger import DatasetLogger
from ray.data._internal.execution.interfaces import (
ExecutionOptions,
... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
e4df416cb4466aacd8e0d866392b180f105736af | a527510b04da216138ed94c7b843a882ac036d3c | /Algorithms/SortingSeaching/MergeSort.py | ab2d8103658a3d17ed003c4a9a6f7a34f5161f5e | [
"MIT"
] | permissive | sshh12/SchoolCode | a10065be38514af88fe9008e2a903935a389129c | 2b16f0e15d325e01194ce0388bf87eb813ed43e8 | refs/heads/master | 2021-01-11T10:33:58.586265 | 2019-06-30T20:06:02 | 2019-06-30T20:06:02 | 76,362,220 | 5 | 1 | MIT | 2019-06-30T20:06:03 | 2016-12-13T13:42:59 | Java | UTF-8 | Python | false | false | 1,399 | py |
def _merge(nums, left_index, middle_index, right_index):
left_size = middle_index - left_index + 1
right_size = right_index - middle_index
left_elements = nums[left_index:left_index + left_size]
right_elements = nums[middle_index + 1:middle_index + right_size + 1]
left, right, index = 0, 0, left... | [
"shrivu1122@gmail.com"
] | shrivu1122@gmail.com |
e07512e772995b1faa6540ff06cd7298b248b985 | 0d3c28e8cca306758c6e10f5bb5cc0b5f576e3c3 | /backend/home/migrations/0002_load_initial_data.py | 6c75da1a02360347e9d14ac0cefb1556eb47a20a | [] | no_license | crowdbotics-apps/mobile-9-nov-dev-14826 | 806624eb5238ce5ff8c106f416717d31ca11163f | 9b2fb1662e926162ff143502b91a9ef6ff6ca80c | refs/heads/master | 2023-01-11T12:27:31.522190 | 2020-11-09T17:03:10 | 2020-11-09T17:03:10 | 311,407,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mobile 9 nov"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1f243f740e55128f5defd05e177badea90e9e6f8 | dec2b5a55fa0770488cb97557c7bea2c02b78e1b | /2-content/14-Pure-Education/pytorch/pytorch-master/torch/nn/modules/linear.py | eb6f3f03553508caeecae62b0c996cf99b3d4cbb | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | eengineergz/Lambda-Resource-Static-Assets | 91968b057977df06c71b5e379bc8b7e94a731ff9 | ec33b142e1680d730cb79c7e798a5fadce83b85f | refs/heads/master | 2023-06-02T19:40:36.217188 | 2021-06-18T23:55:58 | 2021-06-18T23:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,300 | py | import math
import torch
from torch import Tensor
from torch.nn.parameter import Parameter, UninitializedParameter
from .. import functional as F
from .. import init
from .module import Module
from .lazy import LazyModuleMixin
class Identity(Module):
r"""A placeholder identity operator that is argument-insensiti... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3736f491258a80cb741c6a642bd9b48f7db3455f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5652388522229760_0/Python/Nandofer/counting_sheep.py | f4ef4d00469a0679938ed35469bd8277ac7da8fa | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | '''
Created on Apr 8, 2016
@author: flmendez
'''
import argparse
import sys
def count_sheep(line):
digitset = set()
basenum = int(line)
lastnum = 0
numlen = len(str(basenum))
if basenum == 0:
return 'INSOMNIA'
while lastnum < 100**numlen*basenum:
lastnum += basenum... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
bee2ca424fdeb82453b443067e6d1d28bef55196 | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/menangle.py | 4d94bc3d8d17eb3674a6f57bd9dd588988edddba | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | """Dataset with 'Menangle rubulavirus' sequences.
A dataset with 1 'Menangle rubulavirus' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
__author__ = 'Hayden Metsky <hayden@mit.edu>'
ds = GenomesDatasetSingleChrom(__... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
44984d1ba51aa457a883a2e1429d5dae58705132 | d4b91d9ebb7c850f07b06e5c15794b2885f2e767 | /6/Tema5(Tuple,List)/1.t_12.py | f56308df4df8efa89aecfb552a64fb8451959adf | [] | no_license | Timur597/First6team | 13b6dbb2d2e68d5df5c76c5bbba587d563a95957 | 4df85a6f20bad626ad76196cd5bc867ce27d0aac | refs/heads/master | 2023-03-05T15:39:24.311784 | 2021-02-20T07:17:36 | 2021-02-20T07:17:36 | 340,588,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | 1 Задание
list = [ (10,1,14.5, "Timur"), (3,4,1.3, 'Newyear'), ("Good", 5, 3.431, 999),(341, "cool", 12.3, "job"), ("4", 63, 91) ]
print (len (list) )
2 Метод
a = (1,2,3,4,5)
a1 = (2,34,56,7)
a3 = (5,3,5,78,3)
a4 = (1,23,46,7,8)
lis = [a,a1,a3,a4]
print (lis) | [
"khalilov.timur97@mail.ru"
] | khalilov.timur97@mail.ru |
a27db6f471e1e771863fa24082917d476b69ce32 | 969d20170c0b65d28cfbd0e6c6e250629abdbb13 | /nmt/model.py | dcd74fd560626139d56db1e149275fff310559e0 | [] | no_license | roholazandie/encoder_decoder_sequence | 167f616ce7e6cc2172e08c4258cd7e0826fc93c8 | aec0b9b8d4108c766cb5cbaf081fd84596fc12da | refs/heads/master | 2020-04-15T12:56:47.384831 | 2019-02-08T21:46:16 | 2019-02-08T21:46:16 | 164,694,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,922 | py | import tensorflow as tf
from nmt.iterator_util import DatasetIterator
UNK_ID = 0
class Model():
def __init__(self, mode, hyper_parameters):
self.mode = mode
self.hyper_parameters = hyper_parameters
self.iterator = DatasetIterator(hyper_parameters)
def create_attention_mechanism(sel... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
3566df42eea5255fa9114df017570a284fcc95f1 | bc0938b96b86d1396cb6b403742a9f8dbdb28e4c | /aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/UpdateStackInstancesRequest.py | 55e44a329938a9c24dee3fd91375d47270f751a2 | [
"Apache-2.0"
] | permissive | jia-jerry/aliyun-openapi-python-sdk | fb14d825eb0770b874bc123746c2e45efaf64a6d | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | refs/heads/master | 2022-11-16T05:20:03.515145 | 2020-07-10T08:45:41 | 2020-07-10T09:06:32 | 278,590,780 | 0 | 0 | NOASSERTION | 2020-07-10T09:15:19 | 2020-07-10T09:15:19 | null | UTF-8 | Python | false | false | 3,015 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
34a477901c8647a419ef5f5b9aea2a6b25573ecb | b0f41ef2af5309fc172b05232dbde501a01d1234 | /fyt/applications/migrations/0110_scorevalue.py | 59ba44c2288e9c3ff1ac90ee8107bd7ca35d1371 | [] | no_license | rlmv/doc-trips | c4dfec9b80cf531b69b17ac2caaef509fa048cd3 | 59c1ffc0bff1adb4f86f1dcfaa66d8970ff55b72 | refs/heads/master | 2023-05-27T01:48:49.251830 | 2021-08-07T04:02:26 | 2021-08-07T04:02:26 | 21,745,373 | 10 | 3 | null | 2023-05-23T00:51:26 | 2014-07-11T17:36:35 | Python | UTF-8 | Python | false | false | 899 | py | # Generated by Django 2.0.4 on 2018-04-13 16:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
('applications', '0109_merge_20180413_1219'),
]
operations = [
migrations.C... | [
"bo.marchman@gmail.com"
] | bo.marchman@gmail.com |
97a1ec6919b7cd80d4da1275e8daefa907558fab | 89d230ad44d17b18897da507725b0a10c32960d8 | /Gen2_0_PP/Homeworks/codeforces_252C.py | afc826cee5120c0955aca0b5d933595073ccb8cb | [] | no_license | KB-perByte/CodePedia | aeeae87b56cf0ff6e02200cfd6b34da42a007338 | 287e7a3ce981bbf594436cdc06dde23a02b53bb0 | refs/heads/master | 2021-06-19T07:32:53.849871 | 2021-01-23T16:17:27 | 2021-01-23T16:17:27 | 163,250,017 | 0 | 1 | null | 2020-03-21T14:39:36 | 2018-12-27T05:13:55 | JavaScript | UTF-8 | Python | false | false | 490 | py | N, target = input().split()
N = int(N); target = int(target)
a = [int(i) for i in input().split()]
def checkIdx(a, l, val):
if a[l] - val > target:
return -1
r = len(a) - 1
while l <= r:
mid = (l+r)//2
if a[mid] - val > target:
r = mid-1
elif a[mid] - val < target:
l = mid+1
else:
return mid
... | [
"paul.sagar@yahoo.com"
] | paul.sagar@yahoo.com |
c810dbe1ec2c1206676eeba822f63422be53ed10 | f03bd5bd7873c5cc33b4ef5199f219539f3a340e | /CAAPR/CAAPR_AstroMagic/PTS/pts/do/evolve/rastrigin.py | cbd87d5b7ff3aa79b8c90ba87276969f4431c746 | [
"MIT",
"GPL-1.0-or-later",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Stargrazer82301/CAAPR | 5f8a7033b16792f23abd5d07021b53b9228a5db4 | 62b2339beb2eb956565e1605d44d92f934361ad7 | refs/heads/master | 2022-08-29T02:53:33.658022 | 2022-08-05T19:06:46 | 2022-08-05T19:06:46 | 49,977,601 | 8 | 1 | MIT | 2022-08-05T19:06:47 | 2016-01-19T19:32:42 | Python | UTF-8 | Python | false | false | 1,161 | py |
from pts.evolve.simplega import GAEngine, RawScoreCriteria
from pts.evolve.genomes.list1d import G1DList
from pts.evolve import Mutators, Initializators
from pts.evolve import Selectors
from pts.evolve import Consts
import math
# This is the Rastrigin Function, a deception function
def rastrigin(genome):
n = ... | [
"cjrc88@gmail.com"
] | cjrc88@gmail.com |
1e2dd93453ec046d8d2a383fe5b6c7d874730ed5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/Sherlock9/gcj_fractiles.py | 17098a2606c0e74a157102cc7824355b6259e38a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import math
import itertools
def fractiles():
with open("D-large.in") as file:
lines = file.readlines()
cases = []
for index, test in enumerate(lines[1:]):
orig_len, comp, limit = map(int, test.split())
num_poss_seq = 2 ** orig_len
len_comp_seq = orig_len... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
885d036186de8e45bf21eb544df6ed3d42934ce0 | 7be488d0c454c4790c6a0f992499e31f718b716d | /HW/hw4/voronoi.py | e7f521c39a5472b80b0810d4ed87d87d53f7aa47 | [] | no_license | xyt556/Computational-Geometry | a757015f183e2345a6fda16aea3010b6045cee21 | 9b4d477886e50af704e7aad087f36bd8f94c4b65 | refs/heads/master | 2022-05-10T04:16:23.365265 | 2020-04-28T06:29:32 | 2020-04-28T06:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | #!/usr/bin/env python3
##################################
# University of Wisconsin-Madison
# Author: Yaqi Zhang
##################################
"""
compute voronoi diagram for a set of 2D points
"""
import sys
sys.path.insert(0, '../lib/')
import numpy as np
import matplotlib.pyplot as plt
from triangulation_DS im... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
d5786567db879f792a0425edcc86841058f33950 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_Lag1Trend/cycle_5/ar_/test_artificial_32_Anscombe_Lag1Trend_5__20.py | b5fa8458f12ede241c30bf907634632341b3aadf | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 262 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Anscombe", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5b19985a282e9b627546191824e325cbce4270ae | e0ed932fc2e4edb953cc4e423362dabc19083008 | /python/sqlalchemy_learn/01_psotgresq_bask.py | 95273f057c447d99f742acd33c0d59b2cae8d01d | [] | no_license | glfAdd/note | 90baee45003ac3998d898dcfbc618caa28f33b74 | 19a9aff61450be25904bff0fe672f660d49d90ff | refs/heads/main | 2023-05-27T13:28:36.092352 | 2023-05-24T03:35:58 | 2023-05-24T03:35:58 | 240,066,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | # coding=utf-8
"""
安装
pip install sqlalchemy
"""
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer
# 创建对象的基类:
Base = declarative_base()
# 必须继承基类
class User(Base):
# 表的名字:
__tabl... | [
"2239660080@qq.com"
] | 2239660080@qq.com |
1ec145b7e308a03ced6840ffd9584082ddaac93f | 458e3b9d2951575dbbf2b67232ba469bd55940b8 | /firenado/test/tornadoweb.py | d232e1dea9710875262514f1d324ff7037fd4798 | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | asad-abbasi/firenado | c944fb51df3ad66b6e0194ab94226a7cd7309fe1 | b7e6e28e5938470f73463869153ffedb4a715ca8 | refs/heads/master | 2021-04-26T22:45:20.397323 | 2018-03-06T02:01:12 | 2018-03-06T02:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | #!/usr/bin/env python
#
# Copyright 2015-2016 Flavio Garcia
#
# 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... | [
"piraz@candango.org"
] | piraz@candango.org |
4e69728c1fb02d95ddf7ba705430138455864d3c | 81c344b8df43ed550cb9496c664a8de2687eda3e | /venv/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_replacemsg_nntp.py | b7aaa30c66d72b47f0440df09296025214e5c985 | [] | no_license | anhdoan-ntt/cisco-aci | dc0e52b6d19ee0bafb2b24e0febe955952bf39ef | 185be6d6f13eabd65fb0ff328ea54f6507ccf0d4 | refs/heads/main | 2022-12-20T00:07:27.465096 | 2020-10-05T08:15:29 | 2020-10-05T08:15:29 | 300,500,699 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,177 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"dc.anh.doan@gmail.com"
] | dc.anh.doan@gmail.com |
a8293087183f630c9f5391cd02a700d45bb73826 | 86741e9f531f2aa63af682cc974ebbcc3b202e90 | /allhub/orgs/outside_collab.py | 271f42a803178931bbbcc30cb4c7be3630eceac4 | [
"Apache-2.0"
] | permissive | srinivasreddy/allhub | ccebea96a106e266743d180410ab5b16d08946fe | ff20858c9984da5c4edd5043c39eed3b6d5d693d | refs/heads/master | 2022-12-27T01:24:30.759553 | 2021-06-04T11:38:16 | 2021-06-04T11:38:16 | 204,402,796 | 2 | 2 | Apache-2.0 | 2022-12-08T07:44:11 | 2019-08-26T05:33:37 | Python | UTF-8 | Python | false | false | 1,934 | py | from allhub.response import Response
class OutsideCollabMixin:
def outside_collaborators(self, org, filter="all"):
url = "/orgs/{org}/outside_collaborators".format(org=org)
params = {"filter": filter}
self.response = Response(self.get(url, params=params), "OutsideCollaborators")
re... | [
"thatiparthysreenivas@gmail.com"
] | thatiparthysreenivas@gmail.com |
ef14d4ba87cafd6ff2c4ff08cb50abdca072db54 | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/reference_data/apps.py | 91b0f7f3222e1def7e72f0527ff02a9894867f0f | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class reference_dataConfig(AppConfig):
name = 'reference_data'
| [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
f33ef2395f417f01404c12558ae1102ad36c6cfe | eba3e4a3935d6422d1ed85aaf69337f5ba15fc74 | /transaction/transaction/tests/test_SampleDataManager.py | 38471d023bd1c6ad44580884f1e3c1a54d0a4a83 | [
"ZPL-2.1"
] | permissive | arianepaola/tg2jython | 2ae74250ca43b021323ef0951a9763712c2eb3d6 | 971b9c3eb8ca941d1797bb4b458f275bdca5a2cb | refs/heads/master | 2021-01-21T12:07:48.815690 | 2009-03-27T02:38:11 | 2009-03-27T02:38:11 | 160,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,914 | py | ##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"ariane@venus.(none)"
] | ariane@venus.(none) |
5455415a2856f9bf5908fafdbde31fe5b2f993dd | db3caf3438942838bd1b948f57cdc9dc729b1ab0 | /train_pseudo_label.py | d56ce3f53122d34c30d73df6aa6ae999f99323a6 | [] | no_license | HELL-TO-HEAVEN/iswc2020_prodcls | 711fb7506f86f887edcc712bc962d8c42259c9a0 | ef83dcd6cc7055a2edbc7628ca76a11c0a09d4bd | refs/heads/master | 2023-01-24T11:41:15.259735 | 2020-11-18T11:31:04 | 2020-11-18T11:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,073 | py | # -*- coding: utf-8 -*-
"""
@author: Alex Yang
@contact: alex.yang0326@gmail.com
@file: train.py
@time: 2020/5/21 22:06
@desc:
"""
from trainer import main
if __name__ == '__main__':
# with pseudo labeling
for n_hidden in range(1, 6):
for cv_index in range(5):
main(model_type='bert... | [
"2041462766@qq.com"
] | 2041462766@qq.com |
e8c6192655b65b861e4890a3bf014e2b0fe0bc1e | 409eb1b22020d2c766fea8aa81b2e14b9682801a | /examples/ImageProcessingAlgorithms/histogram_equalization.py | 6631fa7662968dd30abfb63794d3312cc091991d | [
"MIT"
] | permissive | peterhusisian/SUAS-Competition | 7a49f5a7a3ef13caf64222e3346b9d15d1012edc | fc31dd8de624f4a71c2c4b1bfe47a18f0b5d2f84 | refs/heads/master | 2021-06-15T23:42:35.184434 | 2017-03-05T14:51:45 | 2017-03-05T14:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import cv2
from numpy import *
"""
Histogram Equalization -- Preprocessing technique
Used to:
1) Normalize image intensity
2) Improve contrast
Requires:
1) Grayscale image
"""
def histeq(im, nbr_bins=1024):
"""
Histogram equalization of a grayscale image
"""
# Get Histogram
imhist, bins = histo... | [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
b56354241f2f773e7850e906a7ef98e21f4c716d | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_09_01_preview/operations/_bandwidth_schedules_operations.py | 9d8a3cd35b81b4dc1f6fdcc2249a708ad21323f1 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,364 | 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 may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
ca80a06859a30a09f1a829b90bfa88aec0c3e460 | fa0ee3daeed8edb10e98b6772fa39923243d53c5 | /list/list_very_hard_deepest_sublist.py | aeb2a2fc5e9e0bde17c42478cef6a9bed96df3e4 | [
"Apache-2.0"
] | permissive | ppinko/python_exercises | 8a93664b6a8fc75d1088d67cd8e5f5ba3f39364a | d4ef2ddb28834ef49ac8060ce16f6b1446b6713e | refs/heads/master | 2022-07-21T13:39:39.694515 | 2022-07-06T18:46:49 | 2022-07-06T18:46:49 | 254,176,710 | 1 | 0 | null | 2020-04-08T19:13:45 | 2020-04-08T19:05:39 | Python | UTF-8 | Python | false | false | 772 | py | """
https://edabit.com/challenge/iLLqX4nC2HT2xxg3F
"""
def deepest(L: list) -> int:
counter, ans = 0, 0
for char in str(L):
if char == '[':
counter += 1
if counter > ans:
ans = counter
elif char == ']':
counter -= 1
return ans
""" Alter... | [
"p.pinkowicz@gmail.com"
] | p.pinkowicz@gmail.com |
221b2595b26462099cc0b53e74d6aa9cb7310c9c | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /09_greedy/06_min_diff_in_heigth.py | bddbefd6066befa060e52ccef97558ab74b62775 | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # Question : Given heights of n towers and a value k. We need to either increase or decrease
# height of every tower by k (only once) where k > 0. The task is to minimize the difference
# between the heights of the longest and the shortest tower after modifications,
# and output this difference.
#
# Input : arr[] = {1... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
5f614ecde55947cd2a4c57b4fbc5a391ad6bcf84 | f490c284c0bc701bfb3768f36561a8aa9fae5607 | /src/aulas/datetime_02.py | f5536e3453114322cd75ab2d1af7de09170d154c | [] | no_license | claudimf/working_with_strings_in_python | a3db8e1beed72c5f599031bdc1cb5649636b03f9 | b533dc43fa321966717b437185d4f184d755afad | refs/heads/main | 2023-05-27T12:11:23.750110 | 2021-06-17T14:28:50 | 2021-06-17T14:28:50 | 347,091,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from functions.datas_br import DatasBr
cadastro = DatasBr()
print(cadastro.momento_cadastro)
print(cadastro.mes_cadastro())
print(cadastro.dia_semana())
| [
"claudi.freitas.prs@synergiaconsultoria.com.br"
] | claudi.freitas.prs@synergiaconsultoria.com.br |
9f7ab5e124156fb3994e47948ff7a5fbe601ba4a | 330aebe4ce7110310cccf68cfe6a4488a78f315e | /samples/PayerAuthentication/authentication-with-new-account.py | a5ab8b85fa6335e46a1bc68fbc361e4fe37e8d07 | [
"MIT"
] | permissive | shalltell/cybersource-rest-samples-python | c8afdae73af8aaa14606f989d7baea8abbf41638 | d92375fb1878ee810f4028a8850e97398533dbd0 | refs/heads/master | 2022-11-01T03:23:33.492038 | 2022-01-28T11:29:44 | 2022-01-28T11:29:44 | 222,025,982 | 0 | 0 | MIT | 2019-11-16T00:43:46 | 2019-11-16T00:43:45 | null | UTF-8 | Python | false | false | 5,158 | py | from CyberSource import *
import os
import json
from importlib.machinery import SourceFileLoader
config_file = os.path.join(os.getcwd(), "data", "Configuration.py")
configuration = SourceFileLoader("module.name", config_file).load_module()
# To delete None values in Input Request Json body
def del_none(d):
for ke... | [
"gnongsie@visa.com"
] | gnongsie@visa.com |
4a55b892442ae9b2fe5c582b58182d5b71d9faee | 6783765fc65f776e856df24557c1a58d50b70867 | /classes.py | d915b2e6cc50f0722ccf6bfb625d9441b6cb7aa2 | [] | no_license | ramadanmostafa/oop_excercise | d61478eb2e87692c73f041a7d64e8658238ec0a1 | a5c45c1bb7e06cb5af30ba25db4a8ef5739fa4a4 | refs/heads/master | 2020-03-25T12:49:03.468014 | 2018-08-06T23:51:29 | 2018-08-06T23:51:29 | 143,795,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | import uuid
class BaseClass(object):
"""
the very parent class for all classes
"""
def __init__(self):
"""construct a BaseClass object"""
self.id = str(uuid.uuid4())
class Person(BaseClass):
def __init__(self, name=''):
super(Person, self).__init__()
self.name = ... | [
"ramadankhalifamostafa@gmail.com"
] | ramadankhalifamostafa@gmail.com |
ab63cfe49692960a9d495de0645d476a22ab4173 | 1f79a6bc91714f27b5d289cd6bc03afe03fb3056 | /tfold/object_detection/models/faster_rcnn_mobilenet_v1_feature_extractor.py | 827380f3996a32a464d20b14b85ba7a4779f7ffc | [
"Apache-2.0"
] | permissive | telize-ai/tfold | 3f07da8d4b3ec660ce9d70d8e95d7d0dfc24cdac | b7e1a7ed772fb671f41d345d9bf899f85fd275fa | refs/heads/master | 2020-04-04T13:37:05.783019 | 2019-01-01T13:14:59 | 2019-01-01T13:14:59 | 155,968,585 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,651 | 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... | [
"marius@mi.www.ro"
] | marius@mi.www.ro |
8afa4298558ccf476bc66bd55e8073456571aaf6 | aa0eaae29dd7024150aad49a5799e292e69fc758 | /app/utils.py | 9c565f0d3f4cc2336b852fc9209605526c07b70f | [] | no_license | Yuhjiang/hellofamily | 6160bbb9d398a66da790a041e3c9f4d4bf93eda4 | 41fc1d4d3348736b55706f0c13655aa561a47491 | refs/heads/master | 2022-10-12T11:54:08.553338 | 2019-11-19T06:15:26 | 2019-11-19T06:15:26 | 179,979,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | """
增加常用模块
"""
import pymongo
from math import ceil
from flask import abort
def paginate(data, page=None, per_page=None):
"""
实现分页
:param: data: 查询到的数据
:param page: 当前页面
:param per_page: 每一页数据数量
:return:
"""
if page < 1:
page = 1
items = data.limit(per_page).skip((page - 1... | [
"jiang.yuhao0809@gmail.com"
] | jiang.yuhao0809@gmail.com |
afe48ff41f568593d21d1b2cf2b2b47b3ac4c2d4 | 19c3c6f7570662c4fc49ea6b2479f0ba9b5219a2 | /1milion_prime.py | 77dd1e40560b88ec9f14f9540824716320fd3471 | [] | no_license | 3974kjh/baekjoon | 138b08149a84e1d85f51ff49e70d6e040c6de530 | ba79929af69984ec0674fb37ce76018cceadcee8 | refs/heads/master | 2023-08-05T11:36:27.838122 | 2021-09-15T14:37:14 | 2021-09-15T14:37:14 | 359,791,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | print(2, end = ' ')
print(3, end = ' ')
for i in range(4, 1000000):
k = 1
count = 0
if (i % 2 != 0 and i % 3 != 0):
while (k * k <= i):
if (i % k == 0):
count+=1
k+=1
if (count == 1):
print(i, end = ' ') | [
"3974kjh@naver.com"
] | 3974kjh@naver.com |
f2156a6ea96bae28af73acc87953aa19b84827f6 | 9fe5a45f4fdec499e6f8135f5cdd053993051f54 | /event/migrations/0002_auto_20200108_1448.py | 8f3758ab552de54b699f639c8f867b825e5ae004 | [] | no_license | prography/5th-cogether-back | fba4a34e227debc6f710f047230e97d3a95ac796 | 33b9950f1a4a9b759d8967b2361c67203ca6f904 | refs/heads/master | 2020-08-30T23:00:27.186941 | 2020-02-16T05:05:09 | 2020-02-16T05:05:09 | 218,514,226 | 1 | 0 | null | 2020-02-19T15:13:20 | 2019-10-30T11:42:26 | Python | UTF-8 | Python | false | false | 3,429 | py | # Generated by Django 2.2.6 on 2020-01-08 14:48
import cogether.utils
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('event', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='P... | [
"wlckd90@gmail.com"
] | wlckd90@gmail.com |
2be28d5dfc8ccf1e53d51f677f72dece0723fc49 | 824f831ce0921b3e364060710c9e531f53e52227 | /LC-071. Simplify Path.py | 3f726a5bde63046d73bfe0b907ca18dd73bb4386 | [] | no_license | adityakverma/Interview_Prepration | e854ff92c10d05bc2c82566ea797d2ce088de00a | d08a7f728c53943e9a27c33f8e4249633a69d1a6 | refs/heads/master | 2020-04-19T19:36:06.527353 | 2019-06-15T23:02:30 | 2019-06-15T23:02:30 | 168,392,921 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py |
# Tags: Strings, Stack, FB, MS
# Given an absolute path for a file (Unix-style), simplify it.
# For example,
# path = "/home/", => "/home"
# path = "/a/./b/../../c/", => "/c"
# Corner Cases:
#
# Did you consider the case where path = "/../"?
# In this case, you should return "/".
# Another corn... | [
"noreply@github.com"
] | adityakverma.noreply@github.com |
6f5b907a624997bb2c3848d84572cdbd741a9253 | 4e44974b9e59dfd4324d84b12b10f008117814cd | /test_autofit/integration/simulator.py | 18fe9ca004ad558c9f1b0ef5ad723e95a9d50bbd | [
"MIT"
] | permissive | PriyatamNayak/PyAutoFit | 2cc2608943f8c3bdbda3b268142e7307014ccaf2 | 32c0c30acd219030c86a12db82ae54e406fd7119 | refs/heads/master | 2023-03-04T07:27:41.547966 | 2021-02-11T23:21:00 | 2021-02-11T23:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | import os
from os import path
from astropy.io import fits
from test_autofit.integration.src.model import profiles
import numpy as np
# %%
#%matplotlib inline
# %%
"""
___Simulator___
This script simulates the 1D Gaussians line profile datasets used by the integration tests.
"""
def numpy_array_1d_... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
ae6955a33b247fbc46f152b662bbca537ea06f76 | 22013212df1e21f29d0180f2109841177a2a8791 | /basic_addons/property_booking/wizard/property_booking_wizard.py | 9db70eb6205886c121cd32cfdc285f24c4bc3d56 | [] | no_license | butagreeza/DTDATA_A | f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6 | 90b09f89714349a3f26de671a440a979aeebd54c | refs/heads/master | 2023-06-18T00:41:02.521432 | 2021-06-14T21:17:06 | 2021-06-14T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,396 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details
from odoo import _, api, fields, models
from odoo.exceptions import Warning
from odoo.tools import misc
class PropertWizzard(models.TransientModel):
_name = "property.wizzard"
@api.model
def get_floor(self):
"""
... | [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
6c10eb267a6e5fedbbd89da56afd2208d63a4f19 | e40adcda596bfafba108f54d53ddab7bbefc4d6f | /accessors.py | 9a75466459194b9e17b83a03052205ec059d371e | [] | no_license | olivierverdier/charestimate | 19f36f97984b8ef6eaf847042388bc658cabea59 | e5b727e2c400d6968e08831a843926adfcb4423c | refs/heads/master | 2021-09-07T11:59:39.869090 | 2018-02-22T14:31:38 | 2018-02-22T14:31:38 | 107,237,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
def get_rigid(group_element):
return group_element[1]
def get_scale(group_element):
return group_element[0]
def create_signed_element(sign, group_element):
return (sign, group_element)
def get_sign(signed_group_element):
return signed_group_element[0]
def get_group_element(signed_group_element):
... | [
"olivier.verdier@gmail.com"
] | olivier.verdier@gmail.com |
ee1714b0fa0dd68c0bf583bd783cec9c42a42c4a | 31e32761e3572f8adeb690053ebfcc26390a87b5 | /stegno/env/bin/gifmaker.py | 293cb2be06f0ddd394ef3c45415d99203faaab9d | [] | no_license | sanshitsharma/pySamples | 738b95c758d65e3360f3ee7221591d7b78c7ba1d | ce06f1e38e0c7a142af26e8883c81b7a5dfc7edc | refs/heads/master | 2021-06-05T19:01:40.279148 | 2021-02-02T21:52:31 | 2021-02-02T21:52:31 | 110,218,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #!/Users/sansshar/Documents/python_progs/stegno/env/bin/python
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for info... | [
"sansshar@cisco.com"
] | sansshar@cisco.com |
97be2c72dae9682cce19f604739a27971689a331 | 4ee7b417b4746b04a06a3743b6a82576d34e1e59 | /tdpy/tdpyclient/partiti/sceltapartiti.py | 822913c6ee009804c476084db428f699b1e01531 | [] | no_license | matteosan1/python_code | 4d0f52382b84d784d188c2ab275dfc14783629d6 | 5bf2b3b6c1555a9e44f3c73b05207610fe6d50f4 | refs/heads/master | 2020-04-26T19:12:15.784904 | 2014-10-16T22:55:30 | 2014-10-16T22:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | from PyQt4 import Qt, QtCore, QtGui
import sceltapartiti_widget
import partitiModel, spinDelegate, comboDelegate
import sys
class sceltaPartiti(Qt.QDialog):
def __init__(self):
Qt.QDialog.__init__(self)
self.ui = sceltapartiti_widget.Ui_SceltaPartito()
self.ui.setupUi(self)
lista ... | [
"matteosan1@gmail.com"
] | matteosan1@gmail.com |
d0f98ec6afcdff4569948dffc1ebee3d1dbfa0e2 | 6d43f90a606ec7e2d398cd77226b02bdf67820a6 | /gym/tests/integration/call_agent.py | dff9fd2fceb685407029acfd6b7252521ec64e40 | [
"Apache-2.0"
] | permissive | raphaelvrosa/gym | 537437e072b2beccbbe00fd01f0a80c4342fcd5f | f1d20b444050ab0f445681ae39e93ffd44610f21 | refs/heads/master | 2021-03-16T00:56:15.152448 | 2020-11-24T19:38:21 | 2020-11-24T19:38:21 | 246,891,761 | 4 | 1 | Apache-2.0 | 2020-03-12T17:20:11 | 2020-03-12T17:20:11 | null | UTF-8 | Python | false | false | 1,814 | py | import json
import unittest
import asyncio
from grpclib.client import Channel
from google.protobuf import json_format
from gym.common.protobuf import gym_pb2
from gym.common.protobuf import gym_grpc
async def call_instruction(stub):
request = gym_pb2.Instruction()
request.id = 1
request.trial = 1
ac... | [
"raphaelvrosa@gmail.com"
] | raphaelvrosa@gmail.com |
42e7dc1b152db8bbdcd71763be5a5bda4e298dca | c6b15c628a185d9f71c91543aac3a90495152c09 | /Schulung/py01_einführung/f098_dict_operator.py | 5272d06fb9478ccd89b235847f88ec177e3426ad | [] | no_license | reichlj/PythonBsp | 3e47d3b22b75cf1f67d3e47b83b125a1ddbc518d | 51c25370495d3a8847f46a9de1bc8e0d811ae5a7 | refs/heads/master | 2021-06-12T22:32:15.365906 | 2021-05-08T20:44:01 | 2021-05-08T20:44:01 | 173,499,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | numbers = {}
numbers['one'] = 'eins'
numbers['two'] = 'zwei'
numbers['three'] = 'drei'
print(numbers)
print(len(numbers))
del numbers['two']
print('one' in numbers)
print('two' in numbers)
print('one' not in numbers)
print('two' not in numbers)
| [
"jakobreichl@gmail.com"
] | jakobreichl@gmail.com |
944663d0c6e321058c4e091eb14c336843329740 | 9ebfe211c3df4d812ae999b8fb5e402b3385acc6 | /autocomplete_light/__init__.py | ff46e9ffe270ef79d150126c934d65cac7012a89 | [
"MIT"
] | permissive | aigeano/django-autocomplete-light | 52115c3c2f45c86193758f114fcca130544dface | 3ba3859e91c2be58bff9875ccff1dca40a3a4ac0 | refs/heads/master | 2021-01-11T15:03:51.797449 | 2012-08-27T12:39:29 | 2012-08-27T12:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | """
Provide tools to enable nice autocompletes in your Django project.
"""
from .registry import AutocompleteRegistry, registry, register, autodiscover
from .autocomplete import *
from .widgets import ChoiceWidget, MultipleChoiceWidget, TextWidget
from .forms import get_widgets_dict, modelform_factory
from .generic imp... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
f10c17f9807ffb8e7028a5e1b44e27be725073b6 | 8819edd784dbdbc97318e446d9c4901f2035b3fd | /WeChatSpider/kafka/kafka_producer.py | 043891066e3cc8e5409c18f8b3001f78f9614180 | [
"BSD-3-Clause"
] | permissive | mengzxh/WeChatSpider | 8b3a0867b79e8aac26c07ce1bce2e0da6073ad7f | f95b2a2f30b29eff22162787a9311f4b72c842f8 | refs/heads/master | 2020-09-07T01:28:37.202942 | 2019-05-08T08:57:52 | 2019-05-08T08:57:52 | 220,616,040 | 1 | 0 | BSD-3-Clause | 2019-11-09T08:52:49 | 2019-11-09T08:52:48 | null | UTF-8 | Python | false | false | 1,417 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author:_defined
@Time: 2018/11/17 16:17
@Description:
"""
from kafka import (SimpleProducer, SimpleClient)
from kafka.errors import KafkaUnavailableError, FailedPayloadsError
from ..db import SpiderStatusDao
from ..config import (kafka_server, kafka_topics)
from .... | [
"1251680944@qq.com"
] | 1251680944@qq.com |
ab0f1b5b804760418685548da384b9b0f4d4d591 | 7a1f6f1aae43b219cd34c3c9b907923fb839e6f5 | /Python/Udemy/FXTRADE/pyfxtrading/pyfxtrading/21/oanda/oanda.py | 5f18af060853c78e07a161d2976864fbb7780995 | [] | no_license | amanoman/amanoman.github.io | b5afc80e0e49ed15db793e2ebf69003c05ab8ce0 | 141c928f6d1df0389859f663f6439d327d4c32d6 | refs/heads/master | 2023-05-28T07:22:09.735409 | 2021-03-31T15:00:14 | 2021-03-31T15:00:14 | 187,139,297 | 0 | 1 | null | 2023-05-22T23:37:24 | 2019-05-17T03:19:36 | Jupyter Notebook | UTF-8 | Python | false | false | 9,308 | py | from datetime import datetime
import logging
import math
import time
import dateutil.parser
from oandapyV20 import API
from oandapyV20.endpoints import accounts
from oandapyV20.endpoints import instruments
from oandapyV20.endpoints import orders
from oandapyV20.endpoints import trades
from oandapyV20.endpoints.pricing... | [
"amntkykblog@gmail.com"
] | amntkykblog@gmail.com |
907bb251b3f152677454d26f86a56371dedbb5d5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /wZQzNPXkLrHMj4mmz_9.py | bc52b9a7cdabd5f8aab980939cd9a5c674309205 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | """
Create a function that takes numbers `b` and `m` as arguments and returns the
derivative of the function `f(x)=x^b` with respect to `x` evaluated at `x=m`,
where `b` and `m` are constants.
### Examples
derivative(1, 4) ➞ 1
derivative(3, -2) ➞ 12
derivative(4, -3) ➞ -108
### Notes
`^` in... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5f26561032c185b44bc756d47b3a0e4c10e58a3c | ef90992dc00640f42ec615075a9b030b771f81e4 | /python-machine-learning/ch04/ch04-5/bmi-test.py | 26a105ce24f5d1ea5f76d197d5301483abec8bfc | [] | no_license | korea7030/pythonwork | 88f5e67b33e9143eb40f6c10311a29e08317b77e | 70741acb0477c9348ad3f1ea07a183dda82a5402 | refs/heads/master | 2023-01-08T01:47:15.141471 | 2020-09-09T13:28:20 | 2020-09-09T13:28:20 | 54,378,053 | 0 | 0 | null | 2022-12-26T20:25:43 | 2016-03-21T10:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,017 | py | # -*- coding: utf-8 -*-
from sklearn import svm, metrics
from sklearn.model_selection import train_test_split
import matplotlib.pyplot
import pandas as pd
# 키와 몸무게 데이터 읽기
tbl = pd.read_csv("bmi.csv")
# 컬럼명을 거르고 정규화
label = tbl["label"]
w = tbl["weight"] / 100 # 최대 100 kg 이라 가정
h = tbl["height"] / 200 # 최대 200cm 이라 ... | [
"korea7030@naver.com"
] | korea7030@naver.com |
d4084c787d394aa8e32e8cb2382fa7806769fe6a | 0f95b4d18a4a006fc01a1424f509935e20034292 | /news/migrations/0001_initial.py | f783de9cf2c3f6763a424c6348722c0bfcf74559 | [] | no_license | yagami-lyte/utkarsh-news | 5cbd9b574c891f207a64cebf8bd5f1fb9c3e64c4 | 0f323c9f070656bc84b3d9dd039e5bc76f5a899c | refs/heads/master | 2023-06-10T17:51:38.513453 | 2021-07-06T18:01:12 | 2021-07-06T18:01:12 | 383,455,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # Generated by Django 3.1 on 2020-09-25 08:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.AutoField(auto_... | [
"usvisen2000@gmail.com"
] | usvisen2000@gmail.com |
1892860d285be548941273a368551a47171382dc | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GData/DocumentsDocumentPrivate.py | 6a2bfb4c0684b5ffae108c167cf0b1e8b9c3a3ee | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,376 | py | # encoding: utf-8
# module gi.repository.GData
# from /usr/lib64/girepository-1.0/GData-0.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.