blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5b5f9e58967eed42a29cb3a831bbdeee870ef8d | 54dac70ba80063250ef66bf973ce14226514aa9a | /releasetools/flare_img_from_target_files | 6864b1acb4c17a9e89353fd77e3e65b8c9a0dbea | [] | no_license | ravikirancg/A21 | 22e5ffa994be1b46959793fbf1692cd507903af3 | e0509d617fcb9902ee67258da750a0f9bee690b3 | refs/heads/master | 2016-09-05T08:47:36.598970 | 2013-06-03T13:23:16 | 2013-06-03T13:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,382 | #!/usr/bin/env python
#
# Copyright (C) 2008 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 req... | [
"ravikirancg1@gmail.com"
] | ravikirancg1@gmail.com | |
8904beb072f5f0d6c02deb340ad9e1bde96aa958 | 6509c398816baffafa4a1fcfb2855e1bc9d1609b | /sistema-operacional/diretorios/pathlib/exemplos/pathlib-4.py | 7986086bea5a528b646fbaa9b9c5e9fc10c68789 | [] | no_license | marcoswebermw/learning-python | 6b0dfa81a0d085f4275865dce089d9b53b494aa5 | 931ed2985b8a3fec1a48c660c089e290aaac123d | refs/heads/master | 2021-10-27T21:19:46.013020 | 2019-04-19T23:25:46 | 2019-04-19T23:25:46 | 87,670,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # Listando só os arquivos de um diretório.
from pathlib import Path
diretorio = Path('.')
[print(x) for x in diretorio.iterdir() if x.is_file()] | [
"marcoswebermw@gmail.com"
] | marcoswebermw@gmail.com |
ca2213d6fef6166939b64addb386fc49ba7aa2d8 | 47a5a4642fd15b8c16e7b295807b4aac6c830d20 | /_python/project/basics/list tuple set.py | 106541a403da2648f11da3571800432a348ecba0 | [] | no_license | hakalar/network_automation | 6ed03b1c5d7aad53157cbf241f003c2c5225d8cf | 831a3e5cfe467aeafabe64df9cfb504a87254e3f | refs/heads/master | 2021-07-07T07:17:06.756647 | 2021-05-03T11:15:40 | 2021-05-03T11:15:40 | 239,247,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | # Empty Lists
empty_list = []
empty_list = list()
# Empty Tuples
empty_tuple = ()
empty_tuple = tuple()
# Empty Sets
empty_set = {} # This isn't right! It's a dict
empty_set = set()
########################
# Mutable
list_1 = ['History', 'Math', 'Physics', 'CompSci']
list_2 = list_1
print(list_1)
print(list_2)
# ... | [
"rhakala@gmail.com"
] | rhakala@gmail.com |
3a17bed6668f80c35ddbbc13374f04955a26cb23 | 2891cbe8156de37575f951e8391a8bbde2405f29 | /boot.py | 4b86a371e56113c0d00ce68e8bfbe716484b1b9c | [] | no_license | ayoy/micropython-led-controller | ceab70dfbad0227c300dd7e80f6ec9045dda2248 | 7e630ccd5eacfaba46d9c315ad1d0c00e9aaf074 | refs/heads/master | 2021-01-24T01:52:35.039757 | 2018-02-25T10:26:32 | 2018-02-25T10:26:32 | 122,825,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import machine
from keychain import WLAN_SSID, WLAN_PASSKEY
from helpers import setup_rtc
known_nets = [(WLAN_SSID, WLAN_PASSKEY)]
if machine.reset_cause() != machine.SOFT_RESET: # needed to avoid losing connection after a soft reboot
from network import WLAN
wl = WLAN()
# save the default ssid and auth... | [
"dominik@kapusta.cc"
] | dominik@kapusta.cc |
a5fa5c8e3314f669eaee16227e3c06770520da90 | f7525456f5451926282cba840dae1c4adba3573f | /Moduli/second.py | 4689e122237787d5b945fc6e503329138dff93b8 | [
"MIT"
] | permissive | AlPus108/Python_lessons | 1f2ac6e1ce5a344e0c900249ef7864d257424436 | 0e96117d9a8b76fd651e137fc126ddedaa6accd9 | refs/heads/master | 2021-02-27T06:37:10.239125 | 2020-05-14T21:27:29 | 2020-05-14T21:27:29 | 245,588,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | # 3 Пришли из файла first.py
# С самого начала делаем импорт модуля first
import first
print('Top level is second.py')
# вызываем ф-и из импортированного модуля first
first.function_1()
# копируем блок if_else из модуля first и вставляем сюда и меняем в тексте first на second
if __name__ == '__main__': # если п... | [
"alex.pustovoy@gmail.com"
] | alex.pustovoy@gmail.com |
cc5a061ef4e8cefaa17ca4bae5fbf52fa9173d90 | 01e18a939fc96cf20653bb950667c87299b4837f | /bulletPointAdder.py | 8f61af279197257c8ee55a73f132defc771595c9 | [] | no_license | MasterBroda/automate-boring-stuff-answers | 3eb6f21447cdb62fe06f2cc3fba9108f4f80aec8 | bb9b230c99f8e20b8b4f5be89a7b0134d03afcfb | refs/heads/master | 2021-01-12T14:07:23.315971 | 2016-10-06T15:31:23 | 2016-10-06T15:31:23 | 70,167,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import pyperclip
text = pyperclip.paste()
print text
l = list()
l = text.split("\n")
print "~~~~~~~~~~"
text = "".join(["* " +i for i in l])
print text
pyperclip.copy(text) | [
"gabsubercool@gmail.com"
] | gabsubercool@gmail.com |
d42e7fa9d71f6b303b09b0127e5624b5af3ce7db | 2290eed5c494202beea0da1b9257a38b7a4403d2 | /script/[83]删除排序链表中的重复元素.py | 626a835b78ae9354dd10fbd846316d0fbec6778a | [] | no_license | DSXiangLi/Leetcode_python | 4b1c9848ea774955fb252b9bd796ba8d46ad728e | a2ef0ba5e86405dbf68dbc1ffeb086c7d864db1d | refs/heads/main | 2022-09-01T04:34:04.260402 | 2022-08-20T01:12:27 | 2022-08-20T01:12:27 | 445,347,891 | 1 | 0 | null | 2022-07-23T06:32:14 | 2022-01-07T00:15:20 | Python | UTF-8 | Python | false | false | 1,070 | py | # 给定一个已排序的链表的头 head , 删除所有重复的元素,使每个元素只出现一次 。返回 已排序的链表 。
#
#
#
# 示例 1:
#
#
# 输入:head = [1,1,2]
# 输出:[1,2]
#
#
# 示例 2:
#
#
# 输入:head = [1,1,2,3,3]
# 输出:[1,2,3]
#
#
#
#
# 提示:
#
#
# 链表中节点数目在范围 [0, 300] 内
# -100 <= Node.val <= 100
# 题目数据保证链表已经按升序 排列
#
# Related Topics 链表
# 👍 827 👎 0... | [
"37739462+DSXiangLi@users.noreply.github.com"
] | 37739462+DSXiangLi@users.noreply.github.com |
a2dc346969291165e642caa49c93d0a72350c328 | 71ca3a86a3e1a77e0b5036278026e27744fac488 | /env/bin/easy_install-2.7 | 8019eedd5b0cfc489bc426737fc40b212c3bd85a | [] | no_license | Harbinger55555/Thompsons-Lexical-Analyzer | 45d41eb1441bfea15dfa18dcba16bfda7614c79e | 179bbc71cbc27964b6fc6ebed5177c7e162251c2 | refs/heads/master | 2020-05-01T06:24:12.662955 | 2019-03-23T19:03:27 | 2019-03-23T19:03:27 | 177,329,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | 7 | #!/home/codio/workspace/pr01/python001/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zaykha.kyawsan@gmail.com"
] | zaykha.kyawsan@gmail.com |
d9efe7caf1b897b057e1ac0d96f4ba7c6b25aa7d | f67fa61e0291934fdf8f895a44bc455690462d74 | /mx_shop/extra_apps/xadmin/plugins/ueditor.py | 9625caaecf2d299d39031ee25acaf8b362fa9952 | [] | no_license | wuxinsuoqiu/myfirst_git | bbbaf16ebd99e0f3e539607ea2c577a88998dc8e | 96a4fae6c8326923ddcd9fe99124df3ee43485ed | refs/heads/master | 2020-03-27T12:35:30.737730 | 2018-08-29T06:39:53 | 2018-08-29T06:39:53 | 146,555,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # _*_ coding: utf-8 _*_
__author__ = 'mk'
__date__ = '2018/8/12 16:56'
import xadmin
from xadmin.views import BaseAdminPlugin, CreateAdminView, ModelFormAdminView, UpdateAdminView
from DjangoUeditor.models import UEditorField
from DjangoUeditor.widgets import UEditorWidget
from django.conf import settings
class Xadm... | [
"1468585071@qq.com"
] | 1468585071@qq.com |
36513be124791d00ea08a18ec72dbd64a86346f0 | 21d7a6d0566b07dc4103a97be1c91e05e6784128 | /configs/urls.py | 86638c81a91a2d2b7c2a08a8d65f35947abdd0ae | [] | no_license | simonw/squirrelspotter | 60c28dfcf3851676a37457db6e28704f2dfdcdf2 | 4d56e3843b6de9caf23f180b0cee19f4cd0a6b73 | refs/heads/master | 2021-03-19T18:09:02.960853 | 2012-09-25T14:56:44 | 2012-09-25T14:56:44 | 5,900,675 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from django.conf.urls import patterns, url, include
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'spotter.views.index'),
url(r'^login/$', 'spotter.views.login'),
url(r'^login2/$', 'spotter.views.login2'),
url(r'^credits/$',... | [
"simon@lanyrd.com"
] | simon@lanyrd.com |
fae106553bb36f13c29797fcc875a07f47f4c0c6 | ea6444f69fd3d8015c0ef31b7e8846af9529caef | /ebooksapi/ebooksapi/urls.py | 6d34a8dfc611e45ca9e5e65ee992a8e9037540d1 | [
"MIT"
] | permissive | hovsepyanvahe/django_rest_api_ebooks | 265468817e45cbe8046e35d0c9c907f584366ef1 | 5859aec588e0bcded37edbec2ada0b4b89c887a0 | refs/heads/master | 2023-08-20T04:11:05.581038 | 2020-04-11T18:51:15 | 2020-04-11T18:51:15 | 254,921,279 | 0 | 0 | MIT | 2021-09-22T18:52:01 | 2020-04-11T17:37:59 | Python | UTF-8 | Python | false | false | 173 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('ebooks.api.urls')),
]
| [
"vahikhovsepyan95@gmail.com"
] | vahikhovsepyan95@gmail.com |
965af6ee43cba4c918c74cea08cb02b1bda6aa7c | 6040c08fc1ae8a11e1c4a93f5d95bd45018118f8 | /crawling.py | b6ca9595284455f8c408e8f92612cf89d81807c9 | [] | no_license | tilthend/kjkintheworld | e7051c4094100507587058b630a750fe51ba6bf8 | 157ce27668fe9b87012de6304a046cce4127a66e | refs/heads/main | 2023-04-16T04:31:59.537070 | 2021-04-28T11:00:06 | 2021-04-28T11:00:06 | 318,044,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | import requests
from bs4 import BeautifulSoup
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://movie.naver.com/movie/sdb/rank/rmovie.nhn?sel=pnt&date=20200303',headers=headers)
soup = Beaut... | [
"noreply@github.com"
] | noreply@github.com |
6996aae73bd4990f83077d72224280151bb76dcb | 436517f8ab142a94944cc50e93ebcb3596b910a6 | /CodeUp/기초 100제/6023_17390916(AC).py | 259e83e4698bb2864c18ca74d045d428c84aa1be | [] | no_license | uni2237/Algorithm | 143267706f74404602bf5b166f4d108496a459d0 | 28408cfc9b8f8dd86bd437d30bb2a4f9c6d408f2 | refs/heads/master | 2023-08-21T05:11:41.418007 | 2021-09-19T15:30:06 | 2021-09-19T15:30:06 | 276,294,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import sys
input = sys.stdin.readline
s= input()
a,b,c=s.split(':')
print(b)
| [
"a01022371341@gmail.com"
] | a01022371341@gmail.com |
a131ba7539f611d39f887a2a8cf1e415b50fddde | 18339252dc6e4931ed3f7a0c671b232b184e56e6 | /BlogPs/asgi.py | 9a11c55c6848f4501f72a531a178dd2ebaa98df9 | [] | no_license | ibk2510/food_blog | 8e17f663dc5741d823d74fdac13fbf5c0eeabfb8 | c20dcf503692dd0fa71c8af8915033a79cbd4741 | refs/heads/main | 2023-06-06T09:34:47.795881 | 2021-06-18T14:58:04 | 2021-06-18T14:58:04 | 378,182,374 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for BlogPs project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"kalilibrahimjh@gmail.com"
] | kalilibrahimjh@gmail.com |
f6890569412e03a13d41215a891e3d25ad0e2ee1 | a4ab889cbcd077dae29eb2ca62c9078aa6c0d555 | /benchmark/torch/qmix/train.py | 290b56a9498d83e3e044225acd35849e95afa0f1 | [
"Apache-2.0"
] | permissive | rical730/PARL | 909721c347ce05d0c43ad8b3d4b38edd63f47a44 | 88e43d309278c34ca857939fe251813d4cad4b03 | refs/heads/develop | 2022-04-19T19:29:15.269466 | 2022-04-01T05:51:46 | 2022-04-01T05:51:46 | 482,826,065 | 0 | 0 | Apache-2.0 | 2022-04-18T11:44:11 | 2022-04-18T11:44:11 | null | UTF-8 | Python | false | false | 6,621 | py | # Copyright (c) 2020 PaddlePaddle 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 app... | [
"noreply@github.com"
] | noreply@github.com |
ce3eb9f306532e3d901fc2acb81877bb8a80fbde | b70f00927b9ed862252ad7345ca39f9d44ae87a2 | /exec -l /bin/bash/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/filestore/operations/flags.py | a2422ffca4165e41c34c82b6d85667ae3393cac0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sparramore/Art-Roulette | 7654dedad6e9423dfc31bd0f807570b07a17a8fc | c897c9ec66c27ccab16f1a12213d09fe982d4a95 | refs/heads/master | 2021-07-06T13:04:22.141681 | 2018-07-12T23:30:13 | 2018-07-12T23:30:13 | 139,061,941 | 0 | 2 | null | 2020-07-25T11:32:11 | 2018-06-28T19:49:24 | Python | UTF-8 | Python | false | false | 1,156 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"djinnie24@gmail.com"
] | djinnie24@gmail.com |
d59670d01436234a5c4ea1be119b112db5626c4e | 5c49ee8ab371cfae2af2e080bb12be48517be8b7 | /Coding_Interviews/Python/KP/ah.py | bc8ff673ff0f647ab7bd290d95fe6c461a244c26 | [] | no_license | gonzalob24/Learning_Central | 7aa07d6b5cd50d47ba791dedafed856f3e335697 | 1843c80249c8313543757131ecb12a476e687b24 | refs/heads/master | 2023-06-08T10:43:13.646824 | 2023-05-26T11:55:31 | 2023-05-26T11:55:31 | 241,561,705 | 0 | 0 | null | 2023-03-05T14:31:04 | 2020-02-19T07:41:36 | Python | UTF-8 | Python | false | false | 1,020 | py |
def doctor_visit(jon_ah, doc_ah):
if len(doc_ah) < len(jon_ah):
print("go")
else:
print("no")
while True:
#0-999 a's and h at the end
jon = input("Jon: ")
doc = input("Doc: ")
if jon[-1] == 'h' or doc[-1] == 'h':
if len(jon[0: len(jon) - 1]) <= 999 and len(doc[0:len(... | [
"gonzalobetancourt@me.com"
] | gonzalobetancourt@me.com |
6dddd15cb1bc357c82a2804ea351a1d8db0a777f | 707baf19fbfb0f9b20eefe5032e9810265c8d4e4 | /test/functional/p2p-leaktests.py | 6e196ac59dbe0e777008292a6926863856e9adf2 | [
"MIT"
] | permissive | tmiholdings/tmi | dc397c895fd8d801e2769fa18feae30f6ddceafc | f1b6027f025dafc40616cde076df2f4b8cdae8a2 | refs/heads/master | 2020-06-30T23:09:46.155886 | 2019-08-07T05:40:59 | 2019-08-07T05:40:59 | 200,978,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,855 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The TMIcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test message sending before handshake completion.
A node should never send anything other than VERSION/VERA... | [
"tmiholdings@daum.net"
] | tmiholdings@daum.net |
283f2f2e55f77f3757ba14cc672c22e63e8862b9 | 48f297637ae79f0242e4cbc0944b68e5ae331a13 | /0692_top-k-frequent-words.py | a9780c797a441405b28176cc181ba2a5d9bcdcdd | [] | no_license | bolatov/leetcode | a1ff46be79ccb46e7c8e8b754ef35579ce4bd863 | 8da24f993535cf22ae1af5b8a98fd9dada22b498 | refs/heads/master | 2020-04-17T08:59:23.516987 | 2019-12-19T14:50:15 | 2019-12-19T14:50:15 | 65,895,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | from collections import Counter
def is_before(u, v):
"""Check if pair `u` comes before `v`"""
u_freq, u_word = u
v_freq, v_word = v
if u_freq > v_freq:
return True
if u_freq < v_freq:
return False
return u_word < v_word
def bubble_up(heap, i):
"""Move pair of (frequence, word... | [
"noreply@github.com"
] | noreply@github.com |
c0a92dc535604ff0d59ca55ad866c155ae5511b9 | f0117325b7a40779965b35ec6cefc8d12353d779 | /python_exercises/loop_ex/2_n_m.py | 81273ae8b7d52d861cd6273fb57acc0b161df574 | [] | no_license | joshwestbury/Digital_Crafts | 4188e71ad631439dcb2cca9eea63d29400c37dc0 | 66c06f198d110388781a30c0ecb7902d3a8daf5a | refs/heads/master | 2021-07-24T05:37:02.370341 | 2017-11-04T14:36:39 | 2017-11-04T14:36:39 | 103,189,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #Same as the previous problem, except you will prompt the user for the number to start on and the number to end on.
a = int(input("What number should I start on? "))
b = int(input("What number should I end on? " ))
for i in range (a, b):
print(i)
#figure out how to put the input statements on the same line
| [
"joshwestbury@gmail.com"
] | joshwestbury@gmail.com |
00276f52576015f87cc070be920aae247664a053 | 1ec4f0c82a6342063fef847474dc5924c4fe71c6 | /dcmslurm_make.py | 968184969ec567b87cb2e4f3974abdd3778b97c1 | [] | no_license | leelabhub/dcmslurm | 5b97ba794eb02567cce3f08c234aa24d9de5c10d | df5e2b1994c5524f0fa90fc3138f953bdd1432f8 | refs/heads/master | 2021-07-14T17:59:39.328578 | 2017-10-21T18:00:08 | 2017-10-21T18:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,565 | py | """dcmuslurm_make.py
This module generates scripts to run spectral DCM on a SLURM cluster.
The functions can be called independently, but the typical usage is to call
make_scripts_all in a script in which the relevant keywords are given and the
parameters are defined in a separate script. The general use is to ge... | [
"noreply@github.com"
] | noreply@github.com |
ffaa66a27642c062e9fbe349e489cc69524e50a9 | ef955c7e5f4a560c95f42202a459449308450c59 | /spinup/algos/tf1/bootstrapped_pg/klucb_sac.py | f5a690c882eab28562a1380ff43787f98eab0b95 | [
"MIT"
] | permissive | anandrajasekar18/spinningup | 4e1527bdaf24328c91696bc2c6eb9b28007f1ef3 | c14daf6579e0341a387358adf4230de36d6e7cd4 | refs/heads/master | 2021-04-24T00:37:14.995757 | 2020-03-25T18:08:49 | 2020-03-25T18:08:49 | 250,045,253 | 0 | 0 | MIT | 2020-03-25T17:26:04 | 2020-03-25T17:26:03 | null | UTF-8 | Python | false | false | 16,128 | py | import numpy as np
import tensorflow as tf
import gym
import time
from spinup.algos.bootstrapped_pg import core
from spinup.algos.sac.core import get_vars
from spinup.utils.logx import EpochLogger
# from SMPyBandits.Policies.klUCB_forGLR import klUCB_forGLR
# from SMPyBandits.Arms.kullback import klucbGauss
# from SMPy... | [
"anand.rajasekar18@gmail.com"
] | anand.rajasekar18@gmail.com |
cb8fa7993d28e68af554a2ed1f56341714a22a4f | 478d095966166ae77bd39238c43b3e428e9a48e7 | /4 Строки 18.09/num_pi.py | 190e48067ac48fcc87f3dcf182a6995a1084207a | [] | no_license | AAlexIII/Welcome_to_Py | 3b07c6f2d953b7a31def6299e42d03acda4300e9 | b545144806c4d8092821a6e27b5876c02448fcad | refs/heads/master | 2021-07-11T06:10:39.470409 | 2020-10-09T08:53:55 | 2020-10-09T08:53:55 | 208,157,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import math
def not_pi(k):
return round(math.pi, k)
print(f"Вот то что вы хотели {not_pi(int(input('Сколько знаков пи вас интересует? ')))}")
| [
"a.alex.2000@mail.ru"
] | a.alex.2000@mail.ru |
a4386519e6338b9c3dd8af64aa1c10a2e7c08b79 | 6549cf82178a3d2f9ba231cb9851fd20dc6ccea3 | /model.py | 7be69cbdc0b0d1306f34ee35caf286abe62cc2ae | [] | no_license | rxhxt/R-5-ASSIST | 9cf35814ab328b5e283452f4d638e997ad150bbf | 15d9b134d4dab6753a1207f68bb5d4c6837a1cc8 | refs/heads/master | 2023-01-01T08:30:03.470079 | 2020-10-10T11:37:47 | 2020-10-10T11:37:47 | 297,110,235 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,728 | py | from imports import *
from mail import *
model = T5ForConditionalGeneration.from_pretrained('t5-small')
tokenizer = T5Tokenizer.from_pretrained('t5-small')
device = torch.device('cpu')
nltk.download('punkt')
def cleanText(text):
text = re.sub(r"@[A-Za-z0-9]+", ' ', text)
text = re.sub(r"https?://[A-Za-z0-9./]... | [
"jineshparakh@hotmail.com"
] | jineshparakh@hotmail.com |
7a57b9d8fc4353b0116d5eb59291d529fd673296 | 91e98f30ab87f13cbd533c276e24690912690b35 | /BlaineFry/Phys_707_Model_Selection_v2.py | a908f6a9aff841b250489f5e5527751582a51e48 | [] | no_license | ladosamushia/PHYS707 | a5a3f4954746722a3c7e530730a7cbd01caeb5f4 | 968e143022d49bfe477590b38e40184e3affed02 | refs/heads/master | 2020-07-20T06:38:42.914658 | 2019-12-23T12:27:43 | 2019-12-23T12:27:43 | 206,591,395 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 09:52:28 2019
@author: Blaine Fry
"""
# import packages
import numpy as np
from numpy import random as rand
from matplotlib import pyplot as plt
#%% generate some data
Npoints = 50
mu_0 = 1.0
sigma_0 = 1.0
data = rand.normal(loc=mu_0,scale=sigma_0,size=... | [
"noreply@github.com"
] | noreply@github.com |
9c0cf1c8261160763e6b9bd9b4485efef74b2d8d | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/code/leetcode/TOOLS/BinaryTree-master/test/__init__.py | a503b9948e4bb811046d2e3362574e7f4bed412b | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | from test_binary_tree import *
from test_tree_node import *
| [
"643472092@qq.com"
] | 643472092@qq.com |
b8b654ff6871dffa670be45c300d5129b9e7f7ab | 527dd4b545b7062c1939827b4513f9b215d4b0f2 | /listp.py | 3e8ac70da0d6cf5760d1eb1afcf38f966c00f93b | [] | no_license | Suraj-Kumar-Dubey/python | d02d6f2bfedb9729878b4e4f7d3a8e9a06087b6e | d92942559c7865788d34735882200fd8bbf12766 | refs/heads/master | 2021-01-09T05:19:56.761877 | 2017-02-02T18:27:02 | 2017-02-02T18:27:02 | 80,753,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | rng = input("enter the range")
list = []
for i in range(rng) :
x = input("enter the number")
list.append(x)
print list
list.sort()
print list
print list[-2]
| [
"surajdubey302@rediffmail.com"
] | surajdubey302@rediffmail.com |
fc6c7e17a5a0737e41e1d3fda989998f0019ad5e | ea2f33ac71a144c9c39fad6f229cb93d87de9fa8 | /exercise02_write.py | f24425c3aeb5e9c67439917e5ea72ef8d5aa659d | [] | no_license | ym7979/aid-1 | 1301235d0e6f43d68fff3cd4e83ad8ee2bdb88fe | f460cea87449a15ab06af517eba671e4a643274d | refs/heads/master | 2020-12-13T03:02:20.021658 | 2020-01-16T10:49:02 | 2020-01-16T10:49:02 | 234,293,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import pymysql
# 连接数据库
db=pymysql.connect(host="localhost",
port=3306,
user="root",
password="123456",
database="stu",
charset="utf8")
#生成游标对象(操作数据库,执行sql语句,获取结果)
cur=db.cursor()
# 执行各种sql操作
sql = "insert into cls (name,ag... | [
"1176195161@qq.com"
] | 1176195161@qq.com |
00bfc63f1bf21d0a15cb4d8c99e4ebae6038a881 | e0c257a6846ffac4303a733ba2420cfc1dc7526b | /src/199. 二叉树的右视图.py | bdd7c21f3fae0a40eacf2259dd62b7ebf00f87e7 | [] | no_license | Hanlen520/Leetcode-4 | 1d21112e23d8a782e0bfe82d3b1cc216fc1ef350 | 389e004052ba2c0951ffd66af97ac368f7de84d4 | refs/heads/master | 2022-03-31T21:48:49.675426 | 2020-01-06T17:21:45 | 2020-01-06T17:21:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | """
给定一棵二叉树,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def rightSideView(self, root: TreeNode) -> List[int]:
if not root:
... | [
"bjwu@zju.edu.cn"
] | bjwu@zju.edu.cn |
46832810e66777462aaa65daf4a2fd3b539daa67 | 1e2630724d366a801988178a174905961797248c | /formating.py | e72ee38b5d89cb8049609bcb5b787253056de7db | [] | no_license | cesarmaina/python-scratches | 8d290831e413aae316b1995168dda3c4a2df0f01 | 85a847c89b43026cfa778b3fae793e5f5c23899b | refs/heads/main | 2023-07-11T16:14:01.344388 | 2021-08-12T08:27:28 | 2021-08-12T08:27:28 | 383,376,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #removing parts of the naming string
import os
print("eg /root/Videos")
print()
dir=input("Enter the file directory: ")
os.chdir(dir)
print(os.getcwd())
print()
print("files available are:")
for x in os.listdir(os.getcwd()):
a,b=os.path.splitext(x)
i,j,k,l =a.split(" ")
new_name="{}_{}".format(i,l)
p... | [
"noreply@github.com"
] | noreply@github.com |
37cf2e93f4c27892d6d3d0cf64c3981e549f5aa5 | ba850639122e1bc2f0e9798986ab34e43befa635 | /examples/p3can/p3can_demo.py | 3ac7e2dc6eb09907b818ae4dfcce1da76b1722a2 | [
"MIT"
] | permissive | KDriesen/tribology | 5a491bcd7c9f1b57e17d1efcdf3aae99841b1ef5 | 09bf75d670fb3d86575ca4bdced00d5dce2d4af7 | refs/heads/master | 2022-02-27T01:59:39.771791 | 2019-08-19T09:08:48 | 2019-08-19T09:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """
Short demonstration of how to use P3CAN module of the tribology package.
"""
from tribology.p3can.p3can import p3can, generate_input_file
import os
def p3can_demo():
"""
Generate a P3CAN input file, then start a simulation run. This function
performs a number of simulation runs for different simu... | [
"moritz.ploss@googlemail.com"
] | moritz.ploss@googlemail.com |
5565adee97331eac2b4139117a7071131dc8f1f0 | 07cdf16998da4bb0c1173ec968d835b073ddd7de | /stream_example/comenzi.py | 2599e356c85cd043866c8ca44ba687c587648cd3 | [] | no_license | AndreiCherechesu/eestec9 | 4e90735a7fe6b4f3f6dcda6e775637c813410045 | bc23f5b6269084e9e4c4f4fda44a1f3e99216da8 | refs/heads/master | 2020-04-29T08:01:50.920214 | 2019-03-19T17:37:11 | 2019-03-19T17:37:11 | 175,972,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,268 | py | import cv2, sys
import requests
import json
import time
import socketio
from utils import printTimeDiff, initTimeDiff
from client import startListening, curFrame, frameFragments
def example(frame):
#TODO: do something with your frame
#render frame to our screen
cv2.imshow('client', frame)
cv2.wai... | [
"andrei.cherechesu@gmail.com"
] | andrei.cherechesu@gmail.com |
35a61af3b0f6f690a4eac432d69103781468c94e | bba3a68b188fed58e3226fe1efa83eee808d68ad | /umfrageseite/umfrageseite/urls.py | 49ad26b164e287109f6c78e775487c7e78e29a7d | [] | no_license | Maurice73-Tech/Test-Project1 | d82c8dfe534caffec3f94e5b6f2edb35d96f027b | 9c17ea6bf4d74e6cad02c81134e3f12c8b28a3c4 | refs/heads/main | 2023-09-04T07:22:13.271975 | 2021-10-31T18:38:44 | 2021-10-31T18:38:44 | 422,291,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """umfrageseite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-... | [
"maurice.neidhart97@gmail.com"
] | maurice.neidhart97@gmail.com |
9c97105142970516183c7db5852d5d9ff221957b | b66f090edbccaa217c28f5ebc85a98258837cf87 | /lattice_calculator_procedural2.py | 4e40934ef4d459115a08291abbcd26425657e42b | [] | no_license | dquintana/PyCrysFML | d2bc0536a01e29f0744891e0c2ecff4b85910cb2 | d86eedc4401af539a3f40d179b440b4fa6b2e242 | refs/heads/master | 2020-04-16T22:38:19.011436 | 2013-06-12T19:06:19 | 2013-06-12T19:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,425 | py | import numpy as N
import math
import unittest
eps=1e-3
pi=N.pi
#Interfaces to the user are to be in degrees--internally, we may sometimes convert to radians
def sign(x): # I think this one include in numpy
if x>0:
ret=1
if x<0:
ret=-1
if x==0:
ret=0
r... | [
"dquintan@andrew.cmu.edu"
] | dquintan@andrew.cmu.edu |
4365938a5db92558c7c18ea93d358dfe9ffed5bd | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p49.py | 88e5b7863a391d3d438604eab2bbd0cc41c6c173 | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | class Solution:
def groupAnagrams(self, strs):
import copy
strs_cp = copy.deepcopy(strs)
for i, item in enumerate(strs_cp):
item = list(item)
item.sort()
item = ''.join(item)
strs_cp[i] = item
table = dict()
for i, item in enume... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
c1665ca29eb89bec54f23abc0101df65132a1288 | a359924a5c3e4e74b6a96199d0daf59b09d950ab | /http_server_socket.py | a3429391513c183be401aff136cff9fb86214977 | [] | no_license | Sbregiuz/trainchecker | c8b4b5ac98fc6c8b75cfba1ce96e0ac7e806c710 | 68ca3a58ddf797fb2f959d0caa7e27b1a3415ee4 | refs/heads/master | 2020-05-09T10:25:20.850033 | 2019-04-12T09:23:10 | 2019-04-12T09:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | #!/usr/bin/python3
import socket
import threading
import datetime
class HttpServerSocket(socket.socket):
def __init__(self, ip, port):
socket.socket.__init__(self, socket.AF_INET, socket.SOCK_STREAM)
self.bind((ip, port))
self.listen(5)
self.accept_thread = threading.Thread(target=self.worker_thread)
self.... | [
"aesir@Aesir-Laptop.localdomain"
] | aesir@Aesir-Laptop.localdomain |
6036b4e9fe5bce86b786985656d485851ebc000e | 78918441c6735b75adcdf20380e5b6431891b21f | /api/views.py | 7db0c4896ac2f5194e3116b1611b1bf43493ac47 | [] | no_license | dede-20191130/PracticeDjango_2 | eba40532d5ce8bd4fd13fbd15d94f31942111cfa | 23593c0fa4c4dff04bd76583e8176e600ca69014 | refs/heads/master | 2020-12-23T14:23:08.039363 | 2020-02-27T12:16:00 | 2020-02-27T12:16:00 | 237,176,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | import json
from collections import OrderedDict
from django.http import HttpResponse
from mybook.models import Book
def render_json_response(request, data, status=None):
"""response を JSON で返却"""
json_str = json.dumps(data, ensure_ascii=False, indent=2)
callback = request.GET.get('callback')
if not c... | [
"1044adad@gmail.com"
] | 1044adad@gmail.com |
454182b170715cbea8bc2fdce4acf5bf5e53df24 | b6feefafed3147e13b029d8cd7f7bd2985460eb9 | /count_words.py | c1d159bd96637557b4fa96544ff18e50354cc23f | [
"MIT"
] | permissive | jmmL/misc | a44ed531a3d3bc2ff247f1959fff81dd379ef330 | 6bdbcd977fd29ea9a73f99364ff21caccd30d3d0 | refs/heads/master | 2020-12-24T14:00:44.096337 | 2015-01-24T23:05:25 | 2015-01-24T23:05:25 | 24,642,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | def main():
""" A very naive word-counter"""
wordy_string = input("Please enter a string:\n")
alphabet = ["q","w","e", "r", "t", "y", "u", "i", "o", "p", "a", "s",
"d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m",]
word_count = 0
for i in range(len(alphabet)):
if alp... | [
"jamie.lawler@gmail.com"
] | jamie.lawler@gmail.com |
222be11de59c1ac1e77cc58956a505be286371f8 | 51b3ad4581e3b451c3ff02aa66e252dfa191490f | /Exercicios python - Avaliacao/rm86180exer8.py | e15299b3b05d964ce7465b4724d35a8218904a14 | [] | no_license | xmelo/Projects-_Python | 2fd925130b5f29517b5f22eb85159eb44c0f95ac | e966ff7ae6e17ad1568bd9a87d61f0bd2e2401db | refs/heads/main | 2023-06-04T05:07:41.298564 | 2021-06-23T15:53:45 | 2021-06-23T15:53:45 | 379,651,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | n1=float(input("Digite um número real:"))
n2=float(input("Digite outro número real:"))
resul= n1 + n2
if (resul > 10):
print("O número é maior que 10!")
elif (resul <= 10):
print("O número é menor ou igual a 10!") | [
"noreply@github.com"
] | noreply@github.com |
d37fe7dd2eeed9cd1671d7f0927797b718040ff6 | b4166044870d1c026e86c95ac41e3e3613ee424f | /python_basic/abc035_a.py | cb3e26984addc996cbe33c23443e49ee4d0229ba | [] | no_license | nsakki55/AtCoder | 2cbb785415a7c0b9df9953ddc3706c90a5716a03 | 03c428e8eb8f24b8560d00e2388ba75509619690 | refs/heads/master | 2020-05-31T04:33:06.400697 | 2020-01-19T13:41:41 | 2020-01-19T13:41:41 | 190,099,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | w,h=map(int,input().split())
print('16:9' if w*h%144==0 else '4:3')
| [
"n.sakki55@gmail.com"
] | n.sakki55@gmail.com |
890771890284fc4e615b8f2f73d9492d94c535d0 | 90e6e97d94a660c01d30cd04d539f86da3fa7f89 | /client/flash.py | b2a5eb69bcbd6de06eddd8f27ad3baa486aea060 | [
"MIT"
] | permissive | webfpga/icestorm-server | 679643beb4bbce55b11f5535cc1506ad2e769de1 | a5a93dc48cc88a896cd5a0fe5739341e206d71dd | refs/heads/master | 2021-06-13T06:08:05.243501 | 2020-04-30T09:09:48 | 2020-04-30T09:09:48 | 202,099,251 | 7 | 2 | MIT | 2021-05-29T13:16:08 | 2019-08-13T08:28:03 | C++ | UTF-8 | Python | false | false | 55 | py | #!/usr/bin/env python
print("not implemented yet :(")
| [
"ryan@rmj.us"
] | ryan@rmj.us |
0bdbc4e81f4ff6d06481139ee1a7e5694826e4e9 | eece2111c05d8aaa9325557be95057b11e20320d | /2019_CSE4020_2017029716/Assignment10/2017029716-10-1.py | 762418385b5b9f7d64875a6128e35e09ef9b4939 | [] | no_license | hyedoii/computerGraphics | 4e1559da144087892c77c4ef68ff3215c0de2f79 | 4799704c2987cbaaf786b27f4c744d9992ebbed4 | refs/heads/master | 2020-09-03T12:52:25.200554 | 2019-11-04T10:07:47 | 2019-11-04T10:07:47 | 219,466,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,740 | py | ###################################################
# [Practice] Euler Angles in OpenGL
import glfw
from OpenGL.GL import *
from OpenGL.GLU import *
import numpy as np
from OpenGL.arrays import vbo
import ctypes
gCamAng = 0.
gCamHeight = 1.
xang = np.radians(0)
nang = np.radians(0)
zang = np.radians(0)
... | [
"noreply@github.com"
] | noreply@github.com |
ce624f97e6b59f461ccb016aeca61ba1ca5ceb9b | fb48a5567c094b0d7a1b83a2ea48fd8259450ee6 | /Diffle Hellman/Diffie-Hellman Starter 1.py | cea0e070c079682400845c83f97767c1ffc1a25c | [] | no_license | zoeyy-enabs/Challenges | a89c10b8ba0c2c9df3017deec95e458ae70437c2 | 729a7e9383335a5455e16c8184a817fcd254c552 | refs/heads/master | 2023-02-09T19:14:16.473922 | 2021-01-10T09:19:29 | 2021-01-10T09:19:29 | 300,939,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | inverse(209, 991)
| [
"noreply@github.com"
] | noreply@github.com |
2503cf4464e2c19eefba93d69073f600d9ab89e3 | ffe20630810998085cb9ac71a9145e9fe4b528b1 | /recommenderModels/POImodels.py | 4ef0fecc1f385d8bba404b252429c0ada02cccb4 | [] | no_license | DankoGVizlore/LCIficontent-GAE | 632df88b0223aad157587a3f4b9c4cbdddd38daa | 9f08d85b6e387423971313f3a9f971f81c1502ed | refs/heads/master | 2021-03-12T20:30:41.224761 | 2014-09-12T17:20:32 | 2014-09-12T17:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from google.appengine.ext import ndb
class POI(ndb.Model):
""" Model for basic POI
for days we use 1 - Monday; 2 - Tuesday; 3 - Wednesday; 4 - Thursday; 5 - Friday; 6 - Saturday; 7 - Sunday;
categoryID is a ID from category table
"""
name = ndb.StringProperty()
categoryID = ndb.Intege... | [
"danko.gutesa@vizlore.com"
] | danko.gutesa@vizlore.com |
b83130ad17b33804cafb2e56e57a0338e7906436 | 68323482aaa3bd7f7cad23e47b836cff28ac7b81 | /env/lib/python2.7/site-packages/djangocms_text_ckeditor/__init__.py | 80e1f3d09d72a2c193e3708d32198290cfe5f97e | [] | no_license | addsimm/cms8 | d8add85985f025993b885b1901afbc981850837d | dc19b010169c046dc2981009c402ad914182fa41 | refs/heads/master | 2021-01-20T11:00:06.630720 | 2015-12-05T17:23:33 | 2015-12-05T17:23:33 | 47,465,287 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
__version__ = "2.8.0"
default_app_config = 'djangocms_text_ckeditor.apps.TextCkeditorConfig'
| [
"adamfsimon@gmail.com"
] | adamfsimon@gmail.com |
4fed593d5f025735e0ad7e586d3fa993077381f3 | 5e5252812e67393a75830b313cd0d746c912123b | /python/Calculating with Functions.py | 5da5ee3fd6e14cf8e4c65e409919b2cbc840f9a6 | [] | no_license | Konohayui/Codewars | 20dfc6b147d2afd68172d5f5824b6c8c8dfa05f1 | 97291462e7b2e42e437355fb676e9152013a5e3a | refs/heads/master | 2021-10-19T18:07:26.973873 | 2019-02-22T22:52:33 | 2019-02-22T22:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | '''
Modified Xueyimei's solution
for better understanding
'''
def zero(f = None):
if not f:
print("first 0")
return 0
else:
print("second 0")
return f(0)
def one(f = None):
if not f:
print("first 1")
return 1
else:
print("second 1")
retur... | [
"noreply@github.com"
] | noreply@github.com |
0ce4d017a693b7e97b1e5d0155a0b3359b9d6cd9 | 845cfc4e60934bc91c837c1123ed6df19c45da2f | /banking.py | fdaeaa996c6ac0208a0d6d8ba3b405c068bf0e77 | [] | no_license | macsee87/bank_system | 28233d7f7c9392ccaee9518fcb101d9e7f9b1fa0 | 7702148b0c16240b5e79e6fe16b7707d9207c0a8 | refs/heads/master | 2022-11-25T15:39:43.953679 | 2020-07-12T17:06:59 | 2020-07-12T17:06:59 | 279,108,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,007 | py | import sqlite3
import random
import os.path
# check if the database already exists
if not os.path.isfile('card.s3db'):
conn = sqlite3.connect('card.s3db') # Make the connection with the database
c = conn.cursor() # Create a cursor
# Create table
c.execute('''CREATE TA... | [
"noreply@github.com"
] | noreply@github.com |
6ade2e993792afdb890bf1237f2f646754a03800 | 2d5ac089c41dc5b495ca63e4f064038013fb8a57 | /text.py | 930048c277c41a51b51caf8a7e7806e981ca1ab4 | [] | no_license | NoNamesUserName/homework | 21c8fc84c311d2f85f66a8285bf3e9d72ce64777 | 78ecdd5c1d49b251fec3efef0ed12e5f707e38b3 | refs/heads/master | 2020-04-18T08:06:09.220477 | 2019-05-02T14:08:03 | 2019-05-02T14:08:03 | 167,384,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | """
Noah
Rivera
Block1
"""
"""
file_stats.py
A program to determine the following statistics about the file:
The number of lines in the file
The number of words in the file
The number of 4 letter words in the file
The number of each of the vowels in the file
The longest word in the file
"""
"""
ope... | [
"noreply@github.com"
] | noreply@github.com |
362bd2587bf53f17a12c58f928ca7a559f73578e | 8db400391078d9325b928e3c92fb61ed275164e7 | /pypong.py | 26da7d9271f25399b76ff3a3f1ee03bca561abf6 | [] | no_license | Andy87730/tests | e631671e81cb6bbd86df162ef413f104a09abb79 | 2b9d2fccea84d5d471635ec63afe40e6dff27d16 | refs/heads/master | 2020-05-04T03:20:53.568831 | 2020-04-29T19:52:25 | 2020-04-29T19:52:25 | 178,945,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import pygame
import random
import sys
x = 500
y = 500
sbreite = 100
shoehe = 15
sx = 200
sy = 450
bx = int(x/2)
by = int(y/2)
brad = 15
speed = 0
bxspeed = 1
byspeed = -2
leben = 3
pygame.init()
screen = pygame.display.set_mode([x,y])
screen.fill((0,0,0))
pygame.draw.circle(screen... | [
"noreply@github.com"
] | noreply@github.com |
df3ecbe593627c41b7a80ce190bed5815b414e04 | cf182785179d785ee30ccc2e73cabe30008f711c | /tools/c7n_mailer/tests/test_azure.py | 65d173cd9006c29c9141408c80844fb0b51124ae | [
"Apache-2.0"
] | permissive | ChrisRx/cloud-custodian | c320dd39797add280e926ce5642e5f49895ee22d | f2fe25e75f9c863f276da5d04e54f59981eac38a | refs/heads/master | 2020-03-27T14:10:28.371559 | 2018-08-28T21:33:09 | 2018-08-28T21:33:09 | 134,552,314 | 0 | 1 | Apache-2.0 | 2018-06-28T14:31:50 | 2018-05-23T10:19:24 | Python | UTF-8 | Python | false | false | 3,416 | py | # Copyright 2018 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"noreply@github.com"
] | noreply@github.com |
d939e0132b157eb8dafacb0512eb6e9d390ebdfc | 1e86ae73b8340c453946ca9ccc39802743dc52ff | /src/utils/viewsets.py | 7e3a0c1890f77c6f61cc2353ab18866ffb1a411b | [] | no_license | pranavkneeraj/contact-backend | 65afc3619766d233d68c8c551ee0d3e0f0891ced | 19707c075d149dc95bedb8b14cddc23317e2f889 | refs/heads/master | 2020-04-05T14:02:50.182024 | 2017-06-29T12:25:57 | 2017-06-29T12:25:57 | 94,749,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | """
Common Viewsets
"""
from rest_framework_extensions.mixins import NestedViewSetMixin
from rest_framework import viewsets
from rest_framework.views import APIView
from rest_framework.response import Response
from .pagination import StandardResultsSetPagination
class PaginatedViewSetMixin(NestedViewSetMixin, viewse... | [
"pranav.k@amazatic.com"
] | pranav.k@amazatic.com |
c1cbec664bbc7d9d3fbeb57dda8c5cd6a4e338e9 | eb8660d8a7c7557af0fd681a4cce305e1fc73ef9 | /client-samples/asterisk/eagi-ru.py | a3fc941af833160c49e4b1a678ce0de03ecb2971 | [
"Apache-2.0"
] | permissive | morfeusys/vosk-server | d4639eaaae7b2e171bd99618513100100d94e773 | 955517bfcc8a7ef3f93ed5ace50052234aa3bf74 | refs/heads/master | 2021-01-14T19:18:55.803416 | 2020-02-24T12:57:55 | 2020-02-24T12:57:55 | 242,727,733 | 1 | 0 | Apache-2.0 | 2020-02-24T12:14:17 | 2020-02-24T12:14:16 | null | UTF-8 | Python | false | false | 1,260 | py | #!/usr/bin/python3
from asterisk.agi import *
import os
from websocket import create_connection
import json
import uuid
AUDIO_FD = 3
CONTENT_TYPE = 'audio/l16; rate=8000; channels=1'
ACCEPT = 'audio/pcm'
def play_text(agi, text):
fn = str(uuid.uuid4())
os.system("espeak -v ru -w /tmp/%s.22.wav \"%s\"" % (fn,... | [
"nshmyrev@gmail.com"
] | nshmyrev@gmail.com |
5b729775f69c7b6aab5d04d8874c1847ce0303e3 | 232c4c67ebe5241aa180d9434fca8ae290c9aad1 | /cogs/poeng.py | 147b96756c5dc6edf87e7aaaad6dc4787239d742 | [
"MIT"
] | permissive | msingstad/ProgBott | 4049d3ab9c707f0d6ee7a49c4139281440c1d78c | 3ae6daf3aebef87f58a00c1c3fad7abeabcf182d | refs/heads/master | 2023-08-25T10:11:32.031560 | 2021-07-24T20:28:26 | 2021-07-24T20:31:03 | 415,925,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,100 | py | # Discord Packages
import discord
from discord.ext import commands
from discord.ui import View
# Bot Utilities
from cogs.utils.defaults import easy_embed
import asyncio
import codecs
import json
import os
import time
# Define a simple View that gives us a confirmation menu
class Confirm(View):
def __init__(self... | [
"me@roxedus.dev"
] | me@roxedus.dev |
b8057bfd90277d7f954e3713e2198773a6ce19d8 | 78ade3f3f334593e601ea78c1e6fd8575f0fe86b | /tfx/examples/chicago_taxi_pipeline/taxi_utils_test.py | 466676a43ebd5b80bfdecd3f72a58490953f907b | [
"Apache-2.0"
] | permissive | rmothukuru/tfx | 82725e20a7d71265f791122ec3ec5d7708443761 | f46de4be29e96c123e33f90245dc5021d18f8294 | refs/heads/master | 2023-01-11T08:50:20.552722 | 2020-11-06T11:11:47 | 2020-11-06T11:11:47 | 279,754,672 | 1 | 1 | Apache-2.0 | 2020-07-15T03:37:39 | 2020-07-15T03:37:39 | null | UTF-8 | Python | false | false | 7,554 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
21f7189af2c3e27c6e21660e5a8e8bd14728887b | cd1fbb71d8ec429b7364f9dd90448efe37e45ffb | /code/bert4keras/models.py | 7785715466d81aad2031616974999360f43f72b9 | [] | no_license | chenxichen95/Tianchi2020ChineseMedicineQuestionGeneration | bfc4d47df12f77947f7e8a65a8766468694fb45b | 101b41bca42eebda74ac554cefd1dfe40a1cab04 | refs/heads/main | 2023-01-29T00:38:15.143691 | 2020-12-10T11:57:28 | 2020-12-10T11:57:28 | 320,256,029 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 69,730 | py | #! -*- coding: utf-8 -*-
# 主要模型
import numpy as np
from bert4keras.layers import *
from bert4keras.snippets import insert_arguments
from bert4keras.snippets import delete_arguments
from bert4keras.snippets import is_string
from keras.models import Model
import json
class Transformer(object):
"""模型基类
"""
... | [
"xichen_ghost@outlook.com"
] | xichen_ghost@outlook.com |
3dba9cc472654cbd43ec5366ccd01fa7bd6f03de | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/type_start_end_time.py | 9a4b3e1df4ef31fe8155d79f3f8f6c17d3a73f86 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,920 | py | from __future__ import annotations
from dataclasses import dataclass, field
__NAMESPACE__ = "http://www.travelport.com/schema/vehicle_v52_0"
@dataclass
class TypeStartEndTime:
"""
Used to specify earliest and latest pickup/dropoff times for a vehicle.
Parameters
----------
time
The time ... | [
"chris@komposta.net"
] | chris@komposta.net |
40a852ce1416267d85f30763734bc0bd82b6157b | d71b7866fecab36e5116318fa671265b7471cc08 | /substrabac/substrapp/serializers/algo.py | e18f32498b0a5e979e4be4bef43cf98e72acd56b | [
"Apache-2.0"
] | permissive | sibeshkar/substrabac | dc00bf9a4190720391811dcdf6de2c91c880d760 | c8a7623cbc4454da0caff99311e415f647a9edab | refs/heads/master | 2020-03-23T05:02:46.054483 | 2018-06-28T07:32:30 | 2018-06-28T07:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from rest_framework import serializers
from substrapp.models import Algo
class AlgoSerializer(serializers.ModelSerializer):
class Meta:
model = Algo
fields = '__all__'
| [
"guillaumecisco@gmail.com"
] | guillaumecisco@gmail.com |
3fb4d4b5cef44e193280b2afc153c3aae446bfcc | d19469cce07cb05673d0d5269d6a84c555bc1eb8 | /IDS_Model-master/Extra_code/2.py | b5fda321018d3a3b3e5ea45bd77855e40cde2146 | [] | no_license | s3r-be/test_files | 4c438731812e1ae0238dd9ea2cad9e55c7d79404 | ac415175531034c0ee900f5fbbff906121e821ec | refs/heads/master | 2022-12-12T21:59:29.486073 | 2020-06-22T10:42:42 | 2020-06-22T10:42:42 | 239,291,484 | 0 | 0 | null | 2022-12-08T06:24:34 | 2020-02-09T11:16:31 | Python | UTF-8 | Python | false | false | 1,067 | py | import pandas as pd
import time
start=time.time()
df=pd.read_csv('first_dataset_3_attacks.csv', sep=',')
l=list(df["Info"])
df=df.drop(axis=1,columns="Info")
# print (df.columns)
s=[]
num=[]
for i in range(0,len(l)):
if (l[i].startswith("GET")):
#print("Hh")
a = l[i].split("=")
b = (a[1].spl... | [
"rhish9h@gmail.com"
] | rhish9h@gmail.com |
ea67b257d486b0630025a0e3b1ae137a45ba25a4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3533.py | 9879255d0fdf486ca055ce49640b6af70af43a61 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,754 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b55a5033285fe85e350014f77edb19070e901038 | 947acace352c4b2e719e94600f7447d1382adfe2 | /env/Scripts/painter.py | 3b388efab78cf5cdae0a57d979b2692a59b44692 | [] | no_license | skconan/autoPlayAtariBreakout | ac9de1ef3342e81b57519fe588eb88e9bb6c6695 | 3a7167f31d810951b099c30bfceed0da6dcdf12f | refs/heads/master | 2022-12-21T15:21:44.552250 | 2017-10-10T08:54:18 | 2017-10-10T08:54:18 | 106,190,698 | 2 | 2 | null | 2022-12-11T06:28:01 | 2017-10-08T16:18:04 | Python | UTF-8 | Python | false | false | 2,215 | py | #!c:\users\skconan\desktop\พี่สอนน้อง\env\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we split
# the image into ... | [
"supakit.kr@gmail.com"
] | supakit.kr@gmail.com |
66a7397ff8de2cf95bd95e3e9c8d7c740854c517 | d59521ab1a25df17f8b945847e1bc51745ff29c9 | /data/01_DataCleaning.py | 29b1af4982599419c08fb3b7af0baeb08dc6f923 | [] | no_license | geneveeves/foreign-aid-analysis | 45d0b40b34d9209edb4c6b3030b3e63b19c2cc98 | 94c7adb86e57cf3d4b49322553c58bd72d98d485 | refs/heads/master | 2020-12-29T10:26:29.331410 | 2020-03-14T00:42:37 | 2020-03-14T00:42:37 | 238,573,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import numpy as np
import pandas as pd
#Data sets to clean:
# 1. GINI Index (World Bank)
# 2. Internally Displaced Persons (World Bank)
# 3. Total Population (World Bank)
# 4. Gender Parity Index - School Enrollment (World Bank)
# US Foreign Aid Spending (USAID)
# Target Data:
# Governance Indicators
#Function ... | [
"gmmcguire2@gmail.com"
] | gmmcguire2@gmail.com |
0738fce7d88f73a4db36cdadc81d56e408103033 | 370d1cef798460dc6d0682d78b3b619acdb24506 | /HER/rcnn/large_dataset.py | 53b5ba3419fb234043ce03ec4f9baa4263510cb8 | [] | no_license | xuexidi/ActiveVisionManipulation | 9d3c83c2db5225bc0ca17c0ca77370affd3af132 | 3ec06f7bce2a35c56674d11302ba36c30baa5b08 | refs/heads/master | 2023-04-01T21:21:02.813851 | 2019-05-23T19:11:01 | 2019-05-23T19:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,478 | py | import sys
if ('HER/examples/run.py' not in sys.argv[0]) and ('HER/examples/visualize.py' not in sys.argv[0]):
try:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import visualize
except:
print ('import failed')
from Mask_RCN... | [
"ricsonc@andrew.cmu.edu"
] | ricsonc@andrew.cmu.edu |
751bdf6f60dff41304f0776cb5d494154868f8d8 | e8f5940c3ebf36dcbe8afa6f2c84b6ee13059fcf | /007-dictionaries.py | feb48935b3261065e0178c5e57f8d86365f863a6 | [] | no_license | thilinasandaru1/python-fundamentals | 26c4071a0a00bbe116766d908cfd9ecda5483993 | c28077520d249684dee356b4a554306a82d04247 | refs/heads/master | 2021-05-27T07:50:40.711658 | 2020-04-11T02:17:10 | 2020-04-11T02:17:10 | 254,238,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # A dictionary is a collection which is unordered, changeable and indexed
# No duplicate members.
# create dictionary
person = {
'first_name': 'John',
'last_name': 'Doe',
'age': 30
}
# create dictionary using a constructor
person2 = dict(
first_name='John',
last_name='Doe',
age=30
)
# get val... | [
"thilinasandaru1@gmail.com"
] | thilinasandaru1@gmail.com |
0309e59b8905481fd8c3f3b9a0f8e0f48aa72140 | 514eb959e0e1118f0ebb3709f74811cd5d603a4f | /scores.py | c2c1588c9ee6715b780a49370f348a889b0bf8f9 | [] | no_license | llr489/lesson2 | 68daa950ba001cdd8510b37dded7e864a0a36f33 | ad42d400d84f7a9bbd50bd231841ad25a12abf8d | refs/heads/master | 2020-04-26T14:46:11.047985 | 2019-03-05T20:25:29 | 2019-03-05T20:25:29 | 173,625,473 | 0 | 0 | null | 2019-03-06T15:00:29 | 2019-03-03T20:22:07 | Python | UTF-8 | Python | false | false | 925 | py | students_scores = [
{'school_class': '4a', 'scores': [3, 4, 4, 5, 2]},
{'school_class': '4b', 'scores': [5, 3, 4, 4, 1, 2]},
{'school_class': '5a', 'scores': [4, 5, 5, 3]},
{'school_class': '5b', 'scores': [4, 4, 3, 5, 3, 2, 4, 4, 3]}
]
def count_average(students_scores):
sum_school =... | [
"noreply@github.com"
] | noreply@github.com |
2a1493835df66ac6521310eadc4cd9c73ea5cef8 | 955c2caeb13ac0b493d0ef147c44a0d76b5ede28 | /27_52/36_mutable_string/mutablestring.py | 9982257483f5f200ce65f0b5ea7670be31344f84 | [] | no_license | ryanh153/Morsels | dcb079cafec63d895160a028fffdb799112cf364 | 087d8f4e548e31223acb39862b7491b819542320 | refs/heads/master | 2022-05-27T22:45:02.492518 | 2022-03-23T22:39:22 | 2022-03-23T22:39:22 | 214,299,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from collections import UserString
class MutableString(UserString):
def __setitem__(self, index, value):
lst = [c for c in self.data]
lst[index] = value
self.data = "".join(lst)
def __delitem__(self, index):
lst = [c for c in self.data]
del lst[index]
self.dat... | [
"rhorton@scitec.com"
] | rhorton@scitec.com |
cd8d85c2591edd6b143fb0be9a9eb0c296fb06e0 | 82410399e57cbfafc03564b6a6ad58b50ace34f3 | /edit/migrations/0003_auto_20210215_0835.py | 39a66e454a46a06d2a9a5fd6eca7cccf4a11fad3 | [] | no_license | sw-baek/Cafedb_modification_web_project | 87042b821eba234e27afff5078f10f862b6e87c6 | c47473ff0d41789f61d1be34c0f62220a52d4180 | refs/heads/master | 2023-03-08T12:06:41.500078 | 2021-02-19T06:26:35 | 2021-02-19T06:26:35 | 340,264,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.2.5 on 2021-02-14 23:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('edit', '0002_remove_shopinfo_recent_update'),
]
operations = [
migrations.AlterField(
model_name='shopinfo',
name='a... | [
"tight729@naver.com"
] | tight729@naver.com |
d3f7e5a38010e610526dfe18104e43a8f58375e6 | c4ecc70400f3c4375dd4b2335673137dd36b72b4 | /venv/lib/python3.6/site-packages/xero_python/accounting/models/contact_groups.py | 44c5b00b3e94d4523d3baf225c292a9d849de367 | [
"MIT"
] | permissive | TippyFlitsUK/FarmXero | 1bb3496d164d66c940bd3012e36e1763990ff30d | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | refs/heads/main | 2023-07-05T14:49:57.186130 | 2021-08-19T19:33:48 | 2021-08-19T19:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
clas... | [
"ben.norquay@gmail.com"
] | ben.norquay@gmail.com |
3dcc07b5fde5a9285464010165fea7791cbd6733 | 2cdca093365c498cd11f7f03385e9c9310a80113 | /reltest/kernel.py | 99fb677cf1078662bf3165d54babc6868d60fc9c | [
"MIT"
] | permissive | jenninglim/model-comparison-test | 3565a98253e05950d1dc55c39e0b8480c12b6166 | 0024d1ff76ef71a25610b368cc364a59bc672961 | refs/heads/master | 2020-07-20T21:59:02.231673 | 2020-01-08T18:13:28 | 2020-01-08T18:13:28 | 206,715,600 | 5 | 2 | MIT | 2020-01-08T18:13:29 | 2019-09-06T04:54:06 | Jupyter Notebook | UTF-8 | Python | false | false | 22,154 | py | """Module containing kernel related classes"""
from __future__ import division
from builtins import str
from past.utils import old_div
from builtins import object
from future.utils import with_metaclass
__author__ = 'wittawat'
from abc import ABCMeta, abstractmethod
import autograd
import autograd.numpy as np
#import... | [
"noreply@github.com"
] | noreply@github.com |
7b50233f4eb7c169e4d344cce9f00d54f79501c2 | 345cd996d2de63d9ab36dce7516ba1c5674248c0 | /eval.py | 63dffc8c1c7d17b00795cee1de75e4e6ec532a72 | [
"BSD-2-Clause"
] | permissive | Ping-C/certifiedpatchdefense | a66c1d673094417eda2abd389d52d6598a67c882 | f1dbb7e399c320413c17e1412d2fb0ee0d6c812a | refs/heads/master | 2021-01-04T03:58:40.349977 | 2020-09-18T14:50:10 | 2020-09-18T14:50:10 | 240,373,545 | 34 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | ## Copyright (C) 2019, Huan Zhang <huan@huan-zhang.com>
## Hongge Chen <chenhg@mit.edu>
## Chaowei Xiao <xiaocw@umich.edu>
##
## This program is licenced under the BSD 2-Clause License,
## contained in the LICENCE file in this directory.
##
import sys
import copy
import torch
fr... | [
"pchiang@umd.edu"
] | pchiang@umd.edu |
9f0bed1563c3f15bd8460ed295a3e02f73417726 | 32004989025697aec4d7097e65213fbdefaf1cde | /models/preprocess.py | a8e84602dd28604b2a3ed43f2d2cee51c1091588 | [] | no_license | jianhongwu/Kaggle-Quora-Insincere-Questions-Classification | 7552c66b48d29a8cbfd9e684a6696b7a79df3ac3 | 0d58ea0f435047953a651c53f44a6e7afaaeba87 | refs/heads/master | 2020-04-30T00:59:02.091460 | 2019-03-19T13:32:56 | 2019-03-19T13:32:56 | 176,516,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,540 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 19 21:00:56 2019
@author: WJH
"""
import pandas as pd
import numpy as np
import re
import time
import gc
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from cfg import *
from sklearn import metrics
#%%
puncts = [',... | [
"jianhong.wu0322@qq.com"
] | jianhong.wu0322@qq.com |
f9604e416d904cd2705d5cfd31893ee121898710 | 1ffb9f2ea9f0935a39eded2871d0747f60c8548c | /blogapi/models.py | a8413266df7f31f983ad2e3c94674faf8c61f4b4 | [] | no_license | alexmzirai/blogapi | 0e58bf049e235a2975b9f5df1ffe16dc2a153511 | 2e1544f79422eaefbeb9380fad0eb26bd5f191e6 | refs/heads/master | 2020-03-07T20:01:44.881420 | 2018-04-02T01:22:14 | 2018-04-02T01:22:14 | 127,686,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | from django.db
| [
"alexmzirai@gmail.com"
] | alexmzirai@gmail.com |
6e7c0f98f01d2d3be2f846dcffa5bf7cddd2be01 | b2163bfd263d37a0e0c3ac49f4c04507cc579c7f | /runs/new_ggaa_receptors/overlay_receptors.py | d6440053e3b295c3bae7b1ceab9e6fdfb84bdb94 | [] | no_license | jyesselm/SimulateTectos | 2443af83a7f64b619599f6c584d99b7c01d33fda | ba8e32eb2ec01a8de6d41dc6870796d4549a1bc2 | refs/heads/master | 2021-01-13T14:30:35.450395 | 2019-06-03T05:57:19 | 2019-06-03T05:57:19 | 72,880,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from rnamake import motif
from rnamake import resource_manager as rm
m = motif.file_to_motif("../../data/ggaa_models/GGAA_tetraloop_round2_model221.motif")
rm.manager.add_motif(motif=m)
m_new = rm.manager.get_motif(name="new_ggaa_tetraloop", end_name="A7-A22")
m_new.to_pdb("test2.pdb")
m_org = rm.manager.get_motif(na... | [
"jyesselm@stanford.edu"
] | jyesselm@stanford.edu |
872717b41ab8b999c249c90ecf54b77774dbe70a | decd69b811379750a5e2458494accdd2d8749dba | /test/simulation_test.py | df4315081ddb0d9da5ed725cc8bc5f87b2a8a442 | [
"MIT"
] | permissive | skyskys00/hornet-model | 93e3e02a27839ac402cc3520bc5eedc6ef0e9605 | d6c7dce26de241a17fd7534b0e98b6a0112bf67f | refs/heads/main | 2023-04-21T20:15:05.609729 | 2021-05-05T04:15:13 | 2021-05-05T04:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import unittest
import numpy as np
from src.simulate import simulate
class SimulationTest(unittest.TestCase):
def test_sim_no_geo(self):
"""Setup a random simulation"""
stl_lat = 47.6062
stl_long = -122.3321
n_starting_hives = 10
coords = []
for i in r... | [
"18237687+rustygentile@users.noreply.github.com"
] | 18237687+rustygentile@users.noreply.github.com |
7b47974d7c6dff9d2d526ea771620b522c940bca | 5f4da925312f9ad4b4de36e7d1861031d3f03731 | /app.py | 964943b9a931d3e43f46b67109b0c953a4cb9dad | [] | no_license | geofferyj/PROJECT1 | 1b1c0cad5c3766589af8291b0c2635d15cfd599d | 89cdfe42e27c3176dbdce79654d1161013e041cf | refs/heads/master | 2021-01-01T12:28:51.167516 | 2020-03-02T15:59:41 | 2020-03-02T15:59:41 | 239,279,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,679 | py | import os, requests
from functools import wraps
from flask import Flask, session, redirect, render_template, url_for, request, flash, jsonify, make_response, abort
from flask_session import Session
from sqlalchemy import create_engine, exc
from sqlalchemy.orm import scoped_session, sessionmaker
app = Flask(__name__)
... | [
"geofferyjoseph1@gmail.com"
] | geofferyjoseph1@gmail.com |
7aad1cf9d6acb0465048e076f816b50cf784ec85 | 1fbd992e8056548a8baaed804cd5aa93ba57651a | /Q2_PGM4.py | b418ab2bd95cc9568ec48b25fae045bbca389116 | [] | no_license | dhanusrikar/Assignment-2 | 8e26318569b1553c82ec7ba4555bcd842611c0ab | 0da1e752a5350aed1c653079075773869ae10026 | refs/heads/master | 2022-12-20T10:09:36.934918 | 2020-09-22T08:45:34 | 2020-09-22T08:45:34 | 297,587,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | #!/usr/bin/env python
# coding: utf-8
# In[5]:
from mpl_toolkits import mplot3d
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as ani
theta0 = np.array(pd.read_csv('batch_1.csv',usecols = ['theta0']))
theta1 = np.array(pd.read_csv('batch_1.csv',usecols = ['theta1'... | [
"gvsrikar08@gmail.com"
] | gvsrikar08@gmail.com |
d1a3312fd06cdd1c33319651970db66ccf6feaff | 844501294ca37f1859b9aa0a258e6dd6b1bf2349 | /snipe/__init__.py | ed31be10c2f86531161797372795b4dd3a2ba4bb | [
"MIT",
"BSD-2-Clause"
] | permissive | 1ts-org/snipe | 2ac1719bc8f6b3b158c04536464f866c34051253 | ad84a629e9084f161e0fcf811dc86ba54aaf9e2b | refs/heads/master | 2021-06-04T22:32:36.038607 | 2020-03-27T05:18:36 | 2020-04-05T21:50:42 | 18,642,653 | 6 | 3 | NOASSERTION | 2019-10-08T02:02:50 | 2014-04-10T16:01:32 | Python | UTF-8 | Python | false | false | 1,377 | py | # -*- encoding: utf-8 -*-
# Copyright © 2014 the Snipe contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice... | [
"kcr@1ts.org"
] | kcr@1ts.org |
2e406c239b4072c96a15888b2a2eb83f59ab7dd9 | 69397ce9f2aa2c66d58d2f9eb3fdb9ef74c26651 | /blogsite/apps/blog/models.py | 438b7eb2749cd9038db91785686f2c95b43aa0e2 | [] | no_license | wangjojo/second-blogsite | 8d939749c5655cdcbb4dec21bf3e8e2443ea5a9a | 1c83486d9a321cc6592131de512f398cd1a3dab2 | refs/heads/master | 2020-03-16T20:06:53.316656 | 2018-05-27T06:29:02 | 2018-05-27T06:29:02 | 132,946,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | from datetime import datetime
from django.db import models
from users.models import UserProfile
from DjangoUeditor.models import UEditorField
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=20,verbose_name='类别')
nav_display = models.BooleanField(default=True,verbose... | [
"fg498572715@163.com"
] | fg498572715@163.com |
b9fb546b5d064c6ff627572b2cd8bb3bad4cb08a | 7b71fc437d1be709bb34b64ca150769b529cc093 | /pyroms/build/lib/pyroms/remapping/roms2z.py | da6d38d78da9ead278f78f803c217f9d5e7024b6 | [
"BSD-3-Clause"
] | permissive | ongrjoe/pyroms-osx | 96495cb868d7e16f45eda21f982bc499d523f664 | 10480275941a84f51357136b5eb3b5230ec38447 | refs/heads/master | 2020-05-24T20:22:50.547174 | 2019-05-19T08:57:01 | 2019-05-19T08:57:01 | 187,454,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | # encoding: utf-8
import numpy as np
import _interp
def roms2z(var, grd, grdz, Cpos='rho', irange=None, jrange=None, \
spval=1e37, mode='linear'):
"""
varz = roms2z(var, grd, grdz)
optional switch:
- Cpos='rho', 'u' 'v' or 'w' specify the C-grid position where
... | [
"ongrjoe@gmail.com"
] | ongrjoe@gmail.com |
766cac3c3014e959f87d729de6f1f13a4b3b5bcc | 6f2380fe4087783603a36ce966ab9b5e99ac4cbb | /demo6/demo6/wsgi.py | 426879a0e0f24332489b4f2b78726f72154dbfa2 | [] | no_license | zhlxcl/Python1904xcl | aab0d4989d9065bff5d5334a1a1e1188cbd3619d | f4cc21ed0fb6d40349490a084b983b4e897c8d91 | refs/heads/master | 2022-12-14T20:12:16.014524 | 2019-07-19T08:47:19 | 2019-07-19T08:47:19 | 194,625,840 | 0 | 0 | null | 2022-11-22T04:07:44 | 2019-07-01T07:53:59 | JavaScript | UTF-8 | Python | false | false | 387 | py | """
WSGI config for demo6 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"2870175885@qq.com"
] | 2870175885@qq.com |
787cb77276053925d5fdaec7ddd69b65a7f0b570 | 8e7b3a72d238ef49e763b39237bc8a2344c7ca50 | /venv/Scripts/easy_install-script.py | 2f05806577b4b6aa1cbe5506110d02d5c283457d | [] | no_license | Uyanc/CatVsDog | 72f85083f85c173b5e6b153c5aa484a0e9085d56 | c1d524295e4ed703db4161a73dbcac3324ad9f4b | refs/heads/master | 2020-05-15T16:00:45.919171 | 2019-04-20T01:48:49 | 2019-04-20T01:48:49 | 182,382,712 | 1 | 0 | null | 2019-04-20T08:48:37 | 2019-04-20T08:48:37 | null | UTF-8 | Python | false | false | 451 | py | #!E:\PycharmProjects\CatVsDog\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"952066073@qq.com"
] | 952066073@qq.com |
52415f46784183380504b7540edef423115ddea4 | 55266a178575bc89ed30b5fdc0fb084c4c4907a1 | /URLGrab.py | 7ddf1667da87e4e358a37891da1d6ce20e085106 | [] | no_license | camerse/WebQueries | 8673ec45c8f8b2e844cae61f04a1867aa1754ac4 | d3a168f78599d65b5ca0feb87f8efd6bb46ee406 | refs/heads/master | 2020-08-05T05:34:02.303985 | 2017-05-17T17:56:31 | 2017-05-17T17:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # -*- coding: utf-8 -*-
#! /usr/bin/env python3
'''
This code is modified from pymbook.readthedocs.io
I'm using it as a jumping-off point
'''
import requests
import os
import sys
def download_url(url):
''' download URL, save to current directory '''
req = requests.get(url)
#uses string arg... | [
"klyons19@gmail.com"
] | klyons19@gmail.com |
4d786b9ccda027cddd2f875212827ce276a4d821 | fc6c6437bda3ba5ba75218d8184c53f74352a1a2 | /firmware/Iconograph/mergeHex.py | 269e62217f443a9a91c75c703ae434b3a17ae75d | [] | no_license | siliconsparrow/Iconograph | 36d6675d134e1a264e3e99e198661b2ac9119860 | c07c579a87fb5abb1e568f499c21706b82b30652 | refs/heads/master | 2023-07-21T02:15:54.590115 | 2021-09-01T22:25:13 | 2021-09-01T22:25:13 | 367,541,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python3
# Python script to merge two or more HEX files.
#
# by Adam Pierce <adam@levaux.com>
# for Levaux Pty. Ltd. Australia
#
# Usage: mergeHex.py <file1.hex> <file2.hex> [<file3.hex> ...]
# Outputs merged file to STDOUT.
import sys
from intelhex import IntelHex
# Get the list of filenames to me... | [
"adam@siliconsparrow.com"
] | adam@siliconsparrow.com |
5bf4ffe1e9ffbf78397b69434f6a761fc3e01e4d | 89712fbed6b3a96e4933b6c610a3dc496668b1db | /migrations/versions/df235ca39b01_.py | 5ac6d4d7bf4cb42e8ae908c00244e7a5eb0e379a | [] | no_license | Sanketkalode/Flask_webapp | bb3a80a605adad373fb3b0528cfb7f47a3ce9ec1 | 798742853f4972011efe24d19afc1cc66c68f633 | refs/heads/master | 2023-05-11T01:32:49.650602 | 2022-04-26T08:46:11 | 2022-04-26T08:46:11 | 254,264,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | """empty message
Revision ID: df235ca39b01
Revises: c76b7add00f0
Create Date: 2020-06-29 17:08:14.447160
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'df235ca39b01'
down_revision = 'c76b7add00f0'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"sanket_kalode@persistent.co.in"
] | sanket_kalode@persistent.co.in |
74b74b0586d3c4a3c9553e59397d45f07e266132 | 6122ceafdb93067a5ae25732d76f170e229378e8 | /Week2Final.py | 13fbcfa38b3af7deeb89fc3d4a897a1e1a3e8a91 | [] | no_license | SG2016UW/MachineLearning | 7239b6f3459344fe3e96a370032b355087195eb1 | ba4c7ca19f1fc4d3b33143a649d3961c52feda2b | refs/heads/master | 2020-12-24T12:40:00.622073 | 2016-11-06T03:21:03 | 2016-11-06T03:21:03 | 72,966,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,871 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 17 19:33:26 2016
@author: gujju
"""
import pandas as pd
import numpy as np
import xml.etree.cElementTree as ET
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn import linear_model
import codecs
import ... | [
"sgvm2015@gmail.com"
] | sgvm2015@gmail.com |
d6f9aae369f645e06dd5a81e0da92deb03d22e25 | 350d6b7246d6ef8161bdfccfb565b8671cc4d701 | /Insert Interval.py | fdec8d8c9a46850b59d3f652b43f6c85e069796d | [] | no_license | YihaoGuo2018/leetcode_python_2 | 145d5fbe7711c51752b2ab47a057b37071d2fbf7 | 2065355198fd882ab90bac6041c1d92d1aff5c65 | refs/heads/main | 2023-02-14T14:25:58.457991 | 2021-01-14T15:57:10 | 2021-01-14T15:57:10 | 329,661,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | class Solution:
def insert(self, intervals: 'List[Interval]', newInterval: 'Interval') -> 'List[Interval]':
# init data
new_start, new_end = newInterval
idx, n = 0, len(intervals)
output = []
# add all intervals starting before newInterval
while idx < n and new_start... | [
"yihao_guo@gwmail.gwu.edu"
] | yihao_guo@gwmail.gwu.edu |
4f8f0416c1adbe6562d11d2c4658f0914196dac1 | 6bf55c4bc480a48bbbe723bbeb1a5a36b173b394 | /examples/mnist_pruning.py | 9ca57ad48b3cc50096643365dad98f21978d6188 | [
"Apache-2.0"
] | permissive | timwillhack/dm-haikuBah2 | 1b3b71c58e7467b6ddcd4b93968596b3e3f73dd4 | b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5 | refs/heads/main | 2023-08-31T22:54:38.639767 | 2021-11-12T17:27:54 | 2021-11-12T17:27:54 | 427,442,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,435 | py | # Copyright 2020 DeepMind Technologies Limited. 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 ... | [
"timwillhack@gmail.com"
] | timwillhack@gmail.com |
38c7b8ae0a1fe7c519e2cb5f2fca8b9894080414 | bcc00e164c3d20b3c0ac1099741a71491af0e302 | /.history/neotropical_datasetAPI_20191014144558.py | 7ff867bf62e30070273816b13537d6b29785d50f | [] | no_license | manasa151/Toshokan | cff2af75c480bd629b49ce39c17857b316102e45 | 192c7eaf8523e38fa5821affdec91eb60ae5b7ce | refs/heads/master | 2020-08-05T14:56:10.285024 | 2019-10-15T17:07:09 | 2019-10-15T17:07:09 | 212,586,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | import csv
from os import makedirs
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import T... | [
"cornerstoneconnections@gmail.com"
] | cornerstoneconnections@gmail.com |
b842f83dd100eea2e938b1fbf74a35f90ec6129e | c3ceffabcbb5ddfd47921661744f998a90c36bc9 | /lib/ouestjob.py | 17b2925862d7368f53e541889db3be284d98697c | [] | no_license | elominp/internship_offers_search | b1595464603876b155ce40e456dedbfe1fec30d1 | 620aa9c3c200dfaca5859f9cd5e623354e538b05 | refs/heads/master | 2021-04-28T08:15:47.191804 | 2016-08-25T10:55:53 | 2016-08-25T10:55:53 | 122,244,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | #!/bin/env python3
# -*- coding: utf-8 -*-
import http.client
import html.parser
import copy
import json
class OuestJobParser(html.parser.HTMLParser):
def __init__(self, *kwargs):
self.offer_entries = []
self.offer_entry = None
self.data_handler = None
self.starttag_handlers = {"s... | [
"pirou_g@epitech.eu"
] | pirou_g@epitech.eu |
36d1358c9061802c0181d07fff98dcc46196842a | 4b6f0adb1748d5192d29839fe8274b57adcaa480 | /gec/word_correct_model/data_utility.py | 53d7fabfed3ea44283f6df9a45a00aee7b92dc5c | [] | no_license | IvyTang/code | 4a03aca05d55caaf434d899b8b2cb2771987ed70 | d1926677bf78bf964abca04c3fa8c40c5e18d288 | refs/heads/master | 2020-04-11T11:31:30.518413 | 2018-12-14T07:50:21 | 2018-12-14T07:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
class DataUtility:
def __init__(self, vocab_file_in_words=None, vocab_file_in_letters=None, vocab_file_out=None):
self.start_str = "<start>"
self.unk_str = "<unk>"
self.num_str = "<num>"
self.pun_str = "<pun>"
... | [
"bruce.lee@kikatech.com"
] | bruce.lee@kikatech.com |
77c9a4aa2fe8cce936dbee351e0ce51904c6acdd | 3d6e9adecff041d49fe1f5174eb55b365508b324 | /State_Recognition_Code/old code/State_Checker.py | b53da8dfe291d49f33a5b68e89c9ff482ca311bc | [] | no_license | SebCurrie/Graph_State_Recognition | 0d3a688dd0f8002d837f55c4453f4fe98140ce78 | 2047db10936abcc86156cde8a368fe9fb555307c | refs/heads/master | 2022-12-04T09:15:44.350769 | 2020-08-26T23:42:00 | 2020-08-26T23:42:00 | 278,402,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | import numpy as np
import itertools
import copy
import Graph_Printers as gp
import math
#Two qubit matrix definitions
hadamard=np.array([[1,1],[1,-1]])
identity=np.array([[1,0],[0,1]])
Z=np.array([[1,0],[0,-1]])
X=np.array([[0,1],[1,0]])
n=3
input_coeffs=[1,1,1,-1,-1,-1,-1,-1]
#This is all possible co... | [
"noreply@github.com"
] | noreply@github.com |
0f484847c5c71e263b71fb80674cba95ca9d9be7 | 35ffed61e1c4507a5cda24a8f6675fc10665d260 | /01_1_wordvec_start.py | edab20ef7fedf07f079d8cca581535faeaebeebe | [] | no_license | fanrong33/nlp | 1df0058a79361168593c892d7d8f550d57c916fc | ad239956e82ee38dd124e706bab12a8425516a77 | refs/heads/master | 2021-05-12T07:49:09.567602 | 2018-01-15T13:33:12 | 2018-01-15T13:33:12 | 117,259,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | # encoding: utf-8
# word2vec的模型是基于神经网络来训练词向量模型;
# word2vec的主要的应用还是自然语言的处理,通过训练出来的词向量,可以进行聚类等处理,或者作为其他深入学习的输入。
from gensim.models import Word2Vec
from gensim.models.word2vec import LineSentence
# 1、加载句子集合
sentences = [['this', 'is', 'the', 'first', 'sentence', 'for', 'word2vec'],
['this', 'is', 'the', 'se... | [
"fanrong33@qq.com"
] | fanrong33@qq.com |
10d919ed0109a6401f4dd3ac01502930a7d4097e | 80383bd5f39fd7eacff50f4b0fcc3c5e7c8329e0 | /reddwarf/tests/api/instances_delete.py | 9bef213d56cfc68c4ac1598aaffd3bb0d1ab7020 | [] | no_license | imsplitbit/reddwarf | 646409a2365459515b37f70445c0acb22610898d | 2f50d9a12a390c6016aad6a612a14bd6c34b66fd | refs/heads/master | 2020-05-19T15:45:26.733102 | 2013-01-08T21:37:10 | 2013-01-08T21:37:10 | 2,270,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | import time
from proboscis import after_class
from proboscis import before_class
from proboscis import test
from proboscis.asserts import *
from proboscis.decorators import time_out
from reddwarfclient import exceptions
from reddwarf.tests.util import create_dbaas_client
from reddwarf.tests.util import poll_until
fro... | [
"tim.simpson@rackspace.com"
] | tim.simpson@rackspace.com |
fc9c235e3d4f8607eaf02246e0cb7385120abb75 | 17c280ade4159d4d8d5a48d16ba3989470eb3f46 | /18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM4500_R_0-7.py | ae645a54658b7cd536c87077e75805da8681f2d2 | [] | no_license | chengchen1993/run2_ntuple | 798ff18489ff5185dadf3d1456a4462e1dbff429 | c16c2b203c05a3eb77c769f63a0bcdf8b583708d | refs/heads/master | 2021-06-25T18:27:08.534795 | 2021-03-15T06:08:01 | 2021-03-15T06:08:01 | 212,079,804 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M4500_R0-7_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Autumn... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
65fe59176ecaeee3ac73de2fdf870260bfd2994a | 882b7b01a9d5e5d3db5120645d8de4a8be713813 | /P0101_data_exploration.py | e4e66a9b68ec47e5d6860e72846714221c7c59e3 | [] | no_license | zhangzhanluo/data_set_for_rnn | 14b37953f7c9812b51b5d05ac81cf9baae1274f7 | 64d1fb69bb361f16e58166ef04b886ab711f1487 | refs/heads/master | 2022-12-15T01:50:15.359548 | 2020-08-19T03:24:41 | 2020-08-19T03:24:41 | 288,621,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import pandas as pd
from matplotlib import pyplot as plt
file_path = 'Raw Data/Dataset_Photovoltaic_power_prediction_PV_data_all_2020_08_18.csv'
raw_data = pd.read_csv(file_path, header=0, index_col=0, parse_dates=[0])
# 验证光伏电池功率=电压×电流
raw_data['PowerCal'] = raw_data.Current_V * raw_data.Voltage
power_data = raw_data... | [
"zhangzhanluo@outlook.com"
] | zhangzhanluo@outlook.com |
35c2b8691c4f2a9410a8d0e1802611fc977daf88 | f313176349f441bb8f72759d0f84f320d274d5d7 | /xjerab13/blogs_download2/web_rss_old/mako/_ast_util.py | 8eb22158d52de316cc3de5f6b2e55fb40b621200 | [] | no_license | iotrusina/M-Eco-WP3-package | 641876974268cda458bf096e702b0bfe18596d67 | 83d76dfd2afdae93856e094879464327abf1faa0 | refs/heads/master | 2021-01-01T05:35:57.200860 | 2012-10-03T19:57:32 | 2012-10-03T19:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,454 | py | # mako/_ast_util.py
# Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
ast
~~~
The `ast` module helps Python applications to process trees o... | [
"otrusina@gmail.com"
] | otrusina@gmail.com |
139a215386fd73c93520824d0d8e1a4d7e908698 | 7dbbde919349fdc3651eff1a7be744aed25eea30 | /scripts/multiprocessing_example.py | 13f78ecf32de52baab2847baa7991b1bf9d173e0 | [] | no_license | adrn/scicoder-notebooks | 06ca10a12c4f89a5c2e4062c70b6e4eb3bc0b1b0 | 7c8a5850200c3fb78aca1c336af7ed47ad52c52a | refs/heads/master | 2021-03-12T21:37:39.597404 | 2013-07-08T04:37:23 | 2013-07-08T04:37:23 | 11,226,565 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # coding: utf-8
""" Demonstration of the built-in multiprocessing package """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import multiprocessing
# Define a 'task' or 'worker' function -- something function that you
# need to call over and over ... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
89c6d8623bc995463d87eec782ddc6b345abcf8e | f93ecd348d5464e0b87826ae4544d8af82a030e7 | /server/django/pages/urls.py | 569e13c343eb215410d7235057f4380842edb9d0 | [
"MIT"
] | permissive | wanyaworld/SearchThisBackend | 1fe5fb4400422ea8a408379c2de2d7bb0d0fa0aa | 30c4e6d688ffb2ac3fa7916a2a949b64d25aaca6 | refs/heads/main | 2023-02-23T00:17:28.334729 | 2021-01-28T15:58:21 | 2021-01-28T15:58:21 | 333,405,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.urls import path
from django.conf.urls import include, url
from .views import *
urlpatterns = [
path('', homePageView, name='home'),
path('document', documentPageView, name='document'),
]
| [
"6812skiii@gmail.com"
] | 6812skiii@gmail.com |
b8d77957b7c1d7078636cd405133292880642ca8 | 832920bf45ea5e759be24fe276496ff9310c3e43 | /Python/URI 1070.py | c5b337863224f5e679a184d7860dd8e4260eb9ee | [
"MIT"
] | permissive | carvalhopedro22/Programacao-URI-Online-Judge | a5e23bd708244b0de1b33b9617e72780d047c502 | 4a58141418de7589d7d81c3fffb41664efd2ffc6 | refs/heads/main | 2023-03-26T16:21:14.583253 | 2021-03-22T22:28:39 | 2021-03-22T22:28:39 | 302,116,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | num = int(input())
contador = 0
while(contador < 6):
if(num % 2 != 0):
print(num)
contador = contador + 1
num = num + 1 | [
"pedro.mundim@ufv.br"
] | pedro.mundim@ufv.br |
03bc75f30bd988e5219152210d4569a1242e179d | 32d30e05e646351b3459ed2711a84487ea8b2445 | /priorityqueue.py | 97db9e28e2903b881b72aa99c33f0d85c65de976 | [] | no_license | Silveryu/ekains | 71eaad8c287cd60e4c228342dfd44f624954a8f2 | beb4f31f1c2b224c543e549c6b4023be07c1500d | refs/heads/master | 2020-06-02T18:03:32.952111 | 2019-06-12T17:04:38 | 2019-06-12T17:04:38 | 191,258,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import bisect
class PriorityQueue:
def __init__(self, f):
self.queue = []
self.f = f
def append(self, item ):
bisect.insort(self.queue, (self.f(item), item))
def __len__(self):
return len(self.queue)
def pop(self):
return self.queue.pop(0)[1]
def __conta... | [
"p.m.s@ua.pt"
] | p.m.s@ua.pt |
2fbb5fdd65ad8826645ab7e7e699ebefa0f72824 | 22cd0e79f4dd999e40a1d6ff829f8ef4f8d9df9a | /samples/kuka_maze_planner/devel/lib/python2.7/dist-packages/rll_msgs/msg/_DefaultMoveIfaceActionResult.py | 8cdca9ad71548b62110f5d3b6c4fddf5b2278554 | [] | no_license | anupamkaul/robond | b3f9cefbf0205d3c1db14b9982a95f61644a49b1 | f5b1e4323c0bf0ccd7d78dbef8c9e0ddf1a85d17 | refs/heads/master | 2021-06-21T14:06:09.368041 | 2020-11-30T19:51:36 | 2020-11-30T19:51:36 | 146,023,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,018 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rll_msgs/DefaultMoveIfaceActionResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import rll_msgs.msg
import genpy
import actionlib_msgs.msg
import std_msgs.msg
... | [
"anupam.kaul@yahoo.com"
] | anupam.kaul@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.