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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dba7969de7046503cf8be5a1ddab4c51cdfcf894 | 3b15dc211cb6c034f4d843b1bbc540f1699182f7 | /md5解密.py | e6ae37e3f183b7bfe5bde7ab169d248396b50292 | [] | no_license | Hanlen520/- | eea27d5a1272272a2f47f9070f285e44300ab0d2 | 308d3401ff368cd11f4aeac7949d57c3136f2b6e | refs/heads/master | 2023-03-15T19:18:25.168665 | 2020-07-05T14:39:41 | 2020-07-05T14:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # -*- coding: utf-8 -*-
import string
import hashlib
file = open("hello.txt", "a")
md5input = input("请输入md5:\n")
md5input = md5input.lower()
apt = string.printable[:-6]
def dfs(s, num):
m = hashlib.md5()
m.update(s)
md5temp = m.hexdigest()
if md5temp == md5input:
file.write("md5是:" + md5input... | [
"admiwj@outlook.com"
] | admiwj@outlook.com |
08ee883019be1663f6708492359b91ac290d488a | 4fa3cbe2fd0331c8b4e441ff7fca3cbf178f146e | /lectures/code/numpy_attr.py | cdab915cd0ea3a6b621c5be2edd02bb953d42f65 | [
"MIT"
] | permissive | naskoch/python_course | ee909243b5be730694b0f8a1a9f9e8722235e625 | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | refs/heads/master | 2020-04-03T09:52:45.858591 | 2016-09-26T16:44:20 | 2016-09-26T16:44:20 | 69,268,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | a = np.arange(10).reshape((2,5))
a.ndim # 2 dimension
a.shape # (2, 5) shape of array
a.size # 10 # of elements
a.T # transpose
a.dtype # data type
| [
"naskoch@stanford.edu"
] | naskoch@stanford.edu |
9280cae1fa452b9fd1eb3302d5e4d8997b6e010a | 92a2cae48545faf24e3fe197583b3b53bc95f0a2 | /py_weblogic_poc.py | efbfeeb42dc75e1521711536fe00e5e43cb0aa47 | [] | no_license | linpeng109/py_vul_20210715 | 8cccee91239e227d9b280235af2d07ffb3d440d9 | 23d4fa96a01f18611c20a0fc32dc6f83459c95ca | refs/heads/master | 2023-06-27T10:46:49.499986 | 2021-08-02T09:32:08 | 2021-08-02T09:32:08 | 391,889,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | import requests
res=requests.get()
| [
"linpeng109@aliyun.com"
] | linpeng109@aliyun.com |
899a1b50a288e922938ecb1f75f529f7c79d8693 | 0c212aa63d07e84fbad849d15f2ee6a72aea82d2 | /18-DRF/TlxyDRF/case01/migrations/0001_initial.py | 6e745a793f7c1c963ef582a2d054b117b67c6ef0 | [] | no_license | flyingtothe/Python | e55b54e1b646d391550c8ced12ee92055c902c63 | 064964cb30308a38eefa5dc3059c065fcb89dd9f | refs/heads/master | 2021-08-06T19:44:42.137076 | 2018-12-03T12:15:15 | 2018-12-03T12:15:15 | 145,518,863 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # Generated by Django 2.1.2 on 2018-11-19 03:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClassRoom',
fields=[
('id', models.AutoFiel... | [
"="
] | = |
43ee85d1d0020f03d08844e9180d2f5f49d41c6a | e187260767c99c8d5119b765e127e589823c6c11 | /exercises/ex9.py | cae8e4a9d5373c0ff2c541f22ae56be18825a24e | [] | no_license | bongadub/Python_Course | a9b11fde0b116312230ce7ce6ce9a0e54fd840e3 | 4b4556eb496068a690db74cd90e3c3c2c713b5c1 | refs/heads/master | 2020-04-02T16:42:54.583854 | 2018-11-02T07:57:00 | 2018-11-02T07:57:00 | 154,625,307 | 0 | 0 | null | 2018-10-25T10:12:29 | 2018-10-25T07:05:10 | Python | UTF-8 | Python | false | false | 373 | py | # Here's some new strange stuff, remember type it exactly
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are months: ", months
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as much... | [
"bonga@kineticskunk.com"
] | bonga@kineticskunk.com |
4c19b3794c6a878d4ca95b9999586111aea9d568 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/acupoints/xuanlu22.py | 9c0022c45df5391a7efc221c27921336c98a3c72 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'xuánlú'
CN=u'悬颅'
NAME=u'xuanlu22'
CHANNEL='gallbladder'
CHANNEL_FULLNAME='GallbladderChannelofFoot-Shaoyang'
SEQ='GB5'
if __name__ == '__main__':
pass
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
01566f12ce03db900b27913ee207ecd0d68ca87e | 0131d8d133725aed18f0a5838ec49878c0a85cfe | /opy/compiler2/symbols_test.py | 22a87b8f78dc42195f09ba7585ba3524a7a78856 | [
"Apache-2.0"
] | permissive | bysshe/oil | 0d7e853adb2aa8560832eed72daf1284955b5573 | 62cd4928c0e71f9cd254062204227a8d8cf1cb23 | refs/heads/master | 2021-01-19T23:54:01.609581 | 2017-04-17T15:58:29 | 2017-04-17T21:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #!/usr/bin/python -S
"""
symbols_test.py: Tests for symbols.py
Copied out of symbols.py. You pass this some filenames.
"""
import sys
import symtable
import unittest
from compiler2 import symbols
from compiler2 import transformer
from compiler2.transformer import parseFile
from compiler2.visitor import walk
def ... | [
"andy@oilshell.org"
] | andy@oilshell.org |
1ada6f5a8330e25292d68f7235be901d9649f5c3 | fcf71d8ed3a0d05750a0caba93f2f9cdb9ec0adc | /3.python/my_py_src_all/Eduzone/eduzoneGmm/zocbo_proc/eduzone_v2.py | c60616554c0f3cf5001acfaf0139107955691c4c | [] | no_license | handol/python_study | a6e6faeae2213a66b303524b57550c879c83c190 | 4d4cf3847c29ef363c1b8fd10bf2525d6f801ddd | refs/heads/master | 2021-01-10T21:20:31.140133 | 2013-03-28T06:30:16 | 2013-03-28T06:30:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
import os
import math
from Vector import Vector
def loadUserInfo(fname):
fp = open(fname)
userdict = {}
for line in fp:
flds = line.split(",")
if len(flds) < 2: continue
user = int(flds[0])
numcoms = int(flds[1])
userdict[user] = numcoms
fp.close()
return use... | [
"jiinhan@iMac.local"
] | jiinhan@iMac.local |
27fcf01a92260785d3d5083976937225465edae9 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/1218. Longest Arithmetic Subsequence of Given Difference.py | 693eb8af2b0dc3dd370eee6cb604e4914821d178 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import time
from util.util_list import *
from util.util_tree import *
import copy
import collections
import heapq
class Solution(object):
def longestSubsequence(self, arr, difference):
"""
:type arr: List[int]
:type difference: int
:rtype: int
"""
n =... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
d86d6a283bb2fb453ea54c2c7e4a1e6f2d0e6bd6 | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /project/project_app/migrations/0001_initial.py | 99e804a5a68426cea67e28f48e34c493380e3339 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-20 07:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Host',... | [
"475030894@qq.com"
] | 475030894@qq.com |
0d08788ffe35008b350722bba8ab193638fa377c | 0e0ec371d0afe83433602315d466ef74387d5cb9 | /casper/contracts/purity_checker.py | 1a642f1d0c7a6311604275dc305a9cf9dd2157df | [
"Unlicense"
] | permissive | emirhod/casper | 0bab68237f5af8b5680727b593cec3076bf86bc7 | e100a6ab43ffcc6852f246293c1101402c85b1f9 | refs/heads/master | 2023-08-14T20:50:31.307624 | 2019-03-28T02:20:30 | 2019-03-28T02:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,737 | py | ## This Python source code hosts the Vyper LLL used for the purity checker.
## The purity checker scans a contract's bytecode to see if it uses any operations that rely on (external) mutable state.
## This code was ported from an original written in the deprecated Serpent: https://github.com/ethereum/research/blob/mast... | [
"r.alex.stokes@gmail.com"
] | r.alex.stokes@gmail.com |
4082e19014bf04f02b61509974d6914a4b09b69a | d09e350a40c1ba78e9cdbf62edeffe3cdc3c8050 | /python/library/upload.py | ca5d72f56577d384a04ccffb5de464eab525cf70 | [] | no_license | issyu-summer/base | 18fe8907d5f1be4e34ab488ec549756f7d546e4b | c4189d17e393fe5ffe8bf601f436fd7a8b34a3f2 | refs/heads/master | 2023-06-15T04:34:33.981405 | 2021-07-16T04:12:51 | 2021-07-16T04:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | import time, datetime, random, re, os
from config.env import Env
from library.file_eo import FileEo
from library.aliyun.oss import Oss
from util.util import Util
from util.base64 import Base64
# 上传类
class Upload:
# 机器标识
machineId: str = str(Env.machine_id)
# 单文件
def File(file, params={}):
# 参数
param ... | [
"klingsoul@163.com"
] | klingsoul@163.com |
5a2133b9ad94cfa2f7b64e441f7ce65dc6274647 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/authentication/views_20210227002839.py | 5df6be32a07f0008a2a436cec3366f966cb591be | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.shortcuts import render,redirect
from django.contrib.auth import authentication,login
def login(request):
if request.method == 'POST':
name=request.POST['name']
password=request.POST['password']
return render(request,'authentication/login.html')
def registration(request):
retur... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
b0982b4bdb0919ad0301ede7ead5a39f4912160e | 6819e9344d7c48e968631c125c9c52939584167b | /utils/tail.py | e91881cb36f4ba1c25a90810ed912b72b36f252a | [] | no_license | arry-lee/chesssparrow | 28f19863fe9b1217d1e70202c36e450af935b2b3 | b8ca2fa1c8054d58fbad1386c33f0cc008373eef | refs/heads/main | 2023-08-16T22:52:43.495851 | 2021-09-16T14:30:54 | 2021-09-16T14:30:54 | 405,949,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,501 | py | from moviepy.editor import *
from PIL import Image,ImageDraw,ImageFont
import numpy as np
from pgnparser import txt2board
def board2pic(b,players = None,bg_color=(118,37,47),
background=None, fr=None, to=None, choices=None,
comment=None,rotate=False,blind=False):
frames = []
new_screen = Image.new('RGB',(... | [
"arry_lee@qq.com"
] | arry_lee@qq.com |
0e20ce31fe361b554be1bb1bfb078e8d27ea7f97 | 9816f1460de340aac3de692a780197dc62c9056c | /products_proj/manage.py | 4920fd506ceaf4328e9d2c718682f80cca9a60cd | [] | no_license | LovelyHoltz/LovelyHoltz-django_courses | eb1a72040f0afab021b2f1b252ef874e1ba15576 | 7a933e86354a7f062c02ccdb393a1080cabc4eee | refs/heads/master | 2020-03-31T15:35:36.640226 | 2018-10-09T22:36:19 | 2018-10-09T22:36:19 | 152,342,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "products_proj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"pearlholtz13@yahoo.com"
] | pearlholtz13@yahoo.com |
e690ed17293d71dcb130d4e0bcf7908a6c1adcfd | deaf519d1ee104784a56df98a7eb3705efbd1120 | /python_study/show.py | edcde8dd8e061c4f7e2d8b3fdfd6306e35bb0dbd | [] | no_license | 606keng/weeds_study | 6391fbb47fb06abf67b7651250373f169fbdfd3e | df9d96009cbdf84176efbf4b02f43cb1d5208524 | refs/heads/master | 2021-04-23T07:43:52.472097 | 2021-04-07T13:10:58 | 2021-04-07T13:10:58 | 249,910,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author:doulihang
@file: show.py
@time: 2020/07/16
@remark:
"""
import gril
def send():
print(f"show has_gril id is {id(gril.has_gril)}")
if gril.has_gril:
print("发女朋友了")
else:
print("单身贵族")
| [
"18791076614@163.com"
] | 18791076614@163.com |
e8d8947b8e2ab048a5c946898b74dfba09a99346 | 3e2bc48b1242ea3e5fadb22a62393fc954ee9be9 | /CodeForces_629_D_Babel_Cakes.py | 3c164cb5cd22bc1bcfad9a7eed5eabd3b7ab07cb | [] | no_license | Cbkhare/Challenges | 397e9c9d50f3408b7a510d68d7484a249afa1968 | 0ae57bfbb2579c8b80af8708cd408d9b858d9d28 | refs/heads/master | 2020-12-18T11:47:27.669359 | 2020-08-22T11:20:46 | 2020-08-22T11:20:58 | 40,669,940 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | from math import pi
if __name__=='__main__':
g = {} #Dictionary to store results
def bazinga(i,C):
if C=={}:
return 0
else:
k = i
if k in g:
return (g[k])
else:
p_vols = [] #possible v... | [
"chitrabasukhare89@gmail.com"
] | chitrabasukhare89@gmail.com |
b1fac9cf138ea9a6adad7486894051065cf0b561 | 5a25edcf994a760688dc7c933e8071bf4ff24df3 | /exercises/ja/exc_01_08_01.py | 3a25621aa4af33a555e97bc03a542976561eae25 | [
"CC-BY-NC-4.0",
"MIT"
] | permissive | heyMP/spacy-course | 8762990ed6179011680730d9c24d5d34c0a8d954 | 3740c717f0d1090b01c1b0fe23f8e30af3bf0101 | refs/heads/master | 2022-11-07T21:52:15.479840 | 2020-06-25T18:13:44 | 2020-06-25T18:13:44 | 275,202,487 | 1 | 0 | MIT | 2020-06-26T16:39:32 | 2020-06-26T16:39:31 | null | UTF-8 | Python | false | false | 468 | py | import spacy
nlp = spacy.load("en_core_web_sm")
text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value"
# テキストを処理
doc = ____
for token in doc:
# トークンの文字列、品詞タグ、依存関係ラベルを取得
token_text = ____.____
token_pos = ____.____
token_dep = ____.____
# フォーマットしてプリント
... | [
"tamuhey@gmail.com"
] | tamuhey@gmail.com |
be1d09a3d7f9177a437bfa4c6d6a54306813bf90 | 9d329940311cfd1a6ea822dd89cc8aafba304bd0 | /senstest.py | 179eb6905c4f51b6f14f0cc2cda85f8dac0e017d | [] | no_license | sona1111/car2 | 59aadac63e410ac22dd65bf181b0c4bcfa365346 | dd9252776996e7980e18ee723a393d0bc58aca5a | refs/heads/master | 2021-01-19T08:49:08.165332 | 2015-01-29T18:40:09 | 2015-01-29T18:40:09 | 30,036,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import RPi.GPIO as GPIO
from threading import Thread
# Which GPIO's are used [0]=BCM Port Number [1]=BCM Name [2]=Use [3]=Pin
# ----------------------------------------------------------------------
arrgpio = [(17,"GPIO0","Echo",11),(18,"GPIO7","Trig",12)]
ar... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
d92ab1de6ef77d4b45aa812543a1c7cb896a94a8 | d8fe787569b6bfbff06c7e70a8f0489779087b6f | /SBaaS_statistics/stage02_quantification_analysis_io.py | 6d44bdd220db69e95ae51daecccf83658f568bdf | [
"MIT"
] | permissive | dmccloskey/SBaaS_statistics | d1bb8947cbbd2b656cc232398037c5d47c65d273 | cb380c01d2425d0db7e305cad8bad2b3fb38cd9d | refs/heads/master | 2023-01-23T21:27:29.616143 | 2017-09-30T10:49:13 | 2017-09-30T10:49:13 | 51,103,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from .stage02_quantification_analysis_query import stage02_quantification_analysis_query
from SBaaS_base.sbaas_template_io import sbaas_template_io
# Resources
from io_utilities.base_importData import base_importData
from io_utilities.base_exportData import base_exportData
class stage02_quantification_analysis_io(stag... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
09def5ff63392ac048495c2f89ea0569b5d3ba9a | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /byceps/services/ticketing/models/ticket_bundle.py | e422c433232801b09077ad28992e63f0a22b70d3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | """
byceps.services.ticketing.models.ticket_bundle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import datetime
from ....database import db, generate_uuid
from ....typing import UserID
from ....util.instan... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
ba42d7134fc4a58824be4924f0acbc9e98109b3a | 656df056ad736fdaaa1ef428ef09786c5a3d1494 | /codigo/m5stack/BME280_test.py | b0e2bc18004160d69dd01af797995b206198f7ff | [] | no_license | javacasm/micropythonTutorial | a610024096b50512347bcb72937facd41cf6db8e | cc90e26763ef884e0311eecccc6c72c6c94a0a30 | refs/heads/master | 2022-02-03T20:06:10.315551 | 2022-01-25T11:02:09 | 2022-01-25T11:02:09 | 159,473,846 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | ## Medida de temperatura, humedad y presion ocn sensor BME280 ma
import machine # Usaremos los pines y el I2C
import BME280 # Importamos la clase BME280
from m5stack import *
from m5ui import *
v = 0.7
def testBME280():
i2c = machine.I2C(sda = machine.Pin(21),scl = machine.Pin(22)) # configuramos el acceso al b... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
6fdb1913f6c53d24b2458ea081a3320ea11da483 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network800_1.py | b70eff8f123014a97b841f53b745db4233023c58 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 60,337 | py | species(
label = '[CH2]C(CCC)O[CH]C(1216)',
structure = SMILES('[CH2]C(CCC)O[CH]C'),
E0 = (35.7015,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2783.33,2816.67,2850,1425,1450,1225,1275,1270,1340,700,800,300,400,3025,407.5,1350,352.5,1380,1390,370,380,2900,435,3000,3100,440,815,1455... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
f4d5e723e9dcbbb04f09915e66e4ac0b5daea7e4 | 8009cf908c1968be35b4a6e6ecaef111b7c0faf6 | /src/you_get/downloader/__init__.py | 0b85ad8a093d6caa26c82eb0d53f3eda273ae982 | [
"MIT"
] | permissive | saggit/you-get | 38a870dcaa904d9f23bc085d99cfe86a56f8f476 | 2b637b68c547127ba790950fddcaef6f0157de54 | refs/heads/master | 2020-12-25T01:32:06.286698 | 2013-06-04T22:18:44 | 2013-06-04T22:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
from .acfun import *
from .baidu import *
from .bilibili import *
from .blip import *
from .cntv import *
from .coursera import *
from .dailymotion import *
from .douban import *
from .facebook import *
from .freesound import *
from .google import *
from .ifeng import *
from .iqiyi import *
from ... | [
"mort.yao@gmail.com"
] | mort.yao@gmail.com |
97682bb9f89d937c4cd3949619d587814aa5ea31 | f26af24795d913a4dd17f467052255d256c95032 | /apps/product/models.py | 4855880e5609a47b78cf7d0942fedbe48f30a003 | [] | no_license | minimedj/3dhero.ru | ccbd8d5d37fe149e6194457e66cfc338afe21bd6 | 5790f448fe03eecf79760c2e73154f0831abaf54 | refs/heads/master | 2021-01-22T21:08:00.632873 | 2016-03-28T13:11:26 | 2016-03-28T13:11:26 | 85,397,391 | 1 | 0 | null | 2017-03-18T11:49:44 | 2017-03-18T11:49:44 | null | UTF-8 | Python | false | false | 14,570 | py | # -*- coding: utf-8 -*-
import re
from google.appengine.ext import ndb
from google.appengine.api import memcache
from google.appengine.api.taskqueue import taskqueue
from flask import url_for, session
from werkzeug.wrappers import cached_property
from werkzeug import urls as wurls
import mistune
from util import uui... | [
"serg.baburin@gmail.com"
] | serg.baburin@gmail.com |
eb64f6652690c65a7431bbd315407b7860231e52 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/eyrros001/question2.py | 1de8ac711280dd175f4e2da2130ca6b6dce5f7af | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among the options.")
a = input("Did anyone see you? (yes/no)\n").lower()
eat = False
call = False
if a[0]=='y':
a = input("Was it a boss/lover/parent? (yes... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
5f9441adb4ae2ffaafc32a31d168e606e394bf11 | 0a33cc0ebb67c51cc38750f0f04c3e6c088e3b1a | /homeassistant/components/sonos/speaker.py | 4435a65db3d39991cf3b70e547d32b1bb33aa116 | [
"Apache-2.0"
] | permissive | robert-alfaro/home-assistant | e9bb08ad22a167ed226fb3de8f5b36acfc393548 | 4a53121b58b77a318f08c64ad2c5372a16b800e0 | refs/heads/dev | 2023-02-28T06:46:23.217246 | 2022-04-26T17:30:08 | 2022-04-26T17:30:08 | 115,894,662 | 4 | 0 | Apache-2.0 | 2023-02-22T06:21:08 | 2018-01-01T02:00:35 | Python | UTF-8 | Python | false | false | 38,377 | py | """Base class for common speaker tasks."""
from __future__ import annotations
import asyncio
from collections.abc import Callable, Coroutine
import contextlib
import datetime
from functools import partial
import logging
import time
from typing import Any
import async_timeout
import defusedxml.ElementTree as ET
from s... | [
"noreply@github.com"
] | robert-alfaro.noreply@github.com |
fd9be4ec83b4a1e855d9bc50239ad98ddd402344 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02630/s916282817.py | 4424deb1cb800811643e4d58d83127e634dd209f | [] | 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 | 301 | py | from collections import defaultdict
N = int(input())
li = [int(x) for x in input().split()]
Q = int(input())
d = defaultdict(int)
for i in li:
d[i] += 1
ans = sum(li)
for i in range(Q):
B, C = map(int, input().split())
ans += (C - B) * d[B]
d[C] += d[B]
d[B] = 0
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16ac619c96d0966ad113056dcc9681810007b380 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03043/s527389795.py | 9f3a7eeedddcf95244075199188cac8cb409a3bf | [] | 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 | 205 | py | n, k = map(int, input().split())
import math
ans = 0
for i in range(1, n+1):
if i < k:
power = math.ceil(math.log2(k/i))
else:
power = 0
ans += pow(0.5, power)
print(ans / n) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2c4883f142af6e45127bab566fc6d3bfc217acc | 1fa87e282cfc2fef9dac8e1fba042a88654cf425 | /examples/rtm_http_start.py | 987143f333fa10c8dcab021b7125a1dc443ba07d | [
"MIT"
] | permissive | mozillazg/aiobearychat | 1bfabe1f34b06946f484fe6139f4cf57484a351f | 4dd5771004ceb0d563b7c9615b33c1fafbc0a219 | refs/heads/master | 2023-09-01T20:44:38.751139 | 2017-08-27T03:22:17 | 2017-08-27T03:22:17 | 100,842,390 | 2 | 0 | null | 2017-08-25T23:45:23 | 2017-08-20T06:13:53 | Python | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
"""获取 RTM 模式的连接地址和用户信息"""
import asyncio
import os
from pprint import pprint
import aiohttp
from aiobearychat.rtm.aiohttp import RtmAPI
async def main(token):
async with aiohttp.ClientSession() as session:
api = RtmAPI(session, token=token)
response = await api.start()
... | [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
e0e01510152cbe2f4701c0c1b7329c1093bafe8f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03062/s576505293.py | d300446c333a7e76f658433b57df9331d029f926 | [] | 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 | 422 | py | N=int(input())
A=list(map(int,input().split()))
A.sort()
count=0
zer=0
for i in range(N):
if A[i]<0:
count+=1
if A[i]==0:
zer+=1
ans=0
if zer!=0:
for i in range(N):
if A[i]<0:
A[i]=-A[i]
ans+=A[i]
else:
if count%2==0:
for i in range(N):
if A[i]<0:
A[i]=-A[i]
ans+=A[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2dacc54eb39aca32c263a2bdd10bfbf330ab36f | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_120/run_cfg.py | 7d34c93a4fbcb8b9d184cb1907428a3fa3f67991 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
7b761d5f1f645422acc8c23d90fe00328557a219 | 3431aa0a966505c601171393e9edcd2345813268 | /analysis/tbd/xi-jack.py | 0f1d76f799dd14034ceefd9228ab06ae6033be04 | [
"MIT"
] | permissive | mehdirezaie/LSSutils | 34eeeb6efbf2b5c4c0c336c1f9f2fabc821def39 | af4697d9f4b4fc4dbab44787108d7aa538ca846d | refs/heads/master | 2023-08-17T17:58:03.310073 | 2023-08-16T11:29:23 | 2023-08-16T11:29:23 | 200,747,239 | 3 | 0 | MIT | 2021-11-09T15:12:30 | 2019-08-06T00:25:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,549 | py | '''
code that calculates the auto/cross correlation functions
using healpix based estimator
created 4/3/2018 - Mehdi Rezaie
'''
import os
import sys
sys.path.append('/global/homes/m/mehdi/github/DESILSS')
import xi
import numpy as np
import healpy as hp
import fitsio as ft
from time import time
from a... | [
"medirz90@icloud.com"
] | medirz90@icloud.com |
185c53863f0b109e4ede9225bc3c64cf7a6e8e5d | 7dd2c86659d5b78663517aec8c77866079456509 | /src/warhammer/unit.py | a61628f1bd2b7d147cd475f0be5b9d59c0f05deb | [
"MIT"
] | permissive | Peilonrayz/warhammer | 8c0270627d22aa893397066909200e2f54ea0e90 | 76610bf3c64418f914efb9ff3336daacdd6c5c4c | refs/heads/master | 2021-01-09T13:40:15.358542 | 2020-02-22T09:56:44 | 2020-02-22T09:56:44 | 242,322,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from __future__ import annotations
import functools
import numbers
import operator
from typing import Optional, Union
from . import item_amount, models, unit_attack
TModel = Union[models.Model, models.ModelWrapper]
Number = numbers.Real
class Unit(item_amount.ItemAmount[TModel]):
def __str__(self) -> str:
... | [
"peilonrayz@gmail.com"
] | peilonrayz@gmail.com |
ce3c4794cfe793d0bff5347ed4a3aacb89ba75e4 | 526986209fbf00e85c98648600f5f58575d54096 | /messages/pylint/R0915.py | dd7d8fb81dc94dd6eaf7442a3f238a56c76ae764 | [
"Unlicense"
] | permissive | landscape-test/all-messages | 126b67d2fc395018121a40787ca92762a03f4873 | f349ac581f3a149b30591d7a9149629b9bf539cb | refs/heads/master | 2020-06-02T08:36:53.946720 | 2014-01-10T06:36:05 | 2014-01-10T06:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | """
R0915
Too many statements
"""
| [
"git@carlcrowder.com"
] | git@carlcrowder.com |
297b1b879e41c1d1d447170581c76294e9acbaa3 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_06_01/aio/operations/_local_network_gateways_operations.py | 0babe3cd6d8a5b2bc3720a65730fe8f9a0550245 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 20,617 | 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"
] | manoj0806.noreply@github.com |
18fe25d669706984e167fa3587dc49c03a79d247 | f8eb63aafff0dd1a27cd5af7b82e6d85f6768d33 | /Algorithm/BOJ/flip.py | 3b083f0d15826881a98229d4ff252df68f82096b | [] | no_license | Lagom92/TIL | 1e982fb12c34ea8ef2c4d17ea734551c2acaa7fe | dd47672f14e6e108afa7988887304c05b27afbd9 | refs/heads/master | 2022-09-22T20:38:27.557064 | 2022-08-31T07:10:12 | 2022-08-31T07:10:12 | 220,413,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # 백준 1439번 뒤집기
# https://www.acmicpc.net/problem/1439
'''
1 => 0 으로 또는 0 => 1으로 변경하는것
포인트
첫번째 값이 무엇인지(0 or 1)
1에서 0으로 바뀌거나 0에서 1로 바뀌는 횟수
'''
S = input()
print(S)
# 전부 0로 만드는 경우
cnt0 = 0
# 전부 1로 만드는 경우
cnt1 = 0
# 첫 번째 값을 바꿔주는 것
if S[0] == '0':
cnt1 += 1
else:
cnt0 += 1
for i in range(len(S)-1):
if S[i]... | [
"jyyt0147@gmail.com"
] | jyyt0147@gmail.com |
9d592c28ab7e3b15ac558aac8daa8b409df95236 | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /vault/datadog_checks/vault/config_models/instance.py | 168b94d3fa87b748a78be7714d8a5d31c28a9c33 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 3,046 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from __future__ import annotations
from typing import Any, Mapping, Optional, Sequence
from pydantic import BaseModel, root_validator, validator
from datadog_checks.base.utils.functions import identity
... | [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
9739cbb0b1c4248c85ba62d19a3aad61b33a3889 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/96/usersdata/218/54633/submittedfiles/estatistica.py | 4fab4e32e4fb3497717a5179ebfe7d773740b4ac | [] | 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 | 956 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio(lista):
soma=0
for i in range(0,len(l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f92862395c8299eea8a38c6b2d907aca7defdbe8 | 6e210a6ff416b490df7e198f6364793f8eade7bd | /VersionInc.py | c165cee632e5ed9f1b643c4536026685344d741b | [] | no_license | MCasari-PMEL/Test | 96bab7ffe8a0efbceb25bdc3ed2b1cd92c934685 | fce282999e1bec86a9307b19bffa0a301ead4279 | refs/heads/master | 2021-01-12T05:38:34.131595 | 2016-12-22T17:43:44 | 2016-12-22T17:43:44 | 77,159,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | #version number update script
'''
---------version number format---------
major.minor.version.build
major number
0 - Alpha
1 - Beta
2 - Release candidate
3 - Release version
minor number
0 - Initial
version
Github version number increment
build
build/make increment number
... | [
"matthew.casari@noaa.gov"
] | matthew.casari@noaa.gov |
c10f131927bbc60f53589f5f3de5bcb3b788234a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03079/s783155441.py | 809fcc126f27f75e3847a15f19e2e350a1f62c53 | [] | 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 | 197 | py | import numpy as np
import sys
A, B, C = map(int, input().split(" "))
if A == B and B == C:
sys.stdout.write("Yes")
sys.stdout.flush()
else:
sys.stdout.write("No")
sys.stdout.flush() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
deaca7129c2009240154301fe45c152a6f226aa7 | b005e6bcc39971cc117433ba1056dab7e636b2d0 | /pytorch_translate/transformer.py | e01e2a2c8bf2887e27f4a8fa8091ae25185217e6 | [
"BSD-3-Clause"
] | permissive | Pandinosaurus/translate | f3df8a24b6ec58152d42cedeebaf2dde09b561e9 | b89dc35abeb7fe516e3b95ccacdedfc1a92e5626 | refs/heads/master | 2022-06-16T15:57:53.629945 | 2022-06-10T23:04:56 | 2022-06-10T23:04:56 | 196,394,076 | 0 | 0 | BSD-3-Clause | 2022-06-11T12:03:46 | 2019-07-11T12:52:52 | Python | UTF-8 | Python | false | false | 36,231 | py | #!/usr/bin/env python3
import math
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from fairseq import options, utils
from fairseq.models import (
FairseqEncoder,
FairseqEncoderDecoderModel,
FairseqIncrementalDecoder,
register_model,
register_model_architecture,
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
946e8579c80310ccdf494643a149726cce1219b2 | 5780a36bc8799a1703879de6012bb6bcb025720a | /Medium/pairAndSum/pairAndSum.py3 | bdf4d0bfa7fd481306b9dc9b28805b3fd17e0f38 | [] | no_license | bsuverzabaek/Code-Chef-Exercises | 4da9dfcabd6c37ea94239a307ba3f6b54e2d1ae0 | a3f23dc9fa0c0a92fc2df3592473102e03b06fad | refs/heads/main | 2023-08-11T14:21:13.832378 | 2021-09-20T06:01:43 | 2021-09-20T06:01:43 | 323,809,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py3 | def choose2(n):
r = n
return (r*(r-1))>>1
N = int(input())
assert(N<=100000), "N must be <= 10^5"
bitCounts = [0]*32
x = (list(map(int,input().split())))[:N]
for i in range(0,N):
assert(x[i]<=1000000000), "A["+str(i)+"] must be <= 10^9"
for j in range(0,32):
if ((x[i]&1)!=0):
bitCounts[j] += 1
x[i] >... | [
"noreply@github.com"
] | bsuverzabaek.noreply@github.com |
4131c660e49e3a5739f3499ffb9c0010903715ac | 616d9742dc2120500684ed093d28883c53a5be6b | /scripts/dataGenerator.py | fb7576549b2b828a78fb8159a5c153c38ca88b78 | [] | no_license | jamesmf/molecularFormula | e4f6b1d115fc9513137e8e31e9c537ca90b4b03d | d0156acc0533330398114c819d9451d1b04d2276 | refs/heads/master | 2021-01-10T10:33:21.896065 | 2016-01-29T21:33:37 | 2016-01-29T21:33:37 | 44,991,127 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 11 14:57:12 2015
@author: test
"""
"""create a service that keeps a folder full of randomly generated images"""
from os import listdir
from os.path import isdir
from os import mkdir
from os.path import isfile
from random import shuffle
import sys
import time
import hel... | [
"jamesmfrick@gmail.com"
] | jamesmfrick@gmail.com |
a304338c9458022b1568b5d479cc8c7da1bc692d | fc0216a1a09c53d079d5093d94ab9205b911a082 | /django_comments_xtd/tests/forms.py | 3e0081c24534f453170c91f4895d0e38a5d1ad3d | [
"BSD-2-Clause"
] | permissive | b-dev/django-comments-xtd | cd4ccafe8532eb52e9c40643b195cb09dd159a65 | 95085d8a3378f0f6bb453137044fdc3e7156c0cf | refs/heads/master | 2020-12-27T15:20:19.352568 | 2013-11-27T15:38:35 | 2013-11-27T15:38:35 | 14,751,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | from django.test import TestCase
from django.contrib import comments
from django_comments_xtd.models import TmpXtdComment
from django_comments_xtd.forms import XtdCommentForm
from django_comments_xtd.tests.models import Article
class GetFormTestCase(TestCase):
def test_get_form(self):
# check function d... | [
"danirus@eml.cc"
] | danirus@eml.cc |
901803ead0a61b6e504548b407aeee271e72cfb8 | 6a3af6fe669b2e17db1fa7d0751cbc4e04948079 | /fn_proofpoint_tap/fn_proofpoint_tap/components/fn_pp_threat_polling.py | 7a3bd7433b7130f7fa8d1397c1540f0858326f30 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jjfallete/resilient-community-apps | 5f0a728fe0be958acc44d982bf0289959f84aa20 | 2e3c4b6102555517bad22bf87fa4a06341714166 | refs/heads/master | 2022-04-17T13:20:36.961976 | 2020-04-13T07:03:54 | 2020-04-13T07:03:54 | 169,295,943 | 1 | 0 | MIT | 2020-04-13T07:03:56 | 2019-02-05T19:06:57 | Python | UTF-8 | Python | false | false | 25,047 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved.
"""Polling implementation"""
import calendar
import logging
import os
import time
from datetime import datetime
from threading import Thread
import jinja2
from resilient_circuits i... | [
"ihor.husar@ibm.com"
] | ihor.husar@ibm.com |
5d0b589306b4380fa20dbef64bf0736579ff44e6 | 2fa29850a978d2077968f01e73a856d3a428a91f | /project/services.py | 73e33b80720a5cc4a53bd2a2cbdc61cc8472e806 | [] | no_license | pybites/stripe-mock | 7e56c87c369649e7b08c5e9b621f0b54af2302b5 | 5939d006466affda97f2bf67451a7df3dfeb067f | refs/heads/master | 2023-01-28T21:58:16.077613 | 2020-12-08T18:13:06 | 2020-12-08T18:13:06 | 319,721,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from . import stripe
def create_customer(name=None):
name = name if name else 'Stranger'
customer = stripe.Customer.create(name=name)
return customer
| [
"bobbelderbos@gmail.com"
] | bobbelderbos@gmail.com |
4522bef4b905a5a0d7635c40cfb1b3df38f2b276 | 4273f162abb12ef1939271c2aabee9547ac6afee | /katana_tutorials/pipe/core/__init__.py | 199582cbfef236b37fa3f57cd1466c48734de123 | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | print 'welcome to katana python tutorial' | [
"sid@localhost.localdomain"
] | sid@localhost.localdomain |
987763397dfc5ae2ee01b7cf2b1453a5198f5f0f | 236ded75aefcf965c582538f1b56d21b161cd3c5 | /ethpki-Criptografado/testDir/callct618.py | 3622b229524d2cbf07e1a79a90d89b53fd54cca3 | [] | no_license | rogerioita/ICPChain | 7fc1c7c5df289ed31fd2ad71cee400eac3d253cb | 87f2b001f5297396be6cb3aa9dd0c42236587038 | refs/heads/master | 2023-03-10T20:57:49.479052 | 2021-02-16T16:27:23 | 2021-02-16T16:27:23 | 336,806,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #!/usr/bin/env python
import os
os.system('node ct618.js')
| [
"rogerio.santos@ga.ita.br"
] | rogerio.santos@ga.ita.br |
6be094b5a73aa1eec3e84c7f611b5a180ab1761c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/11114042.py | 5480ad4a64428d02d8995f8eaf378917c3e221df | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11114042.py generated: Fri, 27 Mar 2015 16:10:05
#
# Event Type: 11114042
#
# ASCII decay Descriptor: [B0 -> mu+ mu- mu+ mu-]cc
#
from Configurables import Generation
Generation().EventType = 11114042
Generation().SampleGenerationTool = "SignalRepeatedHad... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
0ee759aab67a2b9201735ba467c38096b53d7df4 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/151.reverse-words-in-a-string/151.reverse-words-in-a-string.py | b09f7f2b40026b85a6090f79e9d770f396633879 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | class Solution:
def reverseWords(self, s: str) -> str:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
7bf0d2a4c7b6bbb7c1ffa82e9708adfc02934198 | 6e060e9730b58e4d7819335438f915179504e72c | /sale_order_control/sale_order_control.py | a226e4f1256929b41d73a2284417a826d693e6ed | [] | no_license | missionpetroleumgit/addons_missiongit | 4dcdf1d0e79da982670c573d59574a939d1636c0 | 714514719d5d4d96f371dd529a70ac282070c43b | refs/heads/master | 2023-03-10T20:34:10.154050 | 2021-02-24T23:50:20 | 2021-02-24T23:50:20 | 342,027,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
from openerp import api, fields, models, _
from openerp.exceptions import except_orm
class SaleOrder(models.Model):
_inherit = 'sale.order'
SaleOrder()
| [
"daldaz@mission-petroleum.com"
] | daldaz@mission-petroleum.com |
15316deb0ee2b3439d6e74a8e239a11bfef8016d | 58e15fca047ece58bfa391a6efb88ec1b46997b2 | /venv/lib/python3.8/site-packages/selenium/webdriver/common/devtools/v85/debugger.py | 9817990b6eb87ecf7c8da0774c8e7a041f97cc22 | [] | no_license | su2708/WebScraper | 6594f102336de0bb0ebc2c3feafdb4d87da52ad3 | a084afce4a8dacb4d4beb43924aa85a831c3b4ec | refs/heads/main | 2023-02-20T15:43:37.246448 | 2023-01-15T17:26:28 | 2023-01-15T17:26:28 | 323,025,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/4f/2c/6e/8ba06fd5b85dc09dabb1b24d7ae5bc6a6937e789443ad58580b8b09d8e | [
"46125751+su2708@users.noreply.github.com"
] | 46125751+su2708@users.noreply.github.com |
8a0e02fcc0718d3da2f5ece8c47f18c110968d5f | bff706dc4ce7552200e1d515afa9f0c461eb18a5 | /AL_core_vs_coat_hexbin_long_interval.py | 2c2606f7896e86739bd461c292755e7f07334780 | [
"MIT"
] | permissive | annahs/atmos_research | 1fffc24d43ddacf460a6d16f0b5264e6692023c5 | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | refs/heads/master | 2020-12-25T16:59:30.261245 | 2016-08-10T20:47:59 | 2016-08-10T20:47:59 | 32,475,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | import sys
import os
import numpy as np
from pprint import pprint
from datetime import datetime
from datetime import timedelta
import mysql.connector
import math
import matplotlib.pyplot as plt
import matplotlib.colors
import matplotlib.cm as cm
from matplotlib import dates
import calendar
#database connection
cnx = ... | [
"sarah.hanna@gmail.com"
] | sarah.hanna@gmail.com |
b9ee84c23711fff422c820c4e6f6974f213ade03 | 906171cc2ff7a669149d807c0e6d6db3fbea5f91 | /python learning/others/super.py | 7e6caa592328e1ffa69d7e7856a286115693ebf4 | [] | no_license | Deanhz/normal_works | a2942e9eab9b51d190039b659b6924fe2fba7ae9 | 7ae3d5b121bb7af38e3c7e6330ce8ff78ceaadb1 | refs/heads/master | 2020-03-25T20:51:02.835663 | 2019-02-18T16:34:44 | 2019-02-18T16:34:44 | 144,149,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 23 10:18:22 2018
@author: Dean
"""
class Bird:
def __init__(self):
self.hungry = True
def eat(self):
if self.hungry:
print("eating...")
self.hungry = False
else:
print("no thanks")
class SongBird(Bird):... | [
"258796762@qq.com"
] | 258796762@qq.com |
2f5e6212a89b6edca74971d5210ec0f2add1a0e3 | bb4dc40ec0b62e5d2fc3ce1234013aebd4e648d5 | /src/modules/customised/payroll_test_2/payroll_copy/hr_payroll_ota/tests/tests.py | a4686e3cb5a829944e7bea910d1c37bea1d75194 | [] | no_license | kakamble-aiims/work | ba6cbaf4c525ff7bc28d0a407f16c829d0c35983 | cd392bf0e80d71c4742568e9c1dd5e5211da56a9 | refs/heads/master | 2022-04-02T14:45:58.515014 | 2019-12-31T14:00:51 | 2019-12-31T14:00:51 | 199,015,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
class HrPayrollOtaTestCase(ModuleTestCase):
'Test Hr Payroll OTA ... | [
"kakamble.aiims@gmail.com"
] | kakamble.aiims@gmail.com |
70f5d8a5281feb8772555711090b587a5db66ce9 | a5e435b14b2022d199ec0e7605c690c085c097f3 | /mysite/blog/models.py | 0d579c924f1a64686ad361b6a92cadc0314d65ab | [] | no_license | Akhtyrtsev/blog | 1e046c192556c90ea1a014f4afe02e127ab7c325 | 3fc44b3b4533d510c15d080960f2816b4e6666f9 | refs/heads/master | 2020-06-30T14:01:44.230750 | 2019-08-12T11:14:39 | 2019-08-12T11:14:39 | 200,848,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from taggit.managers import TaggableManager
class PublishedManager(models.Manager):
def get_queryset(self):
return super(PublishedManager, self).get_queryset().filter(... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
2217ca6d55bddb5ae053aa2667c3df49a376babf | a939ec03a7eb31962817d6cffea7f125ea4d69db | /django_template_tag/bin/django-admin.py | 37e0bd52b031b55d0a65340e58dc31c2af5bbea8 | [] | no_license | dipayandutta/python3 | e21e50d7a21315bc63702a103af79f3d61d91ab1 | f3d01ea52d05a23103cf86afbf5dff64a5d36634 | refs/heads/master | 2022-12-10T09:13:04.967400 | 2021-07-25T15:20:40 | 2021-07-25T15:20:40 | 153,072,927 | 0 | 0 | null | 2022-11-22T02:24:01 | 2018-10-15T07:46:28 | Python | UTF-8 | Python | false | false | 161 | py | #!/work/python/python3/django_template_tag/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"inbox.dipayan@gmail.com"
] | inbox.dipayan@gmail.com |
3ff3234f09a006b32eaa57943f10f6e49a872807 | 4b8b0be0588f9e5249729f165b72a6b38324837d | /scripts/install_dependencies.py | 4ad45cc72df3b2cde4cf35bb1eaa531f04797fb7 | [] | no_license | GlycReSoft2/embed_tandem_ms_classifier | 5e2f569f2b74f2f14f1c1c0cede32de99c150890 | 0495f2234562a9c5dd02d545800c077df2305387 | refs/heads/master | 2020-06-02T09:32:55.457664 | 2015-06-20T21:30:19 | 2015-06-20T21:30:19 | 22,615,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import argparse
import os
import sys
import subprocess
try:
from urllib.request import urlopen
from urllib.error import URLError, HTTPError
except ImportError:
from urllib2 import urlopen, URLError, HTTPError
interpreter_path = sys.executable
pip_bootstrap_url = "https://bootstrap.pypa.io/get-pip.py"
dep... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
3fbf8cf00ee67bad387b0f3f890daf7b33961179 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003/Gather2_W_fixGood_C_change/ep0_test/pyr_1s/L8/step10_a.py | 42661e514d59d69f713324d989c3b854d787c178 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,494 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
528022f18b9b4081e5fad72421e3e32c5458e206 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/stupiding_kaggle_EEG/kaggle_EEG-master/models/fake_shuffle_len4096_bs_c1r4p5_f9n128r35p2.py | 25c28149d42b6ee2ead41f6ff1d8cded801e1358 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 15,894 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
from lasagne.layers import dnn
from batch_norm import BatchNormLayer
import metrics
import time
rs = T.shared_randomstreams.RandomStreams()
rs.seed(int(time.time()))
data_path = 'eeg_train.npy'
train_series = [0, 5, 4, 1, 7, 6, 2, 3]
vali... | [
"659338505@qq.com"
] | 659338505@qq.com |
4e0db41fc27876ee65164358de5d65363f5e151d | c8c8c300e574e489aa6b860d3cd4cca51f8258ca | /tensorflow/python/kernel_tests/resource_variable_ops_test.py | eedc2d263d70dfb4e0ec33c866f03a607dbd3cdc | [
"Apache-2.0"
] | permissive | wcjb/tensorflow | c48f39b9241d4eba29b5e75168921ed7765e31fb | 3affd7655e2318d3b12c9513fbacd6aae796c192 | refs/heads/master | 2020-04-07T11:20:46.645171 | 2018-11-20T02:02:45 | 2018-11-20T02:08:57 | 158,322,279 | 1 | 0 | Apache-2.0 | 2018-11-20T02:55:55 | 2018-11-20T02:55:54 | null | UTF-8 | Python | false | false | 42,136 | py | # Copyright 2016 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
68068edeebca9e5cb4573e8fbd1f74215e5cd71d | b248a0a1f51ded67c7637839b23f4e1f47c3d245 | /reverseString.py | 4988b680fa2acd2eecb5d1c6b636f7121b1e3393 | [] | no_license | gauravaror/programming | 1bfe61136d93571a4f77d5443a642e1a0ffb1e86 | afc5a08cd538c45e075fc6c479c255b3596d7ac5 | refs/heads/master | 2022-03-16T07:55:54.257609 | 2022-03-13T06:03:05 | 2022-03-13T06:03:05 | 229,214,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
start = 0
end = len(s) - 1
while start < end:
tmp = s[start]
s[start] = s[end]
s[end] = tmp
start... | [
"gauravarora.daiict@gmail.com"
] | gauravarora.daiict@gmail.com |
9a5dd1dad301fde4dbe0adf34743dded2fc34257 | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/Login/XiaMenBoFuLiAsset.py | cba350ddd47d854bd4a40123a8ece2daed6afae2 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | from datetime import datetime
from scrapy import Request,FormRequest
from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
import re
import json
import hashlib
class XiaMenBoFuLiAssetSpider(GGFundNavSpider):
name = 'FundNav_XiaMenBoFuLiAsset'
sitename = '厦门博孚利资产'
channel = '投... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
c1811daab9449cecb66b04787f9fca73487b1b3d | e1e9885fcc748222ab2c2400c6fd9267fc432f78 | /venue/views.py | e0ec7762eebb9234eb19ce135f71bc2015b4da8e | [] | no_license | TimBest/ComposersCouch | ce97612d60033b7bdf1e98ce7718d9ef9e18101b | 953a45c5d48326c46ef9c23e77a9b9640de0116d | refs/heads/master | 2020-12-24T11:16:38.654166 | 2015-07-27T17:05:53 | 2015-07-27T17:05:53 | 73,045,725 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,614 | py | from datetime import datetime
from django.core.urlresolvers import reverse
from django.forms.models import modelformset_factory
from django.http import Http404
from django.shortcuts import redirect
from django.views.generic import FormView, UpdateView
from accounts.utils import update_profile_weight
from annoying.func... | [
"timbest@composerscouch.com"
] | timbest@composerscouch.com |
dfb170c8ad6b4001f4b307149b513f36679d22f2 | ed21823488a1cca51009793efa0b124e40d224a4 | /neurobioseg/170131_parallel_processing/p170131_05a_random_forest.py | b97abbb6d26e7d9052af14dbad02d3bcac7ce33a | [] | no_license | jhennies/py_devel | 4a41e13ec8cd9b834c3d5acf64becc0fa8ffc479 | 9fc860be95ae91064a40f25e26d4024fbae6eb1f | refs/heads/master | 2021-01-16T23:25:56.716283 | 2017-03-10T17:49:55 | 2017-03-10T17:49:55 | 45,381,183 | 1 | 0 | null | 2017-03-10T17:49:56 | 2015-11-02T08:21:35 | Python | UTF-8 | Python | false | false | 13,035 | py |
import os
import inspect
# from hdf5_image_processing import Hdf5ImageProcessing as IP, Hdf5ImageProcessingLib as ipl
from hdf5_slim_processing import Hdf5Processing as hp
# from hdf5_processing import RecursiveDict as rdict
from hdf5_slim_processing import RecursiveDict as Rdict
from shutil import copy, copyfile
impo... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
cc8eb6050cbbacd1656d8704196079fa02fb61eb | c445b85cc755b69745b6c499fbf42a7badd1dbf9 | /L6E01.py | 4577b654590fe3b4c79e2106464cfe107e5125f5 | [] | no_license | LLnOff/Estudos | 7b601053c44ab27bc231764726ab8ad961cb8c7a | 39128bde72feb21b2a856c58d6a451cd13a41c15 | refs/heads/master | 2020-08-02T22:37:40.442090 | 2019-09-28T16:41:19 | 2019-09-28T16:41:19 | 211,529,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | x=0
while(x<20):
x=x+1
print(x)
| [
"you@example.com"
] | you@example.com |
8a1b67e6d0f88c7afc3d020267944ba11dd3f23a | e8f73d243396cc8fbac16bf56530ccf56cc808a3 | /CorrectnessAndTheLoopInvariant/src/FirstGo.py | 9311be1dcec1d09f4b440180898bba530e413309 | [] | no_license | chrisjdavie/Sorting | 39f5f1d3cff13e20f3d30642371b343fdd6e028a | bb93dbf32ee1f525c416178c849a790d0dfc90f7 | refs/heads/master | 2021-01-10T13:38:15.205459 | 2016-02-04T11:55:13 | 2016-02-04T11:55:13 | 50,305,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | '''
Solving the hackerrank Correctness and the Loop Invariant.
https://www.hackerrank.com/challenges/correctness-invariant
Find the bug in the code. Wish there were more exercises like this.
----------------------
In the previous challenge, you wrote code to perform an Insertion Sort on an unsorted array. But how w... | [
"chris.d@theasi.co"
] | chris.d@theasi.co |
12e2fecbb80c37293d88b30bb81ec4db74f9bef1 | 6809b17768d492866abf102318a5dcd2a03e8239 | /learnpythonthehardway/binary-tree-upside-down.py | c5741c822ffb113a2f8c7fcc9c230491579272df | [] | no_license | dgpllc/leetcode-python | 28428430a65d26d22f33d8c7e41089f6a783743a | 340ae58fb65b97aa6c6ab2daa8cbd82d1093deae | refs/heads/master | 2020-06-01T14:42:17.162579 | 2019-06-03T14:42:43 | 2019-06-03T14:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # Time: O(n)
# Space: O(1)
#
# Given a binary tree where all the right nodes are either leaf nodes with a sibling
# (a left node that shares the same parent node) or empty, flip it upside down and
# turn it into a tree where the original right nodes turned into left leaf nodes.
# Return the new root.
#
# For example:
... | [
"xin_wei@intuit.com"
] | xin_wei@intuit.com |
fe933bb5e29bf5c2ae71f5f4ab64ec4d9978333c | c1fe97208afe479b7ae1ee67d69866a6911564ca | /SchoolManagement/StaffSection/apps.py | d36220ccb02a4730f7bd24067b4cd57b6ce73234 | [] | no_license | jaindhairyahere/Python_Django | a0a46c57b6ca60d0942ae181fe28ea56bb1ee948 | f170a2e38b78df698a02821a454a3baea0c358a6 | refs/heads/master | 2020-06-18T09:17:56.364928 | 2019-11-02T18:34:12 | 2019-11-02T18:34:12 | 196,249,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class StaffsectionConfig(AppConfig):
name = 'StaffSection'
| [
"jaindhairya2001@gmail.com"
] | jaindhairya2001@gmail.com |
aef8339d0c8be7f1d7d53cfe3ffc0be42a359f82 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v36r1p3/Phys/StrippingSelections/tests/TestTau2PhiMuLine.py | 7adb052ca469ac3eb10e263e17909402a56613bf | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | # $Id: $
# Test your line(s) of the stripping
#
# NOTE: Please make a copy of this file for your testing, and do NOT change this one!
#
from Gaudi.Configuration import *
from Configurables import DaVinci
from StrippingConf.Configuration import StrippingConf
# Tighten Trk Chi2 to <3
from CommonParticles.Utils import... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
4a826a04359ac11e32977d3588b796234c4ab3a4 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc172/abc172_e/14779372.py | 31d141706fccad017d6fe86b8afa38f49834b16f | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | N, M = map(int, input().split())
mod = 10**9 + 7
ans = M
for i in range(M-1, M-N, -1):
ans = ans*i % mod
# print(ans)
prev = 1
ansB = M-1
for i in range(1, N):
tmp = (prev)*i % mod
tmp2 = ansB - tmp % mod
# print(tmp2)
ansB = tmp * (M-i) % mod
ansB += (tmp2)*(M-i-1) % mod
# print(tmp, t... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
10d83e9ca83638c274c4b274dc74d4ec376d286d | b33ddc7b89d05e19fdeb69593872fd174fab9f4f | /URI-py/1188.py | 367ab9732401d545d232c14ec4a7f9cce17f2e3c | [] | no_license | ThiagoCComelli/URI-Online-Judge | 8b8d609d880342b39ba0d396c0610ecb7e01a5af | 5348f736b2d683f4b857232c22cccb7c1d8b8d65 | refs/heads/master | 2020-07-23T15:14:05.353948 | 2020-03-10T19:42:12 | 2020-03-10T19:42:12 | 207,606,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-
o = input()
soma = 0
qtde = 0
for i in range(12):
for j in range(12):
n = float(input())
if (i+j)>=12 and i > j:
soma += n
qtde += 1
if o == "S":
print("%.1f"%soma)
else:
print("%.1f"%(soma/qtde)) | [
"thiago.comelli@outlook.com"
] | thiago.comelli@outlook.com |
cf23f3a3f8d735099291e1cb5ed86c5fd319320a | cd8a143c5f01fcf6130b129a7a578d0225476b2d | /worker/deps/gyp/test/mac/gyptest-lto.py | d37068f33638fa7b048f119105e76315f6927ef2 | [
"BSD-3-Clause",
"ISC"
] | permissive | corvaxx/mediasoup | 47242bd5b0468b1f7e6de8077b11adf562aa244f | 304bce884755243f78ba3eeec5442888ecdc5340 | refs/heads/v3 | 2023-02-05T03:19:59.451099 | 2020-09-25T11:27:36 | 2020-09-25T11:27:36 | 303,987,529 | 0 | 3 | ISC | 2020-11-06T16:22:36 | 2020-10-14T11:00:43 | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/env python
# Copyright (c) 2015 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that LTO flags work.
"""
import TestGyp
import os
import re
import subprocess
import sys
if sys.platform == 'darwin':
test... | [
"ibc@aliax.net"
] | ibc@aliax.net |
67c9c4a66330d739b90ec551a6bafbbce725d7f1 | 0ecf2d067e8fe6cdec12b79bfd68fe79ec222ffd | /chrome/test/vr/auto_bisect.py | 9235e3826f33250be0c3b0e85597c210b8f92a5e | [
"BSD-3-Clause"
] | permissive | yachtcaptain23/browser-android-tabs | e5144cee9141890590d6d6faeb1bdc5d58a6cbf1 | a016aade8f8333c822d00d62738a922671a52b85 | refs/heads/master | 2021-04-28T17:07:06.955483 | 2018-09-26T06:22:11 | 2018-09-26T06:22:11 | 122,005,560 | 0 | 0 | NOASSERTION | 2019-05-17T19:37:59 | 2018-02-19T01:00:10 | null | UTF-8 | Python | false | false | 26,954 | py | #!/usr/bin/python
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Script to bisect a VR perf regression.
This is only meant to be used on a developer's workstation, not on bots or any
other sort of aut... | [
"artem@brave.com"
] | artem@brave.com |
75fecba1bebb94b61189d5eb1c5c5c5a295b7413 | f6670298af8286f53631d820044c965d78c32002 | /generator/why_generator.py | 0fa5fefe63b25ad0245da42a9ef2c6a96a0a3780 | [] | no_license | iamvee/python-course-2021 | 457eba7bb7dbfa3570476f7757d0d86c91677d81 | 18d9a12bd71597d73453f1afc5298f939b51aebc | refs/heads/master | 2023-02-24T23:43:33.708218 | 2021-02-05T15:56:11 | 2021-02-05T15:56:11 | 329,936,284 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import time
import math
def is_prime(n):
for i in range(2, int(math.sqrt(n))):
if n % i == 0:
return False
return True
t1 = time.time()
primes = []
for i in range(2, 1000):
if is_prime(i):
primes.append(i)
t2 = time.time()
print(primes)
print(t2 - t1) | [
"naeini.v@gmail.com"
] | naeini.v@gmail.com |
e2944a00fa857268c7fde978445baf54267b93a5 | d10939192137a625bb45d0c67325caa1b9fc7e93 | /01_Python/my_package/math/statistics/tools.py | e3da84d8eb426e9f201f8dba9530dafde5896c18 | [] | no_license | hyeinkim1305/TIL | b8bb1a30e241a386b6c2c57d9be3587953927b3d | 25c17418e4fbed25923439c59a697e549b588650 | refs/heads/master | 2023-06-24T11:41:46.736988 | 2021-07-27T13:03:39 | 2021-07-27T13:03:39 | 329,835,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def standard_deviation(values):
mean = sum(values) / len(values)
sum_var = sum(pow(value - mean, 2) for value in values) / len(values)
std_dev = sum_var ** 0.5
return std_dev | [
"haileyyy1305@gmail.com"
] | haileyyy1305@gmail.com |
b00945069abdfbfd34896234ef109f1f9d08f735 | b131382ea0cca40b5804f65d3fdd41b72f39591f | /my_crst.py | 3d1111a14f6254709452d46f1bdd61e5e02c68d2 | [] | no_license | GAIMJKP/udacu | 3be61faf98d9d42d2e6dcfacf863311ce7735e87 | e8746483b9a8f926505bc97e887822cb479dc382 | refs/heads/master | 2022-03-19T05:07:55.770687 | 2019-11-23T04:05:12 | 2019-11-23T04:05:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,837 | py | from PIL import Image
from operator import itemgetter
import argparse
import os
import shutil
import time
import numpy as np
import copy
import logging
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torch.optim
from torch.optim im... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
d508d272ebb753866fbcbc5d2e8c4a736b59c0ba | 4b4df51041551c9a855468ddf1d5004a988f59a2 | /leetcode_python/Array/max-increase-to-keep-city-skyline.py | f8246c5fdd356e89582371e01034b523e3e0e953 | [] | no_license | yennanliu/CS_basics | 99b7ad3ef6817f04881d6a1993ec634f81525596 | 035ef08434fa1ca781a6fb2f9eed3538b7d20c02 | refs/heads/master | 2023-09-03T13:42:26.611712 | 2023-09-03T12:46:08 | 2023-09-03T12:46:08 | 66,194,791 | 64 | 40 | null | 2022-08-20T09:44:48 | 2016-08-21T11:11:35 | Python | UTF-8 | Python | false | false | 3,892 | py | """
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any number of buildings, by any amount (the amounts can be different for different buildings). Height 0 is considered to be a building as well.
At the end, the “skyline” ... | [
"f339339@gmail.com"
] | f339339@gmail.com |
b0d05f81a0a0218edea1e3fde7bb0e1e5272ba40 | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/Phishing/Scripts/FindDuplicateEmailIncidents/FindDuplicateEmailIncidents.py | 0be479e43b34ae7610c090c7cc6c73c35318a64d | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 17,936 | py | import dateutil # type: ignore
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import pandas as pd
from bs4 import BeautifulSoup
from sklearn.feature_extraction.text import CountVectorizer
from numpy import dot
from numpy.linalg import norm
from email.utils import p... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
9e5850f49b63cfd123ce7fc57125ffb30777b095 | 002c14cd622b4890cce1c243065cebe39e2302ec | /CodingInterview2/21_ReorderArray/test_reorder_array.py | 26b36235f4be3f71b5a65a23ad42e2697c2e71da | [
"MIT"
] | permissive | hscspring/The-DataStructure-and-Algorithms | 6200eba031eac51b13e320e1fc9f204644933e00 | e704a92e091f2fdf5f27ec433e0e516ccc787ebb | refs/heads/master | 2022-08-29T18:47:52.378884 | 2022-08-25T16:22:44 | 2022-08-25T16:22:44 | 201,743,910 | 11 | 3 | MIT | 2021-04-20T18:28:47 | 2019-08-11T09:26:34 | Python | UTF-8 | Python | false | false | 2,216 | py | from reorder_array import reorder, reorder_two_pointer, reorder_two_pointer2
from reorder_array import is_odd
def test_normal():
lst = [1, 2, 3, 4, 5, 6, 7]
res = reorder(lst)
assert set(res[:4]) == set((1, 3, 5, 7))
assert set(res[4:]) == set((2, 4, 6))
res = reorder_two_pointer(lst)
assert se... | [
"haoshaochun@gmail.com"
] | haoshaochun@gmail.com |
ed30c21243828d7dc592bab50ad6d701211b5b60 | 0897e2254eeac5458e4f17caea43871dd72fda9a | /great_expectations/expectations/metrics/column_pair_map_metrics/column_pair_values_in_set.py | 115faba24cf78fb85f1626c30d67325f97377499 | [
"Apache-2.0"
] | permissive | NulledExceptions/great_expectations | 10f7710d7520f0b57ded539ce33075ddeb47856d | 8704c3ecf6632a72c55e012ed117d56f85a21f74 | refs/heads/main | 2023-09-05T19:30:32.910045 | 2021-11-18T20:50:42 | 2021-11-18T20:50:42 | 431,229,866 | 1 | 0 | Apache-2.0 | 2021-11-23T19:35:34 | 2021-11-23T19:35:34 | null | UTF-8 | Python | false | false | 2,883 | py | from functools import reduce
import numpy as np
import pandas as pd
from great_expectations.execution_engine import (
PandasExecutionEngine,
SparkDFExecutionEngine,
SqlAlchemyExecutionEngine,
)
from great_expectations.execution_engine.sparkdf_execution_engine import F
from great_expectations.expectations.... | [
"noreply@github.com"
] | NulledExceptions.noreply@github.com |
d97527b3a1266c6c97f0143bacd5f2e3036188e9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/6ea1573f0303413b9c8018285a41ab99.py | c43dd65186711f4ed0747b1d3e72fdac3cd3147c | [] | 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 | 98 | py | from string import maketrans
def to_rna(code):
return code.translate(maketrans("GCTA","CGAU"))
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
54602f51c2dd25c9d391d95500ad6b672ea0cc94 | 875d21772e23193695814accb607541ce1d2832c | /owllook/config/rules.py | a17d31b04b48accdebcca750971c921a7d96639b | [
"Apache-2.0"
] | permissive | qgb1151521/owllook | 5621c88b021d0f03ca7cf9540a11c29722787be9 | 31d899ad370b4df7e4e6cce897582778223068bf | refs/heads/master | 2020-04-25T07:58:16.010042 | 2019-01-23T09:33:13 | 2019-01-23T09:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,588 | py | #!/usr/bin/env python
from collections import namedtuple
####################################### 规则 ###########################################
# DOMAIN
BLACK_DOMAIN = ['www.17k.com', 'mm.17k.com', 'www.xs8.cn', 'www.zongheng.com', 'yunqi.qq.com', 'chuangshi.qq.com',
'book.qidian.com', 'www.soduso.co... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
92fac8a0ec6b923f3d12f9fdf3bb67535dea99fa | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones/migrations/0078_cotizacionpagoproyectado_notificada_por_correo.py | 4125a4e8fa58f022bae7846befd264f4a89869f7 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2.6 on 2020-07-31 02:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones', '0077_auto_20200729_1438'),
]
operations = [
migrations.AddField(
model_name='cotizacionpagoproyectado',
... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
ddf61c9e40dc917cb4d064a4d9596cf0e658440f | 953338866e0a4af3909b74a8160d36aeb468cbb4 | /workMETRLA/GMAN.py | 435a09733822837b2a8312855501a29876635acf | [
"MIT"
] | permissive | yuanxw5/DL-Traff-Graph | 6acf80e7ca4ab0fd77f7105de660d1ca3e78e76c | 63f3d81ce3a750e43645c61089c5ca219bfcbfd3 | refs/heads/main | 2023-07-11T10:22:53.897701 | 2021-08-24T02:34:09 | 2021-08-24T02:34:09 | 402,801,017 | 1 | 0 | MIT | 2021-09-03T14:39:33 | 2021-09-03T14:39:32 | null | UTF-8 | Python | false | false | 14,372 | py | import sys
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchsummary import summary
from Param import *
from Param_GMAN import *
class conv2d_(nn.Module):
def __init__(self, input_dims, output_dims, kernel_size, stride=(1, 1),
padding='SAME', use_bias=True, ... | [
"jiangrh@csis.u-tokyo.ac.jp"
] | jiangrh@csis.u-tokyo.ac.jp |
4e23693fef6388b637a0f989a717d851374e0e54 | 73d1eeafaa1baf73a1833731fe0b657297acc8f5 | /simplerolegame/simplerolegame/settings/production.py | 9a676d5cefc7b4da28793f21e0fea7a9749f9a94 | [] | no_license | pythonvlc/workshop-tastypie-angularjs | c5719309f1f67d99579f5d2df14205a2f28f5800 | d6bbd30467a3dca0a9657c094a7982e450cc1c38 | refs/heads/master | 2016-09-03T07:36:56.997177 | 2014-05-08T08:14:48 | 2014-05-08T08:14:48 | 19,468,385 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... | [
"marcosgabarda@gmail.com"
] | marcosgabarda@gmail.com |
7a7dd77ed80b3ce64fe483cf6d75c9dafd58cd64 | 4b8d3473c8b8f27735689b4c4abba5bfcc189c83 | /eusurvey/libs/csv_unicode.py | 2e4a0c9282ed70791a9b5e3e29cd996f36e78536 | [] | no_license | alfredo/eu_survey | f757463c9d7b33e5b1f3ff5fc66fbe6a254d0831 | dfe9b8f4df6a1a275210bf60dea2c4adca078f21 | refs/heads/master | 2016-08-12T06:24:42.483228 | 2016-05-03T06:58:55 | 2016-05-03T06:58:55 | 47,723,328 | 3 | 1 | null | 2015-12-24T19:07:26 | 2015-12-09T22:35:19 | Python | UTF-8 | Python | false | false | 2,230 | py | import csv
import codecs
import cStringIO
class TabExcelDialect(csv.excel):
delimiter = '\t'
class UTF8Recoder(object):
"""Iterator that reads an encoded stream and reencodes the input to UTF-8"""
def __init__(self, f, encoding):
self.reader = codecs.getreader(encoding)(f)
def __iter__(self... | [
"alfredo@madewithbyt.es"
] | alfredo@madewithbyt.es |
084bc01d39ce314a02e8918396ee2395f74f3ab1 | 8fcec8b9d4ab3ec62161411389628092ad1b22c1 | /twisted_string/scripts/everything.py | d2a6aa6df9dae212b3a0276d472d80add4950f69 | [] | no_license | sfrias/experiments | 321628d36dbd532b2df57afdccd3b7eb26a47a54 | 151d9481359a0bd6c7aadb13eef128e2af8cbdb8 | refs/heads/master | 2020-05-07T16:18:22.030330 | 2019-03-21T21:42:30 | 2019-03-21T21:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,447 | py | #!/usr/bin/env python
import csv
import rospy
from math import pi
from std_msgs.msg import Float64, Float32
from std_srvs.srv import Trigger
from vesc_msgs.msg import VescStateStamped
import sys
class Everything:
iteration = 0
def reset(self):
self.unwinding = False
self.fullywound_offset = 0... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
66aea5f2720041bd9b460b234fcf296a55a93dc0 | 95dc06956c89e301f19da7dafb7238afc2988f94 | /com/chen/deep_learning/tensorFlow/chapter00_first_learn/test.py | d19d0a9f657f06cddf187e9d3969d7179527eb97 | [] | no_license | giraffe-tree/PythonDemo | a87d41b0b4c671b99f99460a508ac33b9954c427 | 387c50bad4b21b5c10cf79b8dfc3cdae1e95ef15 | refs/heads/master | 2021-08-20T07:23:04.348856 | 2017-11-28T14:28:14 | 2017-11-28T14:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import numpy as np
x = np.linspace(-5, 5, 200) # x data, shape=(100, 1)
print(x.shape)
print(x) | [
"15355498770@163.com"
] | 15355498770@163.com |
44001c456fd803dca8babef3fc448f16df12632c | 1d96db84225301d972f07cad95c2a13f4fbafa84 | /python/lhe_viewer/lhe_tools.py | ea9a9d338c13aec920cf827af8f6e77f0b0a8f7d | [] | no_license | mattbellis/matts-work-environment | 9eb9b25040dd8fb4a444819b01a80c2d5342b150 | 41988f3c310f497223445f16e2537e8d1a3f71bc | refs/heads/master | 2023-08-23T09:02:37.193619 | 2023-08-09T05:36:32 | 2023-08-09T05:36:32 | 32,194,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import numpy as np
import sys
def get_events(infile):
events = []
nevents = 0
newevent = False
firstline = False
event = []
for count,line in enumerate(infile):
#print count
#print line
if line.find('<event>')>=0:
newevent = True
firstline = Tr... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
0bf7a4cfeb0aa0838af341c12ea558a939e6c1ce | 84e300c44611761bc241f1e8d7e898ba38508550 | /valid-parentheses/one.py | 32216768794d7e01f92143b4688b398ee49b7ef2 | [] | no_license | spezifisch/leetcode-problems | d9b3c4f4120b054d0692e9ed7fb2865981273d43 | 5a4d095683a0335dc56ec79cd99143ec96bc52a9 | refs/heads/master | 2022-07-11T21:01:00.883808 | 2022-02-02T10:16:36 | 2022-02-02T10:16:36 | 174,756,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | class Solution:
def isValid(self, s: str) -> bool:
ends = {
"(": ")",
"{": "}",
"[": "]",
}
stack = []
for c in s:
if not len(stack) or c in ends.keys():
stack.append(c)
elif not len(stack):
... | [
"spezifisch@users.noreply.github.com"
] | spezifisch@users.noreply.github.com |
bd4729ff85922958db26d5f82aed1c139426fa59 | 44d62941c162ad3436194dfb2fe1ab4e56abb074 | /src/cromlech/marshallers/_yaml.py | d811177a3d00a0c3c74cb559c89725a58afbd88d | [] | no_license | Cromlech/cromlech.marshallers | 359987e0831864011d6ac4336ae055ca3ce08cc8 | e5846871fac1338a86945863fef3885e2275e701 | refs/heads/master | 2023-01-18T22:27:42.346998 | 2020-11-27T11:44:31 | 2020-11-27T11:44:31 | 114,695,468 | 1 | 2 | null | 2017-12-21T11:07:39 | 2017-12-18T22:50:31 | Python | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
try:
import yaml
except ImportError:
# FIXME: debug log.
pass
else:
from .prototype import Marshaller
class YAMLMarshaller(Marshaller):
@staticmethod
def loads(string):
return yaml.load(string, Loader=yaml.FullLoader)
@staticmethod
... | [
"trollfot@gmail.com"
] | trollfot@gmail.com |
9c8b1da54522147374bddb468dc999122717d4c4 | 4cc4d9d488939dde56fda368faf58d8564047673 | /tools/test/connectivity/acts/tests/google/ble/power/GattPowerTest.py | 31b07a91217ca2500715ebd09fba26d419d436e3 | [] | no_license | Tosotada/android-8.0.0_r4 | 24b3e4590c9c0b6c19f06127a61320061e527685 | 7b2a348b53815c068a960fe7243b9dc9ba144fa6 | refs/heads/master | 2020-04-01T11:39:03.926512 | 2017-08-28T16:26:25 | 2017-08-28T16:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | #/usr/bin/env python3.4
#
# Copyright (C) 2016 The Android Open Source Project
#
# 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... | [
"xdtianyu@gmail.com"
] | xdtianyu@gmail.com |
a81259f7c9ef1b66bd24c90d89287f557aebea16 | 14028bea18dcd4f89fca2306bf51dcbf6acabb44 | /apps/accounts/migrations/0003_auto_20220706_1806.py | 6e1bec6eab52bc143b82038f02125412395485ff | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | CMSgov/bluebutton-web-server | 5694c7149d9f2f6efed9a2814c928d8a7539e4cb | fb0904c0b9d77dfb00523fe6ce69b946b640441e | refs/heads/master | 2023-09-01T18:17:31.088628 | 2023-08-25T20:43:14 | 2023-08-25T20:43:14 | 50,062,960 | 30 | 33 | NOASSERTION | 2023-09-14T10:24:34 | 2016-01-20T21:52:00 | Python | UTF-8 | Python | false | false | 959 | py | # Generated by Django 2.2.28 on 2022-07-06 18:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20210624_1454'),
]
operations = [
migrations.AddField(
model_name='activationkey',
name='acti... | [
"noreply@github.com"
] | CMSgov.noreply@github.com |
a6c57fe1e6226360556c1d8f9ded00240ce61dd9 | 04f83aab47940b739f13c1ba102c230372966c43 | /SHyFTScripts/python/getEvents.py | 9b2126c67e630cc0d76f267fb1ab99a26ae217aa | [] | no_license | PerilousApricot/SUSHyFT-Analyzer | 5a11909963d30c8ad7f19f499253a6753e78608a | 9f5ba528a96203459c52a0434b32311a16e2ff3b | refs/heads/master | 2016-09-15T15:31:30.617286 | 2016-03-14T20:32:09 | 2016-03-14T21:02:28 | 21,915,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python2.6
# Import everything from ROOT
import sys
import os.path
oldargv = sys.argv[:]
sys.argv = []
import ROOT
from ROOT import TMath
ROOT.gROOT.Macro("~/rootlogon.C")
sys.argv = oldargv[:]
from DataFormats.FWLite import Events, Handle
for onePath in sys.argv[1:]:
junk = ROOT.TFile(onePath)
... | [
"andrew.m.melo@vanderbilt.edu"
] | andrew.m.melo@vanderbilt.edu |
f81d24b16aebd19aa87e5082b1ab27ee9c7e2d41 | 099433bbdf8c1a4447580d952ab1cd4ef1f5c86c | /backend/library/urls.py | d4c1e9fe43c7258bb051d69439f680cf0ce970d2 | [] | no_license | mbrsagor/ember-crud | 53026b2b8559dfa826e4110da004a3a1d6d942bf | f5c014de48ffa7bb9aa7e698c180e565940d2283 | refs/heads/master | 2023-01-27T21:35:29.319988 | 2020-12-16T21:47:38 | 2020-12-16T21:47:38 | 319,939,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """library URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mbrsagor@gmail.com"
] | mbrsagor@gmail.com |
9bb06e0a7b17abd0177c9dc86ddee8802ce39237 | b5a2d6981ac71ab4510f1d2ebd8595162ac001aa | /ha/ui/bedroomUI.py | d7548591cb138462c16a15260e75ef785da676c6 | [] | no_license | lvmingxiao/ha | 0e0f918d954d219c83fee6570d649641b5473b85 | 122ecfd2ef811e5be29e03538a3950aebe29fb12 | refs/heads/master | 2022-04-09T00:10:02.810782 | 2020-03-07T18:14:02 | 2020-03-07T18:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py |
from jinja2 import FileSystemLoader
from ha import *
def bedroomUI(resources, templates, views):
with resources.lock:
widths = [[320, [296, 24]], [320, [240, 80]], [320, [152, 168]]]
northHvac = templates.get_template("hvacWidget.html").render(label="Temperature",
width... | [
"joe@thebuehls.com"
] | joe@thebuehls.com |
9ddafe6f1e01ebd93b695b9cd025fa4dd2054c4e | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/storsimple/latest/get_chap_setting.py | 10ab89f8781a5083124fd33ea182ad32f7c453eb | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 3,179 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
97dfe49f8195cb51d9bd636dfd1353dca53571be | b2f8a7da5a4a5544ad4be11dcf071253578f9579 | /model_train.py | abe3b92a1db76215c3646c5440d94ce077967985 | [] | no_license | ashish1sasmal/Stone-Paper-Scissor-Roshambo | c0fe1e62d3b2b3413f3e0230eb38a000e8d469b8 | 839f559c04259ab15f699bdc92b8d7a28bb686b7 | refs/heads/master | 2023-01-19T08:21:53.801888 | 2020-11-23T15:31:05 | 2020-11-23T15:31:05 | 314,878,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # @Author: ASHISH SASMAL <ashish>
# @Date: 21-11-2020
# @Last modified by: ashish
# @Last modified time: 23-11-2020
import time
import cv2
import numpy as np
start_time = time.time()
from keras_squeezenet import SqueezeNet
from keras.optimizers import Adam
from keras.utils import np_utils
from keras.layers impor... | [
"ashishsasmal1@gmail.com"
] | ashishsasmal1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.