blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b8f0128149d079ea402eaa39dd0849511d6ac94 | 52b7be5bcae6a391e92e46adee6e50f0ddb632f8 | /app/src/main/python/bmrCalculations.py | 2017c4c120c5809694ac9d380cc1e86c33005bbd | [
"MIT"
] | permissive | DilakshanChamikara/MVNutritionist | c73eb5c2219598884b72a12c1cc1ce4cb6d2c076 | 1b9637330cb441f0139c98d8e992e5a8719a4512 | refs/heads/master | 2023-09-02T01:23:00.698985 | 2021-09-18T13:31:37 | 2021-09-18T13:31:37 | 363,077,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | def mifflinEq(ageValue, gender, heightCMValue, weightKGValue):
age = int(ageValue)
sex = str(gender)
heightCM = int(heightCMValue)
weightKG = int(weightKGValue)
if sex == "Male":
bmr = ((10 * weightKG) + (6.25 * heightCM) - (5 * age) + 5)
elif sex == "Female":
bmr = ((10 * weigh... | [
"wvdilakshanchamikara@gmail.com"
] | wvdilakshanchamikara@gmail.com |
561a1515aec45c05a6f692c454547c35b601299c | fc7cad490cb774d769c1b463ac6d1d9a8ea97024 | /accounts/migrations/0004_auto_20200612_0259.py | ec0685ecf8d345c0e4a3fed233fe2258dc000cec | [] | no_license | Aviemusca/curriculum-dev | c301915532353836cb085130fd12e2734da4b956 | 691a6536718ef496ac603b1c8daee7508b3e8ff2 | refs/heads/master | 2022-12-26T20:56:55.031344 | 2020-10-01T08:11:49 | 2020-10-01T08:11:49 | 297,643,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # Generated by Django 3.0.5 on 2020-06-12 02:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200519_1800'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"yvan@metatech.ie"
] | yvan@metatech.ie |
1269ec37a14795d04833ef26c19ca25ac9209675 | 61fd735fda784dfc817b51a53c933ecdc4d47177 | /PythonLearningFiles/小甲鱼Python基础课程笔记/python基础教程/07分支和循环.py | 185365fc588c50fb18dc07e45a2d6eb0de12ccb4 | [] | no_license | github653224/GitProjects_PythonLearning | bfe4610bf8f944d9a51889a30cf7b20e5ab219b7 | ac975efbb336846a3f145821cf47431d39b30ac1 | refs/heads/master | 2021-05-08T01:03:04.150717 | 2017-10-21T09:52:02 | 2017-10-21T09:52:02 | 107,763,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | """
打飞机方案:
加载北京音乐
播放北京音乐(设置单曲循环)
我飞机诞生
interval=0
while true:
if 用户是否点击了关闭按钮:
退出程序
interval+=1
if interval==50:
小飞机诞生
小飞机移动一个位置
刷新屏幕
if 用户鼠标产生移动:
我方飞机中心位置=用户鼠标位置
刷新屏幕
if 我方飞机与小飞机发生肢体冲突:
我方挂,播放音乐停止
修改我方飞机图案
打印"game over"
停止音乐... | [
"944851899@qq.com"
] | 944851899@qq.com |
d8fbc63265d45dcfa112766c30cd098be32c0069 | a953650f40f15e8008339b6e7a669c50444755b3 | /isofit/rt_libradtran.py | 46f0a7576ff9d80d78e51b144b7514c6de263c34 | [
"Apache-2.0"
] | permissive | dsmbgu8/isofit | 2d12582ab7648216771ae086134e5f9d5b88bdfe | f6365f044b9726776f28f4fd5abb03330a8e9d39 | refs/heads/master | 2020-03-30T22:08:02.080389 | 2019-04-19T00:21:56 | 2019-04-19T00:21:56 | 151,655,654 | 7 | 3 | Apache-2.0 | 2018-10-05T01:12:20 | 2018-10-05T01:12:20 | null | UTF-8 | Python | false | false | 8,693 | py | #
# Copyright 2018 California Institute of Technology
#
# 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 applicabl... | [
"david.r.thompson@jpl.nasa.gov"
] | david.r.thompson@jpl.nasa.gov |
e6f1b96db5d9345827192ab86054867886a29061 | 0a93001bbe06e01919305de262ee5bedf60c2cb7 | /manage.py | 6bc66324b7c3c7fd89c1c3902a523a5f4614b5db | [] | no_license | 15036695351/cn_blog | da97bc15f8f380eb78b9b816a8f1c5d9200150f5 | 3916e0d0f392c4d5e72cab72444a7a75975d8f66 | refs/heads/master | 2020-03-23T06:33:45.149875 | 2018-07-17T02:10:36 | 2018-07-17T02:10:36 | 141,216,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cn_blog.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"893920610@qq.com"
] | 893920610@qq.com |
f3000acdb34834f11a2e14f776bff18e36592a11 | a4b09069186307a9e8b346bb706281bce61ae899 | /examples/passive_disconnect.py | e357a72a7d5f2a8847fe441c58eed167aa66dae7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | robhogan/pygattlib | a236bf15f37f6c40a2e8f8d0577373a54cf7185b | a9aa70d9270e72bfafedeaf39c8177b516b49fb2 | refs/heads/master | 2022-05-12T12:36:17.303704 | 2015-03-05T07:25:25 | 2015-03-05T07:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/python
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2014, Oscar Acena <oscaracena@gmail.com>
# This software is under the terms of GPLv3 or later.
from __future__ import print_function
import sys
import time
from gattlib import GATTRequester
class PassiveDisconnect(object):
def __init__(sel... | [
"oscaracena@gmail.com"
] | oscaracena@gmail.com |
202413f8bed169d63c0e062e5db80f4c7ab19053 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_layout_result.py | 880edef4f9e5268fec0c2a94a79f45be803ebb0a | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,891 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SmartDocumentRecognizerLayoutResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6ef7b3ea4fb066170209ac7d588f2ecea7d3de42 | 18e2e9102c192ec60fbf6b29c96b3211dacda86f | /Homework5/node_modules/chokidar/node_modules/fsevents/build/config.gypi | dae7970a9ede30340dbf7d083a2908479809316c | [
"MIT"
] | permissive | DALI-mini-webdev/personal-react-website-marktao23 | d39c9ee6f2d2fe037f177e26cb2a7ebda854418a | d505728f644914943fba9cfe61a633a575fbe9ee | refs/heads/main | 2023-03-10T06:08:08.697299 | 2021-02-22T02:20:36 | 2021-02-22T02:20:36 | 333,216,995 | 0 | 0 | null | 2021-01-26T21:04:56 | 2021-01-26T21:04:50 | null | UTF-8 | Python | false | false | 2,952 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"mark.s.tao.23@dartmouth.edu"
] | mark.s.tao.23@dartmouth.edu |
2e82dda024ab4a33f1b9bed8df21f3eba760a255 | 9a8cd23d137e78c146941cf078fcdb025b094dd3 | /problems/p1337.py | dc01e42083410149ed107a7c7360207330b0ee29 | [] | no_license | e1630m/leetcode | fda92b4086ebd16057dfe053d1a3665e3976ea03 | d57390aec3af555768f547b8fb668b8814ff63e9 | refs/heads/main | 2023-08-22T06:48:17.786891 | 2021-10-30T08:24:45 | 2021-10-30T08:24:45 | 409,690,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | class Solution:
def kWeakestRows(self, mat: List[List[int]], k: int) -> List[int]:
return sorted(range(len(mat)), key=lambda x: (sum(mat[x]), x))[:k]
| [
"e1630m@gmail.com"
] | e1630m@gmail.com |
e586d7a3c000d224849a27dbaddfc190dffd0029 | 0d413c078c0dd7f1f68083750022441f091736f5 | /addons/source-python/plugins/gungame/plugins/included/gg_dissolver/gg_dissolver.py | 736d55841d464a5e19a21a4b3a3e088ef32fe82a | [] | no_license | Hackmastr/GunGame-SP | 7eac4c031e5e6f4624a8cacfea8d3d5df85a2dfb | dd76d1f581a1a8aff18c2194834665fa66a82aab | refs/heads/master | 2020-12-26T04:56:12.309910 | 2016-12-29T23:15:53 | 2016-12-29T23:15:53 | 67,629,767 | 0 | 0 | null | 2016-09-07T17:40:57 | 2016-09-07T17:40:56 | null | UTF-8 | Python | false | false | 3,166 | py | # ../gungame/plugins/included/gg_dissolver/gg_dissolver.py
"""Plugin that dissolves player ragdolls on death."""
# =============================================================================
# >> IMPORTS
# =============================================================================
# Python
from random import rand... | [
"satoon101@gmail.com"
] | satoon101@gmail.com |
94af50a7588a33beaf44018e93f5021759cf1b7c | 1a80eb0ca9769df1e0a72d2b5175f2b1c2435c70 | /eDBS/__init__.py | 865f9d13b36fd2c579f80ad8ab50b21af422d422 | [] | no_license | hussain-devpro/Flask-Demo | d3e549f1b90e835b912e26fb1c7377770a00fe4a | a4bfbbda8c4fa6b3f2657ed7034751a0c44e0322 | refs/heads/master | 2022-11-07T20:28:37.171844 | 2020-06-30T11:28:27 | 2020-06-30T11:28:27 | 276,042,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from importlib import import_module
from hvac import Client as VaultClient
db = SQLAlchemy(session_options={"expire_on_commit": False})
def register_blueprints(app):
blueprints = (
'basic',
'employees'
)
for blueprint in blu... | [
"66720888+hussain-devpro@users.noreply.github.com"
] | 66720888+hussain-devpro@users.noreply.github.com |
e67ab100320808e96acca4305798d9551fc7c1a6 | ccc55c7a05cd115e029f04cd577b11b70d0d3fdc | /Chapter 3/D4 TI B/M. Farhan Fadlurrahman (1184072)/src/n4.py | c4231a25cc4e5c6efd653d176b18650e7abf26fe | [] | no_license | ariqrafikusumah/Tugas | 6019be8c3219c930730d29076efd4494a3c70c79 | 6903117a91ad3002033c6d0297b4d1d06903088d | refs/heads/master | 2020-09-15T19:51:29.066553 | 2020-02-29T12:08:36 | 2020-02-29T12:08:36 | 216,065,279 | 0 | 0 | null | 2019-10-18T16:28:46 | 2019-10-18T16:28:45 | null | UTF-8 | Python | false | false | 29 | py | from kotak_pensil import pena | [
"noreply@github.com"
] | ariqrafikusumah.noreply@github.com |
68dd46a0f9f060b60554ee409185bc17f3b0eecb | 484f2b6ed2a51a78978a4b6450f97a3cbefcd087 | /ugc/migrations/0005_auto_20170214_1413.py | 845ec474ff677ca19957848ca9652760ee9e3645 | [] | no_license | ivan371/technotrack-web2-spring-2017 | 31d0a937f1b6342bd70432cbebd37bb68c1dd8df | 92e9fd9040984eef66b6bab45bb4d6918e178d41 | refs/heads/master | 2021-01-11T14:27:04.717314 | 2017-05-22T18:55:22 | 2017-05-22T18:55:22 | 81,424,353 | 0 | 0 | null | 2017-02-09T07:54:27 | 2017-02-09T07:54:27 | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-14 14:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ugc', '0004_auto_20170214_1402'),
]
operations = [
migrations.AlterField(
... | [
"nagaiko.ivan@gmail.com"
] | nagaiko.ivan@gmail.com |
177db48652d402f97d576e0f6523800c48df1c68 | 5cde60183d67eb92aad31d0bfa03a8e2ebddad0c | /setup.py | 12ac376cecfc5442d07485725892e2397462b032 | [
"MIT"
] | permissive | FedeClaudi/fcutils | 7379615f2eec7d152aab5c89ec70afee79e76964 | 2ef6f037303fc426d5c5b2851d2c99f17efa4002 | refs/heads/master | 2021-09-25T15:35:32.348620 | 2021-09-21T15:44:37 | 2021-09-21T15:44:37 | 236,294,597 | 5 | 0 | MIT | 2021-01-31T17:34:22 | 2020-01-26T10:05:55 | Python | UTF-8 | Python | false | false | 579 | py | from setuptools import setup, find_namespace_packages
requirements = [
"numpy",
"opencv-python",
"pandas",
"matplotlib",
"seaborn",
"scipy",
"pyyaml",
"statsmodels",
"loguru",
]
setup(
name="fcutils",
version="1.1.2.7",
author_email="federicoclaudi@protonmail.com",
... | [
"federicoclaudi@protonmail.com"
] | federicoclaudi@protonmail.com |
09138439e66b3768bc025a96f223687027bdfc97 | 47eafdc5b6abdced4a29301a2d26faad3cd1dc21 | /isaw/images/tests/test_package.py | fd06dcdbf56e3c7c5243e45ac06d29ac5da84ffc | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | isawnyu/isaw.images | 1c458bbe65b1b3ad069656dbe87d61a992007935 | 951f8841280a300fbe01cc6d3f5b23726ac973b1 | refs/heads/master | 2016-09-06T17:46:37.740507 | 2015-05-16T15:37:31 | 2015-05-16T15:37:31 | 24,117,212 | 0 | 0 | null | 2015-05-16T15:37:32 | 2014-09-16T20:49:27 | Python | UTF-8 | Python | false | false | 13,389 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
nose tests for code in isaw.images/isaw/images/package.py
"""
from io import BytesIO
from isaw.images import package
import logging
from nose.tools import *
import os
from PIL import Image
from PIL.ImageCms import getOpenProfile, getProfileName
import re
import shutil
... | [
"tom.elliott@nyu.edu"
] | tom.elliott@nyu.edu |
d08a54f09176dfbc5d8a42bd5183d3efa5dd5b7e | e84956629dac8c47feaa76fe6f91f8f0d3ecae83 | /swap.py | c95181820e8f9f0638818632c0a372ac811ce633 | [] | no_license | AhmadMaroofKarimi/algorithm | 277e89488771a4c3f3880c68cebf828eb85a7b32 | cb840d948762b54d1858bbd24399249dffd2f1b9 | refs/heads/master | 2021-04-12T03:52:49.536170 | 2018-03-21T19:33:05 | 2018-03-21T19:33:05 | 125,932,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | def swap(given_array,i,j):
"""
given_array: Array in which swapping is to be done.
i: one of the index to be swaped
j: other index to be swaped with i
"""
if len(given_array) >= i and len(given_array) >= j:
temp = given_array[i]
given_array[i] = given_array[j]
given_array... | [
"axk962@case.edu"
] | axk962@case.edu |
7c017c86811609caf4cc76a48d2fade2753983ec | bb42d1372365be7e3ee718a332f15c12eb742c74 | /server/captionmash/services/genres.py | 8e8d7f45a5c6e5be43735804e906cf4385d07ae0 | [] | no_license | uvbs/captionmash | 2c49ed2749e197c05539cf0d30770badd3822328 | 618ce527404178a2f36ca963928e981f360ffb59 | refs/heads/master | 2020-12-11T03:32:24.985696 | 2010-12-06T14:12:15 | 2010-12-06T14:12:15 | 43,040,714 | 1 | 0 | null | 2015-09-24T02:45:53 | 2015-09-24T02:45:53 | null | UTF-8 | Python | false | false | 1,895 | py | '''
* http://www.captionmash.com
* Developed by O. Can Bascil | ocanbascil at gmail.com
*
* License: GPL version 3.
*
* 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 restricti... | [
"ocanbascil@gmail.com"
] | ocanbascil@gmail.com |
41266a5fc2b86a0253ea3f1f33032e2e767308a4 | a98d7fcf4fae9660ce2e1fa9b3b704d9dd691754 | /animation.py | e41a40b0fbb841b577ab2cfeada64f85aed8ad2e | [] | no_license | Nikolas-Dmitrovic/A-Skyrim-night-game | 505fd6d6ce70aee5a4fbae4632ee664713e493db | c6644d1558ef2644ac0d79dff14fd826ed90e559 | refs/heads/master | 2023-08-07T22:15:50.340778 | 2021-09-23T02:22:56 | 2021-09-23T02:22:56 | 365,644,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py |
class animation():
'''general class for static methods for testing and general animation stuff'''
pass
class playerAnimation():
def __init__(self):
pass
def getnpcobject(self) -> object:
pass
def getPosone(self):
pass
def getPosTwo(self):
pass
... | [
"nikolasdmitrovic687@gmail.com"
] | nikolasdmitrovic687@gmail.com |
03729745974b276cbc75cf69603f0d5d735fe5b1 | f5255d05165aa6721ee8f7a60ed9ad23f9805103 | /autotest/bug/migrations/0001_initial.py | 203b416ee0b160b8bc7fee8a79f4fedd989a0a7c | [] | no_license | ren937247825/autotest | e9c5dc046d44e956c5f587c81468f1f4ec0d94de | 9b1e34aaf21818c208269415e33a1627914370b9 | refs/heads/master | 2020-07-12T15:45:52.512634 | 2019-09-01T02:36:06 | 2019-09-01T02:36:06 | 204,855,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # Generated by Django 2.2.4 on 2019-08-30 08:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='B... | [
"937247825@qq.com"
] | 937247825@qq.com |
3e54685a3c00c94c458f8d49bd94753c32d1f008 | 397a31a41b0af2757f161a17817eef6ff500b805 | /testMain/mango.py | d17157c5620e07a88f0006dea9a0ea32596c3773 | [] | no_license | abhinavsv3/testhub | 04d977a1f96e968d298509f60260426bdddafca0 | fb27ccf2beed275a0f1490bd16f28587f5bb8c8c | refs/heads/master | 2020-12-25T13:44:38.644238 | 2016-07-26T05:27:41 | 2016-07-26T05:27:41 | 64,192,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import webbrowser
print "Hi Buddy!"
print "Who are you?"
st = raw_input(">>")
url = "http://abhinavsv3.github.io/"
print "Hey "+st
new=2
while 1==1 :
st = raw_input(">>")
print st
if st == "g":
url = "https://www.google.co.in/"
webbrowser.open(url,new=new) | [
"abhinavsv3@gmail.com"
] | abhinavsv3@gmail.com |
a7d44dbc3172c0b18482cbe972cbced3d85a9b38 | 66a9c0e23af1fab7f3c0b2f0cd6b8c6ac060b1d7 | /models/image_segmentation/tensorflow/3d_unet/inference/fp32/unet3d/prediction.py | 0810e632e699bbe4be9e3f11c215749c1247f453 | [
"MIT",
"Apache-2.0"
] | permissive | hekaplex/resnet_dl | ea289864b330bfa74996444d0325f1a062feae59 | fc8d4dcc0adffbe22d01d333e6cf5db955f2f011 | refs/heads/master | 2023-04-15T06:03:18.696578 | 2021-05-05T14:18:13 | 2021-05-05T14:18:13 | 364,602,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,846 | py | import os
import nibabel as nib
import numpy as np
import tables
import time
import math
from .training import load_old_model
from .utils import pickle_load
from .utils.patches import reconstruct_from_patches, get_patch_from_3d_data, compute_patch_indices
from .augment import permute_data, generate_permuta... | [
"archaeus@hekaplex.com"
] | archaeus@hekaplex.com |
a64bb1807505a2ed94f6dae03805a20c63d76bd1 | 413125277311510b40ca481b12ab82d379f5df62 | /factorial number of trailing zeros in factorial.py | 11ce6c912e5196f14256726dc5f9adc771d0a39c | [] | no_license | Aakashbansal837/python | 98d85ce1e88c73f0e5180b1b1af80714f3e45097 | 4de2a3d6a482fdba8809ceb81e94f201b776b00e | refs/heads/master | 2021-04-06T00:16:24.884830 | 2018-05-30T17:42:20 | 2018-05-30T17:42:20 | 124,778,551 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
sys.setrecursionlimit(10000)
def factorial(n):
if n == 0:
return 1
if n == 1:
return 1
else:
return n*factorial(n-1)
num = list((str(factorial(int(input())))))
l = len(num)-1
count = 0
while l:
if num[l] == '0':
count+=1
else:
br... | [
"noreply@github.com"
] | Aakashbansal837.noreply@github.com |
8d4b54d7cbba3633daa8e3c3ea93364d13ed7566 | 6a61795d9e687c4f56ef3a758d1963a57285fa92 | /Tarea5-AFD/afd.py | 0d2058032a5e5a9fc355e95885f57c09668e8e1e | [] | no_license | jmfcc/201709020_TareasLFP | 75586dbc906928f62456ae292d582ee9787d507a | 736f6a166842ca0f900724b8d8d85c1f021a62a7 | refs/heads/master | 2022-12-14T08:21:28.827254 | 2020-09-06T22:03:26 | 2020-09-06T22:03:26 | 285,980,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py |
elementos = {
"letra" : ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "ñ", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"],
"numero" : ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
"simbolo" : ["_"]
}
transiciones = [
["0", "simbolo", "1"],
["1", "simbolo... | [
"jaimefrain08@gmail.com"
] | jaimefrain08@gmail.com |
b65f0f0c726ee11b17d9b0d8915eaf9d6055e843 | 5c3654410a306a3c8383161bdf76d548c8ef430f | /ros_system/build/planning/leadgen_msgs/cmake/leadgen_msgs-genmsg-context.py | 0d208afbce2726d829c73d975cdb45a6fa8ba086 | [] | no_license | NII-o9i2/ROS_HDmap_Decision_L4SelfDriving | 7d884fc56a75eb56d5179111f1cc8c57313f956e | b2756312fbd5ff362f87a9c6e9c1fab36b419d82 | refs/heads/master | 2022-12-16T11:53:19.587344 | 2020-09-24T02:47:23 | 2020-09-24T02:47:23 | 291,922,080 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/xiaotongfeng/Desktop/ROS_HDmap_Decision_L4/ros_system/src/planning/leadgen_msgs/.//LeadgenHMI.msg;/home/xiaotongfeng/Desktop/ROS_HDmap_Decision_L4/ros_system/src/planning/leadgen_msgs/.//LeadgenWaypoint.msg;/home/xiaotongfeng/Desktop/ROS_HDmap_D... | [
"791071897@qq.com"
] | 791071897@qq.com |
60c14aabe366b9786d30a34292d62127b9a07913 | c2a892b2ab87897e648d141500d04d4024a89252 | /mlpipe/dsl_interpreter/interpreter.py | bceb7172f9de30b369a63c480c8acaa60d445475 | [] | no_license | robie2011/mlpipe | 52e01002ecdb8553e83dc54d582df2bdefd42892 | d6b0c803535c07afc389749c5833e43f58e9deeb | refs/heads/master | 2021-07-13T04:19:42.618649 | 2020-03-30T16:09:14 | 2020-03-30T16:09:14 | 247,807,021 | 1 | 0 | null | 2021-06-02T01:13:03 | 2020-03-16T20:09:12 | Python | UTF-8 | Python | false | false | 2,408 | py | import logging
from typing import Dict
from mlpipe.dsl_interpreter.analyze_interpreter import _create_workflow_analyze
from mlpipe.dsl_interpreter.descriptions import \
AbstractDescription, FileDescription, YamlStringDescription, ObjectDescription, ExecutionModes
from mlpipe.dsl_interpreter.evaluate_interpreter im... | [
"robert.rajakone@fhnw.ch"
] | robert.rajakone@fhnw.ch |
1f49226de6a937a2446a672f978dfcee50e12379 | dea198896f679e577a3fd0923e3fa4470da4b9cc | /journal/pyfakefs_mutants/LCR_BoolOp_mutant_1507055465.py | 26bd0cf441af76594af236ad2c0fa0dba0140aaf | [] | no_license | naustarg/cbmcmutate | f138ab2b04b4be70d735de90815ac670ae6042ce | a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1 | refs/heads/master | 2020-04-04T08:10:15.913309 | 2018-05-21T18:23:58 | 2018-05-21T18:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219,332 | py | # line: 91
'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr... | [
"agroce@gmail.com"
] | agroce@gmail.com |
a88f598b7bf08e6083106dbe44f2ca8df1bfc8b0 | 15c124ef75ee3974af8c5d0f97a35d13f3673378 | /dump_committees.py | 12f686c76fb41ebb3e6318e3fc5c50558f54520f | [] | no_license | datamade/war-chest | e9e2eaddb4c5dec584fdaa3806ce760757f0dfae | 6b4eb021d46b3db0e5409e54a496b8823a4aff2b | refs/heads/master | 2021-01-15T23:06:30.602126 | 2014-06-06T15:41:30 | 2014-06-06T15:41:30 | 13,306,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | from app import Candidate, Report, Person
import csv
from collections import OrderedDict
from operator import itemgetter
from sqlalchemy import or_
if __name__ == "__main__":
dump = []
for person in Person.query.all():
for cand in person.candidacies.all():
for comm in cand.committees:
... | [
"eric.vanzanten@gmail.com"
] | eric.vanzanten@gmail.com |
4296d7b668714864edb0f5fb0475bb38a52726af | 53f63d6fcbf7f756e44de3759e1ef8d81815e50b | /basic knowledge/GUI/gui1.py | dd3e3ed9a50caff7ed22ba1ae718843f33b8f865 | [] | no_license | k-bigboss99/Python-AI | c94cd4d12abafe493def4c03eec139cceffa8b4e | 13df4f75fbfa67085ce79b1205623caeb4f46b29 | refs/heads/master | 2023-03-06T07:53:56.108405 | 2021-02-23T07:32:03 | 2021-02-23T07:32:03 | 335,615,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | import tkinter
win = tkinter.Tk() # 建立Windows視窗物件
win.title("HelloWorld") # 設定視窗標題
win.geometry("200x200")
label = tkinter.Label(win, text="hello, python")
label.pack() # 將Label元件增加到視窗中顯示
button1 = tkinter.Button(win... | [
"bigboss99@mail.fcu.edu.tw"
] | bigboss99@mail.fcu.edu.tw |
8b0825a8ddd160fc42a6622a90c4d63dba60573d | e57a122cba8d00aac9d014a45e815063cb9f0359 | /imagepy/menus/Kit3D/Viewer 3D/tablepoints_plg.py | 86fe577864e3131f6f976b490ee2afe4771c7966 | [
"BSD-2-Clause"
] | permissive | WeisongZhao/imagepy | 9d66664578c77eb2d463de922c8d06af4f8af35a | 43cd5c4dcb9d6fefdcf11b8b9e9c0d56e11fab1e | refs/heads/master | 2020-04-25T23:44:31.304590 | 2020-01-29T06:10:26 | 2020-01-29T06:10:26 | 173,155,520 | 1 | 0 | NOASSERTION | 2019-02-28T17:21:56 | 2019-02-28T17:21:55 | null | UTF-8 | Python | false | false | 1,761 | py | from imagepy.core.engine import Table
from imagepy.core.manager import ColorManager
from imagepy.core import myvi
import numpy as np
from imagepy import IPy
class Plugin(Table):
title = 'Table Point Cloud'
para = {'x':None, 'y':None, 'z':None, 'r':5, 'rs':None, 'c':(0,0,255),
'cs':None, 'cm':None, 'cube':False}
... | [
"imagepy@sina.com"
] | imagepy@sina.com |
7e9eea8049ba2e3708bcf418198273e97c0c7c99 | b94b8255d3aeda3b5a761003172d59cbab43e1e6 | /src/swexplorer/apps/characters/admin.py | e73d5a193e72a5e4f25e7aed104e419d6b3b88e4 | [
"BSD-3-Clause"
] | permissive | keimlink/swexplorer | 1c0a729a0ea9aed82e35f2830e23cd42aad5670d | 65b36a5afc652fbbdde06f959eea21dc939446cc | refs/heads/main | 2023-01-01T07:46:33.217435 | 2020-10-19T06:08:50 | 2020-10-19T06:08:50 | 304,691,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import Dataset
class DatasetAdmin(admin.ModelAdmin):
date_hierarchy = "created_at"
list_display = ("__str__", "created_at")
search_fields = ["path"]
admin.site.register(Dataset, DatasetAdmin)
| [
"markus@keimlink.de"
] | markus@keimlink.de |
b58d66a8d2f1d7ef2c13d88d6f0077b8ee4fb966 | a7d9c0e2d3e853fc8a3543b5e81047fb61bb5ec3 | /UI/UI.py | 30098232865049afa6fe1322a34aa41c5b57481f | [] | no_license | alecrisan/Planes | ea445e5bec372bc8d14bb765f808a49c6c83d131 | 8d4def0e77a882f29883bf8c935b29b798358977 | refs/heads/master | 2020-04-29T04:46:06.327216 | 2019-03-15T16:46:56 | 2019-03-15T16:46:56 | 175,858,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,769 | py | '''
Created on Jan 5, 2018
@author: Ale
'''
from domain.GamePlay import *
class UI:
def __init__(self):
self.game = GamePlay()
def start(self):
turn = "user"
userBoard = self.game.userBoard
userHitsBoard = self.game.userHitsBoard
computerBoard = self.game.... | [
"Ale@Crisans-MacBook-Air.local"
] | Ale@Crisans-MacBook-Air.local |
87b61ab79ea2e0d19563e98bd2c50283f6e2da98 | 6c44aa08cdac167f150fa5e08aa3a2d0efd22fbd | /clearbyte/urls.py | 40735a8fec3c632267a9474a85807e6c02d9f487 | [] | no_license | sumansai14/clearbyte | acaca0d194dfbca0a542301a622f44dbc122a325 | f960a1a898ccbc79ed5cdc4cf213f09232f94921 | refs/heads/master | 2022-12-11T18:10:38.239032 | 2017-07-31T06:42:13 | 2017-07-31T06:42:13 | 98,814,570 | 1 | 0 | null | 2022-11-22T01:47:56 | 2017-07-30T17:44:43 | JavaScript | UTF-8 | Python | false | false | 571 | py | from django.conf.urls import include, url
from django.contrib import admin
from clearbyte.web.home import HomeView
from clearbyte.api.views.company import CompanyViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'api/company', CompanyViewSet)
urlpatterns = [
# Exam... | [
"suman.sai14@gmail.com"
] | suman.sai14@gmail.com |
2a9948a9fa15cfc738111ee698e8284117c2f0ab | 5c6c165cdbdc4fd538f4aed7d0fede76fc480444 | /asphalt/feedreader/__init__.py | a990cce8accc3f529540060c6c57896c512d464d | [
"Apache-2.0"
] | permissive | asphalt-framework/asphalt-feedreader | b4b5e693a65dd51dd3fdbe1234a691c7de769bfb | 096df835408ecfcfde593950c9c80d130f62cc5e | refs/heads/master | 2021-01-18T19:53:06.455455 | 2017-11-26T17:33:13 | 2017-11-26T17:34:46 | 86,918,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from .api import FeedReader, FeedStateStore # noqa
from .component import create_feed, FeedReaderComponent # noqa
from .events import EntryEvent, MetadataEvent # noqa
from .metadata import FeedEntry, FeedMetadata # noqa
from .readers.base import BaseFeedReader # noqa
| [
"alex.gronholm@nextday.fi"
] | alex.gronholm@nextday.fi |
24142d4c2a33a996379767649b0977df3235e5fe | 230786aedf8cd471b508408af004f8ef621ae9f1 | /game_tile.py | 24c438f0ac8a7e8877a24ba8a7e3475a4691cbee | [] | no_license | z-van-baars/savana2 | 62fd9f4a5f447d0ff8680bf18b380030e4e06832 | ffd7c5d62c3f2e67517e6827dbf32217974c0262 | refs/heads/master | 2020-05-27T04:16:18.836900 | 2019-05-24T19:58:32 | 2019-05-24T19:58:32 | 188,479,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
class GameTile(object):
def __init__(self, column, row, biome):
self.column = column # X
self.row = row # Y
self.biome = biome
self.terrain = None
def __lt__(self, other):
return False
| [
"zvanbaars@gmail.com"
] | zvanbaars@gmail.com |
d2284ad337eae9f26fc7964e3abf7ba0fc94a57b | c66e9277898da27d9d56fab1ac5fcdc772f57f4a | /tests/generation/test_tf_utils.py | d6a4d5280ab8922ec612df0e441231f368f7d60b | [
"Apache-2.0"
] | permissive | vumichien/transformers | 47901c895cd3ce8a7c30f691dcb40bdfe7fc4030 | 75a208ef66c0176fc12a4c98922728ced5befbf9 | refs/heads/main | 2023-02-26T03:57:52.930111 | 2023-02-10T22:28:24 | 2023-02-10T22:28:24 | 238,600,337 | 1 | 0 | Apache-2.0 | 2020-02-06T03:34:11 | 2020-02-06T03:34:10 | null | UTF-8 | Python | false | false | 9,274 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"noreply@github.com"
] | vumichien.noreply@github.com |
11b5ad683134ad8b05c87abf40a8a09968e574ae | bf0aa689b92be1df24100e8581caab59a74e31db | /src/GTCv3/equilibrium.py | b7b44d3cb1e7b03643192de3efb5baa4b70e4d3c | [
"MIT"
] | permissive | shmilee/gdpy3 | d7c689a70557534baa98595092cee0d737ea93cc | cdebb80dbb4a4d84ffa7115d8f18b5589fd40fb2 | refs/heads/master | 2023-08-19T22:42:40.305085 | 2023-08-15T02:11:15 | 2023-08-15T03:11:04 | 88,051,033 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,669 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019-2020 shmilee
'''
Source fortran code:
eqplot.F90, subroutine eqplot
1. first part, 1D radial plots, datap(lsp),data1d(lsp)
write(ieq,101)nplot,nrad
write(ieq,102)datap
!!! 1
write(ieq,102)data1d
...
!!! 29
write(ieq,102)data1d
2. second part, 2D contour pl... | [
"shmilee.zju@gmail.com"
] | shmilee.zju@gmail.com |
eb123384e7a34d637bfb9c1aaaf39225a1e3b377 | b2fd4225730e67cb2c99df742ac4a9be997886b7 | /app01/views.py | 90dacf820ec8f690e0a00994ef5b4c9a3db4c385 | [] | no_license | HelloWorldHui/redis-session | 25ebbe374900a2e2e70244dcd40601f4d2953b10 | 7ad4fac18841287be7ef74ac4f9e5e52b5327973 | refs/heads/master | 2020-06-01T18:30:18.241296 | 2019-06-08T12:13:37 | 2019-06-08T12:13:37 | 190,883,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.shortcuts import render,HttpResponse
# Create your views here.
def set_session(request):
request.session["username"] = "123"
request.session["password"] = "456"
return HttpResponse("保存session数据成功")
# jkg4wduptrnjm8rulkfe1o2y7cvqqnjv
# jkg4wduptrnjm8rulkfe1o2y7cvqqnjv
# jkg4wduptrnjm8rulkfe1o2y7... | [
"1493455610@qq.com"
] | 1493455610@qq.com |
5758334cca051ae5c6fa93e6d0507606d9d5ce9a | 74b5f75aa456150dc9cb47b8f39a35f101d62a29 | /figure_13_1.py | 423c017c9ef40c37f18c4f3e2157bc859ba5b337 | [] | no_license | freyreeste/chapter_13_figures | dba2d7c0451c370d8c60b31f1acafaa6665c0732 | ea1ea2d516911ef7ad848459b0a6bdda4fb5780e | refs/heads/master | 2022-04-14T11:26:02.360253 | 2020-03-28T03:52:31 | 2020-03-28T03:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,380 | py | '''
This script requires Python 3.7.0 and the following packages:
numpy==1.16.3
matplotlib==3.0.3 (for plotting results)
joblib==0.13.2 (for running experiments in parallel)
scipy==1.3.1 (for computing error bars)
'''
import argparse
import os.path
import numpy as np
import scipy.stats as st
import matplotlib.pyplot ... | [
"graves@ualberta.ca"
] | graves@ualberta.ca |
fade5770d0d1f831c23cc2358f0489cb1ba70604 | 26e2f32669424f0e48a1206aa3b398c5404c43a3 | /col/codegen.py | 9e00e44bf286066ede2cdd0ea0484ebf2146ab3c | [] | no_license | d2verb/col | 7ec104c8a78f70503821d01feee3d73a73956219 | 49deb9c098e8e56365c7a4bd68a2cc8b519011ed | refs/heads/master | 2020-03-26T17:05:19.919058 | 2018-08-18T16:29:48 | 2018-08-18T16:29:48 | 145,140,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | class CodeGenerator:
def emit_expression(self, n):
expr_type = n[0]
if expr_type == "binop":
self.emit_binop(n[1:])
elif expr_type == "num":
print("push {}".format(n[1]))
elif expr_type == "lcl":
lcl_no = n[1]
print("mov rax, qword ptr ... | [
"licprog73@gmail.com"
] | licprog73@gmail.com |
eb3fcb5b6dc03640793c9cfd06e08435cf4164fa | 1f26dc9f4fd76bdf8b684727a6160703b3fff75f | /taxi,cab booking by Abhijeet/files/python/customer_update.py | 476bc07072972b34757d503241a070f660a9cd84 | [] | no_license | abhizit98/taxi | c6a44b0d7f6b25f9aae5d27be1002a18c45b7302 | 54333c71fd17e8048724fcfbe195eca6692611b7 | refs/heads/main | 2023-04-18T14:30:35.250878 | 2021-05-06T06:45:48 | 2021-05-06T06:45:48 | 364,810,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!C:\Python34\python.exe
import cgi
import cx_Oracle
print('Content-type: application/json\r\n\r\n')
con=cx_Oracle.connect('cbs/apss@localhost/xe')
cur=con.cursor()
data=cgi.FieldStorage()
sts=-1
cid=data.getvalue('cid')
name=data.getvalue('name')
gender=data.getvalue('gender')
dob=data.getvalue('dob')... | [
"noreply@github.com"
] | abhizit98.noreply@github.com |
88f40a0ff2b153a1991c001f610975f25f96f527 | 546e402b124c2e22d634efd8e1ffb641505f2cd3 | /order/migrations/0007_auto.py | d62909d771ac281c5e27a5f4c5b325e939037afb | [] | no_license | kthakur/saleor | 70a87c42a5582f9bf51b3901c31bc219d38eb26c | be1b2bc6a2ac106b4f7a56a24338265d01ec9111 | refs/heads/master | 2021-01-12T20:15:05.662241 | 2013-09-24T16:30:32 | 2013-09-24T16:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,049 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding M2M table for field payments on 'Order'
db.create_table(u'order_order_payments', (
('id... | [
"michal@ociepka.info"
] | michal@ociepka.info |
80a86a4d9b91b17fd95732baac8e603551a3be69 | a0d922bc4ea5192eab31e8e3cbdd98e60572d96d | /apps/guiltypleasure/migrations/0004_productmanager.py | dc82fa0a018aa183037306c7c3967d35853b128b | [] | no_license | Gypsybel/guilty | d8af717c877c8b97e50bf5f395b8ed21810ab8d3 | e9e1c60f156b2ee4b9eea377063050ad7d8e994b | refs/heads/master | 2020-06-29T20:59:33.883937 | 2016-08-26T17:41:38 | 2016-08-26T17:41:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-24 19:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('guiltypleasure', '0003_auto_20160823_1529'),
]
operations = [
migrations.Crea... | [
"crystabelrangel@gmail.com"
] | crystabelrangel@gmail.com |
584a453fdffce2504b2091c3145eef7a59b09c11 | 0f60c90f34a47962ba2fe1b454bb69e6d502253c | /notebook/pylinac/kv_phantom/pylinac/__init__.py | 3572044767f45e8b6415868807bda51ac948d890 | [
"MIT"
] | permissive | 1059444127/Jupyter | dd501e84fe5ae9cf423c3809f7335ee5a8259256 | 50aa22d6a1c478be05a335e8c6cebb2d2f1015a4 | refs/heads/master | 2023-08-16T14:47:26.100937 | 2021-10-26T19:53:14 | 2021-10-26T19:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py |
import sys
__version__ = '2.3.2'
__version_info__ = (2, 3, 2)
# check python version
if sys.version_info[0] < 3 or sys.version_info[1] < 6:
raise ValueError("Pylinac is only supported on Python 3.6+. Please update your environment.")
# import shortcuts
from pylinac.ct import CatPhan504, CatPhan600, CatPhan503, ... | [
"carlosqueiroz@live.com"
] | carlosqueiroz@live.com |
46fa3d6d352187a6ff318e34f9a8fe672f033c25 | a0d16eb0bc4e90663b5128e8347b468e45250d1c | /tests/core/endpoints/test_eth_block_number.py | 398fce3c774725f7d6e1eecdc1fcd52ac21b236f | [
"MIT"
] | permissive | voith/eth-tester-rpc | e3fc2d81354a0d2d1c2e0df56ac56ac49f4f3a1c | 080ec9afe6995940538311c3e28398afd568b7ad | refs/heads/master | 2021-06-09T03:55:15.349057 | 2020-11-26T21:11:56 | 2020-11-26T21:11:56 | 144,027,884 | 3 | 5 | MIT | 2020-11-26T21:08:39 | 2018-08-08T14:46:17 | Python | UTF-8 | Python | false | false | 162 | py | from tests.utils import (
hex_to_int,
)
def test_eth_blockNumber(rpc_client):
result = rpc_client('eth_blockNumber')
assert hex_to_int(result) == 0
| [
"voithjm1@gmail.com"
] | voithjm1@gmail.com |
aee1d74c8217a3cca60270e7502379436c873ee6 | e2a604ed80159970df34f4349b539b0a4ca8647e | /6_User/user/urls.py | 8d51e4f150b3f2e6c2b2833ec48c79f6d86d6dc3 | [] | no_license | likelion-kookmin/Django-tutorial | 1ae04203283c10b9525fc05c4b5e9c762f5705a1 | 216bb0ccde5a5fd21832ded9ff8ea5fc063e0e7d | refs/heads/master | 2022-04-11T22:32:12.414883 | 2020-03-29T10:25:32 | 2020-03-29T10:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.urls import path
from . import views
urlpatterns = [
path('signup/', views.sign_up, name='sign_up'),
path('login/', views.log_in, name='log_in'),
path('logout/', views.log_out, name='log_out'),
]
| [
"inth8204@gmail.com"
] | inth8204@gmail.com |
6bd3295d27f377bb3ae91cf7f7f0ad42b8a46e60 | bd498cbbb28e33370298a84b693f93a3058d3138 | /Inspur/benchmarks/dlrm/implementations/implementation_closed/tests/buckle_embedding_test.py | 6f8033a42903ebcd748ea9664764bac2d035a03e | [
"Apache-2.0"
] | permissive | piyushghai/training_results_v0.7 | afb303446e75e3e9789b0f6c40ce330b6b83a70c | e017c9359f66e2d814c6990d1ffa56654a73f5b0 | refs/heads/master | 2022-12-19T16:50:17.372320 | 2020-09-24T01:02:00 | 2020-09-24T18:01:01 | 298,127,245 | 0 | 1 | Apache-2.0 | 2020-09-24T00:27:21 | 2020-09-24T00:27:21 | null | UTF-8 | Python | false | false | 2,042 | py | """Tests for buckle embedding"""
from absl.testing import absltest
import torch
from torch import nn
from dlrm.nn import BuckleEmbedding
# pylint:disable=missing-docstring, no-self-use
class DistEmbeddingBagTest(absltest.TestCase):
def test_smoke(self):
test_buckle_embedding = BuckleEmbedding([3, 5, 7,... | [
"vbittorf@google.com"
] | vbittorf@google.com |
2d234c71ae3401e3c476c0145a739da0e171802a | 646ad63fc2274b85a219094b216b807c0bed1ede | /tests/core/commands/test_cmd_quota.py | 6c8784ea4c37a59ce12a55111ffffa52913c5f59 | [
"MIT"
] | permissive | Starz0r/pytuber | 9b252582b4ae296aee87faaf10a2eed9f541b7b0 | 5bb53edde6a39cedec48c4a8f41ba22db21d4727 | refs/heads/master | 2020-08-23T16:28:12.783690 | 2019-04-29T21:53:29 | 2019-04-29T21:53:29 | 216,662,810 | 0 | 0 | MIT | 2019-10-21T20:48:32 | 2019-10-21T20:48:31 | null | UTF-8 | Python | false | false | 914 | py | from datetime import datetime
from unittest import mock
from pytuber import cli
from pytuber.core.services import YouService
from tests.utils import CommandTestCase, ConfigFixture
class CommandQuotaTests(CommandTestCase):
@mock.patch.object(YouService, "get_quota_usage")
@mock.patch.object(YouService, "quota... | [
"chris@komposta.net"
] | chris@komposta.net |
5ac6f457fbea4f21049f88ebb23c042bab80df18 | 0401cca613fdc4e081ea652db96a141736a4a6f0 | /module1/imbasics.py | 9ce2f1f84a58b4e5ae781dc5d48ca72420f99456 | [] | no_license | jerryderry/pyimagesearchstudy | 8e115bfde89d3a191e481a3229ea0b55eea65b25 | c1589c5f3a3e693e61aeb538b4173dc3f981877e | refs/heads/master | 2020-03-22T08:07:31.947482 | 2018-07-04T16:57:38 | 2018-07-04T16:57:38 | 139,746,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | import numpy as np
import cv2
def translate(image: np.ndarray, x: float, y: float) -> np.ndarray:
"""Translate an image with x pixels horizontally
and y pixels vertically.
"""
# Construct the translation matrix
M = np.array([[1, 0, x], [0, 1, y]], np.float32)
shifted = cv2.warpAffine(image, M,... | [
"dongwenru.aaron.shenyang@gmail.com"
] | dongwenru.aaron.shenyang@gmail.com |
13172338e2b3b809b24e226c08c0ef2490d3b706 | 4162a15175dade7ff9503ccd739683076add1f26 | /src/functs/stabFuncts.py | d21b1a324696e0f4b1ae64344dab9790c57c9783 | [] | no_license | aryana761227/VideoStabilizer | 89475fc10d5b1f72a546f233bd7281765c2a839e | ebc652bb482b5dc63fe30ae7ccf58df3af48fc50 | refs/heads/master | 2020-04-19T15:05:17.627190 | 2019-01-30T02:40:53 | 2019-01-30T02:40:53 | 168,264,184 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | import numpy as np
import cv2
def getVideoArray (videoPath):
# video in info
video = cv2.VideoCapture(videoPath)
N_FRAMES = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
VID_WIDTH = video.get(cv2.CAP_PROP_FRAME_WIDTH)
VID_HEIGHT = video.get(cv2.CAP_PROP_FRAME_HEIGHT)
print "N_FRAMES: " + str(N_FRAME... | [
"aryana761227@gmail.com"
] | aryana761227@gmail.com |
163e1b407ec03229f701b5c1ad8642ebf6deee32 | 6365c4ff836c16103f39bf394c306eff1c08351a | /crawler/crawler_link1.py | e448bba0efe4ecc260cba5540639e0de9a67fac5 | [] | no_license | albert-zhao/py_code | 8f7d9d52b68cc409fc9161fbad980c083b297548 | 267e9898c04392ff2352baaefe575f32fe6ca0e5 | refs/heads/master | 2020-03-23T12:55:26.907635 | 2019-12-25T07:20:46 | 2019-12-25T07:20:46 | 141,590,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | #! /usr/bin/python
import re
import urllib2
import urlparse
def link_crawler(seed_url, link_regex):
"""Crawl from the given seed URL following links matched by link_regex
"""
crawl_queue = [seed_url]
seen = set(crawl_queue) # keep track which URL's have seen before
while crawl_queue:
url ... | [
"18868890019@163.com"
] | 18868890019@163.com |
e2c8bbd3422f404804ca4a5b2183623bd2d0fc02 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /coghq/DistributedBattleFactory.py | 9cbf5b835ad112cda6c82c2ab13e8a87022244ce | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.coghq.DistributedBattleFactory
from panda3d.core import Filename
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle
from direct.directnotify import DirectNotifyGl... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
21f90cf761ed27de60b2f3a5a059e88edb7562ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hatchet.py | 3ee3633a64a58ccd19ae48252680d868a128cd59 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
#calss header
class _HATCHET():
def __init__(self,):
self.name = "HATCHET"
self.definitions = [u'a small axe (= tool with a blade that cuts when you hit things with it)']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1d84fed8cae614abde6966182b150258151729fa | a74613ecd2ed4f486a246c04c51b45049ccb3b1b | /socket-programming/tcp_client_server/client.py | 75bc2c4aa92d2e24fedca641d4f696bc2b30c481 | [] | no_license | tezp/Python-projects | b490503ebcfc95fc376b16f254c0d59635e9db51 | d506da360c523d89fbb3a706a35e9f066da3e644 | refs/heads/master | 2020-04-05T22:04:21.549474 | 2019-12-13T16:15:05 | 2019-12-13T16:15:05 | 157,243,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((socket.gethostbyname("127.0.0.1"), 1133))
while True:
sock.send("Tejprakash".encode())
print(sock.recv(1024).decode())
| [
"noreply@github.com"
] | tezp.noreply@github.com |
06e0553e77bb80801eef8d994c476d58e4a37b0a | 90c815977667056247809f8b9140360de1b4de30 | /easy/strings/reverse_integer.py | d3d19ee24d6c9f093751ee306bdc6775f15cd90b | [] | no_license | wpine215/leetcode20 | b775409b148e6b6c5cce2e0c64fb452c9630f570 | 67b7bf27cc041748350a1e861fcb9d574095a9f7 | refs/heads/master | 2023-03-31T00:04:37.767570 | 2021-04-05T09:21:10 | 2021-04-05T09:21:10 | 281,016,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | """
https://leetcode.com/problems/reverse-integer/
Given a 32-bit signed integer, reverse digits of an integer.
If reversed integer exceeds 2^31, return 0.
Lessons learned:
- You can't use .reversed() on a string, use [::-1] instead!
"""
class Solution:
def reverse(self, x: int) -> int:
s_x = str(x)... | [
"noreply@github.com"
] | wpine215.noreply@github.com |
a8aa23bdab8f192dd86a7c7115adc91521b3a4d5 | 365609eab603486008b7eef9b2ede77adcac0d0c | /dataset/__init__.py | 05eefa22eb4c0ddb6b3f89e73ae9c2175d04729c | [] | no_license | dangchenyu/break_light-recognition | 8e78c0dd0ec332c3cf617caf679cdfa685cee3de | 293e8538df046acf684237caf7dd9611ebe79fb1 | refs/heads/master | 2020-08-03T12:59:09.296324 | 2019-09-30T02:34:02 | 2019-09-30T02:34:02 | 211,760,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | from .tail import * | [
"dcy0921@outlook.com"
] | dcy0921@outlook.com |
4b808309303b99c7558fac571d29b36948c3982d | b48a5cc105fc7ee982bb8a2c1e42dbbdbf5adc6b | /TM-GCN-master/experiment_reddit_our.py | 3d80f84de69fea9bf36a7fc4db351036c7826f78 | [
"Apache-2.0"
] | permissive | killianrwood/TM-GCN | 6ecd5169f15367faf012eac44a1b59e8cec16ab9 | 31b19a538f264f6c30b5503ecefb497ee865b4d7 | refs/heads/main | 2023-06-01T23:11:43.864995 | 2021-06-16T21:03:45 | 2021-06-16T21:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,370 | py | # This version of bitcoin experiment imports data preprocessed in Matlab, and uses our TensorGCN
# Imports and aliases
import pickle
import torch as t
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.datasets as datasets
import numpy as np
import matplotlib.pyplot as plt
impo... | [
"noreply@github.com"
] | killianrwood.noreply@github.com |
deb243a92c76668d01fd0ad6bc1b8309ac9f7db4 | 1c6abb96a93c557b02560e16f3d3c77e52d285b1 | /mundoDois_Atividade30.py | 0742a130cd467a390c8ae9900b93af02402cdce8 | [] | no_license | maiarawill/python | e15f826a92d7b6440f57a1885f135154abb8249f | 3558f6e6b3122914daf2d75645ad84e7ee58ed7d | refs/heads/master | 2021-04-03T15:41:33.122476 | 2020-03-23T01:12:46 | 2020-03-23T01:12:46 | 248,374,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | resposta = 's'
soma = 0
quantidade = 0
media = 0
maior = 0
menor = 0
numero = 0
while resposta in 'Ss':
numero = int(input('Digite um número'))
soma += numero
quantidade += 1
if quantidade == 1:
maior = menor = numero
else:
if numero > maior:
maior = numero
if num... | [
"50561516+maiarawill@users.noreply.github.com"
] | 50561516+maiarawill@users.noreply.github.com |
412fc3586b1b04c74bc733d4dc75ab08aff13d99 | 3b855f63a5718a0390ccdd75735e5dd24f10e0df | /pytorch-code-examples/search_hyperparams.py | 8ddffe079595e0be76fd8da3a0527f84dfdea622 | [
"MIT"
] | permissive | an-other/Learning_code | 5dd6e64437eaf4c38dac021372c6bab24f870a05 | 8927242b4674f15ff59f6f649a4bb9fca2d771b2 | refs/heads/master | 2023-04-26T12:27:15.931017 | 2021-05-27T07:54:40 | 2021-05-27T07:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | """Peform hyperparemeters search"""
#寻找超参
import argparse
import os
from subprocess import check_call
import sys
import utils
PYTHON = sys.executable
parser = argparse.ArgumentParser()
parser.add_argument('--parent_dir', default='experiments/learning_rate',
help='Directory containing params.json... | [
"qiujie_dong@mail.sdu.edu.cn"
] | qiujie_dong@mail.sdu.edu.cn |
856b372c9bc7f53c92cdc301bddc997c5cc83f1c | 21d59d29d21528a9a2415e2015019f360fa423ce | /api_game/migrations/0017_auto_20210118_1555.py | 851dc0631290148d303e3c573417d35684de5407 | [] | no_license | Prabodika/restapp | 2029752e9aa42d979d70ab8ad4d0a707202ad8b9 | 4d2faabc3a27d8daf0f88507b02620c7490e9137 | refs/heads/master | 2023-02-17T21:13:33.399132 | 2021-01-20T11:56:03 | 2021-01-20T11:56:03 | 331,255,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.1.5 on 2021-01-18 15:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api_game', '0016_auto_20210118_1507'),
]
operations = [
migrations.AlterField(
model_name='play... | [
"Prabodika.Naiduwa@pearson.com"
] | Prabodika.Naiduwa@pearson.com |
e8120f61bb8f2ad70ae09cb0b32ff9a6413ad410 | bd4fb5837c05ff1ee66a4ef4333655d61fcf7f29 | /python REST/ProducerREST.py | 14c9c92cde7e44909cbd6eea784c08c642e973cd | [] | no_license | lterrac/kafka-training | 93f17272da7848b983ca51ff3fc19dacb3a1eb4e | 95c7728a6b09664100b98a583b8a1c44b2660091 | refs/heads/master | 2020-04-10T07:17:04.701242 | 2018-12-07T23:00:30 | 2018-12-07T23:00:30 | 160,876,874 | 0 | 0 | null | 2018-12-07T21:23:57 | 2018-12-07T21:23:56 | null | UTF-8 | Python | false | false | 510 | py | #!/user/bin/python
import requests
import base64
import json
url = "http://restproxy:8082/topics/myfirsttopic"
headers = {
"Content-type" : "application/vnd.kafka.binary.v1+json"
}
payload = { "records" :
[{
"key" : base64.b64encode("firstkey"),
"value" : base64.b64encode("f... | [
"terraccianoluca@gmail.com"
] | terraccianoluca@gmail.com |
7fb0423ec0e231947ac99d4c1793dc2a5f633d06 | 723c6162cdb7f3c0070cfed683521fd7b32b3487 | /devpro/encurtador/views.py | d7e3c6c80d087e48ea1bfade67be25e0f1d4e227 | [] | no_license | WendelRoberta/URL-reduce | 7757de4a996b7c96af97144dd7cefb722210da88 | f6b2dd9956991211d094ec01ace180c125f01b39 | refs/heads/master | 2023-05-03T13:40:35.554643 | 2021-05-21T02:10:52 | 2021-05-21T02:10:52 | 368,554,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | from django.db.models import Count
from django.db.models.functions import TruncDate
from django.shortcuts import render, redirect
from devpro.encurtador.models import UrlRedirect, UrlLog
# Create your views here.
def relatorios(requisicao, slug):
url_redirect = UrlRedirect.objects.get(slug=slug)
url_reduzida ... | [
"wendel.roberta1995@gmail.com"
] | wendel.roberta1995@gmail.com |
4ee54b7bf51c5e35ff76d6521c3aae78cb9079e3 | 862f870a79c5bfdf6f4b70dd677fc979eb6137aa | /ms_identity_web/context.py | 2712f78338a83e1a2b7a5d3c210edc4950cc92d0 | [
"MIT"
] | permissive | skmandal/ms-identity-python-samples-common | 1588d2718b96c327c966e4e80a5902f5ee32e96c | e9b5f5dd8a6364249831789717826fea55a1d0b5 | refs/heads/main | 2023-02-19T15:48:53.065350 | 2021-01-25T09:23:45 | 2021-01-25T09:23:45 | 332,691,829 | 0 | 1 | MIT | 2021-01-25T09:19:16 | 2021-01-25T09:19:16 | null | UTF-8 | Python | false | false | 2,687 | py | from msal import SerializableTokenCache
import json
# TODO: make this a @dataclass ?
class IdentityContextData(object):
SESSION_KEY='identity_context_data' #TODO: make configurable
def __init__(self) -> None:
self.clear()
self.has_changed = False
def clear(self) -> None:
self._au... | [
"66391663+idg-sam@users.noreply.github.com"
] | 66391663+idg-sam@users.noreply.github.com |
63fd88acdcebe98c89c00725d5cf2826549f7b5c | e82e219b8f9ebdd4f0976e8b30de5114d9628782 | /ase_project/homechef/migrations/0013_auto_20200721_1446.py | 61c40708fa433538154d30919dc07e3fca13b7b0 | [] | no_license | Rukmini-Meda/HOMECHEF | 36fa888fa42dfe7457aa4cfb0a1f95a97ee38609 | bf1c238a37e089f09e254b6f3394e5e52968dace | refs/heads/master | 2023-01-08T06:49:03.339760 | 2020-11-06T19:57:36 | 2020-11-06T19:57:36 | 240,837,754 | 3 | 2 | null | 2020-09-09T03:06:15 | 2020-02-16T05:35:55 | CSS | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.0.8 on 2020-07-21 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homechef', '0012_orderitem_vendorobj'),
]
operations = [
migrations.AlterField(
model_name='fooditem',
name='price',... | [
"rukmini.m18@iiits.in"
] | rukmini.m18@iiits.in |
7429637b3d1eff61bac629cdaf2031d9d72d1832 | a29c6e83ae4f9010941d15c8fd4cfc67680bb054 | /ml/m15_randomSearch3.py | 676fef1a96a144265ebefcfd7f4e4e1df752e92b | [] | no_license | ym0179/bit_seoul | f1ff5faf4ae20fbc8c0e2ed10a005f8bd4b2c2b8 | 14d1fb2752312790c39898fc53a45c1cf427a4d1 | refs/heads/master | 2023-02-27T19:52:23.577540 | 2021-02-08T00:30:16 | 2021-02-08T00:30:16 | 311,265,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | #Day12
#2020-11-24
# 당뇨병 데이터
# 모델 : RandomForestRegressor
import pandas as pd
from sklearn.datasets import load_diabetes
from sklearn.model_selection import train_test_split, KFold, cross_val_score, GridSearchCV, RandomizedSearchCV
from sklearn.metrics import accuracy_score, r2_score
import warnings
from sklearn.svm i... | [
"ym4766@gmail.com"
] | ym4766@gmail.com |
13264a103e66b2e23f72deff4819ceff21da6eca | 1eb2d7d2a6e945a9bc487afcbc51daefd9af02e6 | /eds/controller/__init__.py | deebe85d22d41b69dab825eb5fd53a7005d7ea4e | [] | no_license | fengges/eds | 11dc0fdc7a17b611af1f61894f497ad443439bfe | 635bcf015e3ec12e96949632c546d29fc99aee31 | refs/heads/master | 2021-06-20T04:43:02.019309 | 2019-06-20T12:55:26 | 2019-06-20T12:55:26 | 133,342,023 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py |
# author :feng
# time :2018/1/25
# function : 扫描所有文件,找出所有蓝图并注册
import os,sys
from flask import Blueprint
#------------扫描所有文件----------
bp_file=[]
def eachFile(filepath):
try :
pathDir = os.listdir(filepath)
except:
return
for allDir in pathDir:
# 忽略__开头的文件和文件夹
if... | [
"1059387928@qq.com"
] | 1059387928@qq.com |
f9b2fd0e0bafe30b58659dc529d13bf70ff50426 | b3ebe2a3869ab1b580d293d97f58340f8bd4a496 | /algorithms/SumRecursive.py | 0140f620441c994acf96deba892e983ae3f24a65 | [] | no_license | GhostOsipen/pyRep | 53ba2e0d2cd67fcd40983d49e5e4a9c071ff1cd7 | 6f02346962985d9681933a1bf02a21f41c1a2e6e | refs/heads/main | 2023-05-14T03:29:24.622368 | 2021-06-04T06:42:46 | 2021-06-04T06:42:46 | 343,307,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def sum_recursive(nums: list) -> int:
return nums[0] if len(nums) == 1 else nums[0] + sum_recursive(nums[1:]) | [
"59918711+GhostOsipen@users.noreply.github.com"
] | 59918711+GhostOsipen@users.noreply.github.com |
2f11c2f39e28820e4c069b0f7ce10e531bd60e6d | c558952f3c9d294e2c6d3a3d65d9f98d0411dc37 | /show_acc.py | b376b96e45155bbf63111e75b2b388862acf8287 | [
"MIT"
] | permissive | DingZhelun/V2V-PoseNet_Pytorch | 37a4b115c41ed02f3ab60b6de230992e2b53eeef | 01010401597063700179a4c7cad4785af34e2b27 | refs/heads/main | 2023-02-21T10:26:25.247306 | 2021-01-28T08:09:44 | 2021-01-28T08:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import sys
sys.path.append('../../')
import numpy as np
import matplotlib.pyplot as plt
from lib.accuracy import *
from vis.plot import *
gt_file = './experiments/itop_experiment/test_side_gt.txt'
pred_file = './experiments/itop_experiment/test_side_res.txt'
# gt_file = './experiments/msra-subject3/test_s3_gt.txt'
#... | [
"3200699791@qq.com"
] | 3200699791@qq.com |
6d118674593e7b3bc5b82d7ca42cd1c3846863ac | 1fac53ab13a9a682ecd926857ef565fa779afae4 | /pro/13.py | 0b8d62883eb73d45ca1280fea31b7038e7b8463f | [] | no_license | Shamabanu/python-1 | 339123ff4e7667d6331c207cb1c7ca3fc775dc48 | 4c1642679bb0bdd53a1d21e5421e04eb7abda65b | refs/heads/master | 2020-04-13T23:49:27.700807 | 2018-12-29T15:10:26 | 2018-12-29T15:10:26 | 163,516,492 | 1 | 0 | null | 2018-12-29T14:16:28 | 2018-12-29T14:16:28 | null | UTF-8 | Python | false | false | 308 | py | def min(l,s,e):
min=999
for i in range(s,e+1):
if min>l[i]:
min=l[i]
return min
def main():
n=int(input())
l=[]
for i in range(n):
l.append(int(input()))
q=int(input())
out=[]
for i in range(q):
s=int(input())
e=int(input())
out.append(min(l,s,e))
for i in out:
print(i)
p
| [
"noreply@github.com"
] | Shamabanu.noreply@github.com |
7e6ead79607d50ccdf7fa10746ae1fd572af2387 | 6709a9993f85149a1fed8ccfcf83f068756c08f7 | /CGIProject/cgi-bin/index.py | a4ffe9dadb6e6c7e2fe09c2f4dcae4f034cace0b | [] | no_license | GnezIew/Python_Daily_Exercise | f8ca6881abfc43a601409f631d4db798199496fc | 0caedd1ac6e03d639cf782a8e36d10ec76828395 | refs/heads/master | 2020-06-14T02:16:17.336980 | 2019-07-08T11:24:13 | 2019-07-08T11:24:13 | 194,864,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | html = """
<html>
<head>
<title>
image
</title>
</head>
<body>
<img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1562231356345&di=14d608194de00e8b04ec741b3b107ab9&imgtype=0&src=http%3A%2F%2Fimage.whhost.net%2Fuploads%2F20180413%2F22%2F1523628708-NofpLxkrHM.jpg">
</body>
</html>
... | [
"773733859@qq.com"
] | 773733859@qq.com |
5306cd2ee8bccc0f00f679a22bc959ffee2ada9a | d836bdd06caefb40aac7cf68f3a289bc1946f33b | /src/issuango/wsgi.py | af5816598b8652a76ad10d53f5088285cd4e209f | [
"MIT"
] | permissive | tjurkiewicz/issuango | 16bc2588502a32e9fa4e19506b82955fca13a495 | 5873899d5194c7a7203b1bf4b92366570d8ad61b | refs/heads/master | 2021-01-10T02:41:35.651199 | 2015-12-21T21:18:16 | 2015-12-21T21:18:16 | 48,391,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for issuango 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"user@centos7.localdomain"
] | user@centos7.localdomain |
f4e170aa70a9ee36e9883325c2d025e6b1a33513 | 7db77c9e3bbd079e49535c526b4e47fe538c4e73 | /python/adcsmooth.py | bfe8c50125ce034a283f6e15ab55d0175f0b654b | [
"BSD-3-Clause"
] | permissive | fermi-lat/calibGenCAL | d451a242c793b6ddb10cb1d523205da6a0b0279b | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | refs/heads/master | 2022-02-25T16:05:43.694826 | 2019-08-27T17:29:03 | 2019-08-27T17:29:03 | 103,186,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | """
Tool to smooth CAL XML file ADC/DAC characterization data. The command
line is:
adcsmooth [-V] <in_file> <out_file>
where:
[-V] = verbose; turn on debug output
<in_file> = raw ADC/DAC XML characterization file name
<out_file> = smoothed output XML characterization file name
"""
__facili... | [
""
] | |
de06754e842970ef715fa82c639201aed1af2f56 | f86a635c4a735c09db5c0d907271b3d537cf584b | /manage.py | 3a255bce7451eb5847e8d87b29815046621ca0fa | [] | no_license | jkasanjian/room-graphql-api | b667907251dc6d100391ba5f1b01d3ec409f6d9c | 65257187f0f36c46cc3c21a721985d74bf0a06cb | refs/heads/master | 2022-06-01T15:29:12.695661 | 2020-09-23T05:56:07 | 2020-09-23T05:56:07 | 254,235,641 | 0 | 0 | null | 2022-05-25T02:53:13 | 2020-04-09T00:54:00 | Python | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'room_graphql_api.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"jkasanjian@gmail.com"
] | jkasanjian@gmail.com |
554cba733b22749222497dddc3d5808f4a286eb7 | 31bec62400386fc26142d52a1e45052c998cd085 | /wick/tests/test_expression.py | 4f46ac665b74152a3cc76573d75b2fcd229f4761 | [
"MIT"
] | permissive | gharib85/wick | 6b4d80259795c64aae0166a56c229c646a1b1245 | 59f8a4b522f11875320e9e98b3af57fe7b7d8313 | refs/heads/master | 2023-09-02T08:08:09.071181 | 2021-10-16T01:13:27 | 2021-10-16T01:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,597 | py | import unittest
from wick.index import Idx
from wick.operator import FOperator, Sigma, Tensor, Delta
from wick.expression import Term, Expression
class ExpressionTest(unittest.TestCase):
def test_resolve0(self):
I1 = Idx(0, "o1")
I2 = Idx(1, "o1")
I3 = Idx(0, "o2")
operators = [FO... | [
"whiteaf862@gmail.com"
] | whiteaf862@gmail.com |
d665914b7d61ef92b859ada48eeb92be69a6c2ec | 8ef495fd2226c4bf91f31a8f31d727fbcd8ac861 | /python/rrsg_cgreco/__init__.py | 795411e4d11dcaf91a3309f8ad4b18d5698068cf | [
"MIT"
] | permissive | ISMRM/rrsg_challenge_01 | 36a17944a8a52ecaed22bf080efa9996b6055e97 | 830b6b91748676d5056c7b425103d59092c337c4 | refs/heads/master | 2021-07-02T04:12:12.587619 | 2020-10-27T11:28:27 | 2020-10-27T11:28:27 | 187,852,432 | 7 | 2 | null | 2020-10-27T11:28:30 | 2019-05-21T14:20:16 | null | UTF-8 | Python | false | false | 60 | py | from . import linop
from . import recon
from . import solver | [
"oliver.maier@tugraz.at"
] | oliver.maier@tugraz.at |
7c503a38c4c24bb46c87ec8de4a166e2e9c178ba | b78fe5de1b32baf5dca8e51c8d71ff6f0470d85b | /kjpage/views.py | fa63160357cfafcb3ede09f398e97dbe376545fe | [] | no_license | codinglivez/kjcode | ddedcedb6479d12cd8bf4c9ca37708abe02fc9e4 | cb5b6049034f7f70beb400dcea693ba902b926f8 | refs/heads/master | 2022-10-11T21:36:57.439047 | 2020-06-11T08:39:29 | 2020-06-11T08:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,397 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse,JsonResponse
import requests
import json
import datetime
from operator import itemgetter
from django.contrib import messages
import re
from django.contrib.auth.decorators import login_required
from django.contrib.auth import get_user_mode... | [
"saad.shaikh0@gmail.com"
] | saad.shaikh0@gmail.com |
d103aa04df6ef7024d491ad2c789e4d1236c8a87 | eb27bda0c934b3e2346b9fda793d6ab36047b6c4 | /Star(turtle).py | 549f91699f363453107b659e4ad748dd9465ab13 | [] | no_license | UVPrince/Python-codes | 0fb24f3347e7f94dc80b44afde8ea461baacd552 | ede8169f9ec9c9cc9dc30bfceac3eb80d2491d29 | refs/heads/main | 2023-08-13T21:27:13.667400 | 2021-10-01T04:05:52 | 2021-10-01T04:05:52 | 404,385,382 | 0 | 0 | null | 2021-09-08T14:46:03 | 2021-09-08T14:46:02 | null | UTF-8 | Python | false | false | 279 | py | import turtle as t
t.bgcolor("black")
#setting background color <black>
t.color("red")
#setting pen color <red>
t.hideturtle()
#hiding turtle
t.speed(0)
#setting speed <max speed>
1
#for loop for star
for i in range(500):
t.forward(i)
t.right(144)
| [
"noreply@github.com"
] | UVPrince.noreply@github.com |
6203bb12a6e03bc9b43bbb89c8a96a20cb3e248c | f0ae390a0daa175906e0f0c8b676079704fe35d1 | /opencommunity/settings/base.py | 4fd88f2be13df0c92fec9554207c6309654c5347 | [
"MIT"
] | permissive | mathewtrivett/opencommunity | 90875bc566353b2fbde8b3b82cd017642085e55d | daffd0a19f7729d93d9141e830e8c844dd6ddaf8 | refs/heads/master | 2020-06-04T01:05:15.552479 | 2019-06-16T14:48:08 | 2019-06-16T14:48:08 | 191,807,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for opencommunity project.
Generated by 'django-admin startproject' using Django 2.1.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"matt.trivett@gmail.com"
] | matt.trivett@gmail.com |
568e1843c64961c991e4211a1ac8a94cec5e7167 | 4990249a49fbe473c84f0a033e6f404d86fe7ab6 | /Kickstart2019/PracticeRound/NumberGuessing.py | ae97b4415843c2663ab914e55985b1b047703c5b | [] | no_license | iLtc/GoogleCodeJam | 8bcae50ee1a857cf852d9cf3c02419b1e32da238 | e9706ff34d246adff64e6b6e210a2df1fa912a2d | refs/heads/master | 2021-04-27T00:29:31.070041 | 2019-02-24T11:58:24 | 2019-02-24T11:58:24 | 62,525,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | t = int(input())
for _ in range(t):
a, b = list(map(int, input().split()))
a += 1
n = int(input())
for i in range(n):
guess_num = (a + b) // 2
print(guess_num)
result = input()
if result == 'CORRECT':
break
elif result == 'TOO_SMALL':
... | [
"i@iltc.io"
] | i@iltc.io |
b8e1a643ea67da7d5beac438146446d32aeffae5 | c033a594811c688425036d22eeab94c0e829fa0b | /city_loader.py | 61b40a39e215c773e0ad633b62087c15bfd9eac8 | [] | no_license | yomako/UrbanNetworkAnalyser | d8d0ffdacb3e4febe6c0e591eaf8e4dff254ba4a | da5fffcd3ba48c2a4a5850a39f9468c2b1607e99 | refs/heads/master | 2020-03-27T02:51:53.165178 | 2018-10-20T09:11:23 | 2018-10-20T09:11:23 | 145,822,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,953 | py | import codecs
from pprint import pprint
import tic_toc
from cartographer import line_counter
import pickle
import numpy as np
import math
from percolation import *
from city_loader_histograms import *
from square_net import City
from astropy.visualization import make_lupton_rgb
import sys
class Junction:
origin_l... | [
"tombal5@wp.pl"
] | tombal5@wp.pl |
8a89548f36d60ec9efd878b46e99388b004d2917 | 95e7dc15976e3bf4fa2610aaee3862030845e5db | /Aula24.py | 03487867aaf99e3f220203a1000b45f72867bb82 | [
"MIT"
] | permissive | juniorsmartins/Aulas-Python | c7e80405264ed4accc25dbb22ea3dbb0a0dd4efe | 48cf784c8856a588a4789c3206601a970206fdfe | refs/heads/master | 2022-12-22T19:20:35.830269 | 2020-10-04T03:40:40 | 2020-10-04T03:40:40 | 293,669,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # coding: latin-1
for contador in range (5, 0, -1):
print(contador)
print("\n")
for cont in range (1, 6):
print(cont)
print("\n")
lista = {1, 4, 7, 9}
for itens in lista:
print(itens)
print("\n")
arquivo = {1: "Mário", 2: "Pedro", 3: "Alberto", 4: "Francisco"}
for itens in arquivo:
print(itens, arquivo[iten... | [
"juniorsoaresmartins@gmail.com"
] | juniorsoaresmartins@gmail.com |
b150600d2397148a1a94ddfaf4def3e4ae4562ac | 8c5dd342b65b8024f85f1cdc9e009cc221693291 | /ABC_MODEL/MATLAB_FILES_AND_DATA/ARCH/waves_test_data.py | dd2c03e18118041b0e92c269b44d2814dc843d28 | [] | no_license | RuthPetrie/uor | c6692ec1bf3b69dc5c1bc5b15dd33305472661ab | 1f791f1959994dbee2026cd4b9cbea428e8f327a | refs/heads/main | 2023-04-12T07:42:45.181449 | 2021-05-13T16:00:00 | 2021-05-13T16:00:00 | 365,258,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | ###################################
#
# PROGRAM TO PLOT DISPERSION CURVES
#
# Version
# 0.1 R. Petrie 27-5-2014
#
##################################
# SUPPLY 3 ARGS
#
# 1: GRAVITY WAVE SPEEDS FILE NAME
# 2: ACOUSTIC WAVE SPEEDS FILE NAME
# 3: HORIZONTAL OR VERTICAL (WAVE SPEEDS AS A FUNCTION OF)
#
# E.G
#
# py... | [
"rpetrie@sci5.jasmin.ac.uk"
] | rpetrie@sci5.jasmin.ac.uk |
e4015493394765c5f5f7591bdfe6dd642011996f | d5784b6908cfeba152f80e34a4f896d86ceb7bdb | /myproject/accounts/views.py | 0126fca753b1ebf89b8c5272f12e2d5d0ed7fd9b | [] | no_license | EchoCN/- | a74332ede6e6c2bababc791d4bda357d71200bd6 | db2d29720c945bc281e0cdc3833c6822a8b28871 | refs/heads/master | 2020-03-17T17:18:28.253191 | 2018-05-17T08:33:08 | 2018-05-17T08:33:08 | 133,483,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import login as auth_login
from .forms import SignUpForm
# Create your views here.
def signup(request):
if request.method == 'POST':
form = SignUpForm(request.POST)
if form.i... | [
"1801046793@qq.com"
] | 1801046793@qq.com |
d745c83bf23f98b67fc042729f5d71a062416056 | 59651c7a39582d47f25fc52e21b69ce64d5afa59 | /calculateRTT.py | 4a3464a6caa436ee89110b9eeba9e3ca90bb993f | [] | no_license | RiyaMittal/PythonLearnings | 32a9f81812cac5826ef515b54a55ff0b1ded7253 | 1d26f1376c007a2c96ee4daad9d8e47b27d48e5a | refs/heads/master | 2020-04-02T09:59:43.176239 | 2018-10-23T12:00:46 | 2018-10-23T12:00:46 | 141,101,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import time
import requests
def RTT(URL):
t1=time.time()
r=requests.get(URL)
t2=time.time()
RTT=str(t2-t1)
print "time in seconds are ", RTT
URL="http://www.facebook.com"
RTT(URL)
| [
"riya.mittal@hpe.com"
] | riya.mittal@hpe.com |
5501fc47341d33a872651b8ffef9a6b733fc2db5 | 918b2c5c4e6e079d866060bb94b8ab419808264b | /Alarm.py | c91fd5decda1615be642245a6427074916d02a30 | [] | no_license | Nathanjp91/PublicTransportPi | 7308b84a8e45a2d60bdf9b96fff4815ecf2a8a94 | 4ec64c67e190d34fbe206700efb6cfa982331b51 | refs/heads/master | 2021-06-14T18:06:47.400681 | 2015-10-31T06:32:20 | 2015-10-31T06:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | import pygame
from EpochTime import *
class Alarm:
#daysOfWeek = [{"Day":"Monday","Value":0},{"Day":"Tuesday","Value":1},{"Day":"Wednesday","Value":2},{"Day":"Thursday","Value":3},{"Day":"Friday","Value":4},{"Day":"Saturday","Value":5},{"Day":"Sunday","Value":6}]
alarmSchedule = []
def __init__(self, ... | [
"lachlan.cesca@gmail.com"
] | lachlan.cesca@gmail.com |
163006d1027d731a6a5b7a63bbb3d0f42d69c36a | ddc94b55010b12be30b92cdc6147da4fc1c37287 | /AI methods/Assignment5/neural_network_skeleton.py | 829a8b56e82bc06758d8d38ae54c45c2611e4dae | [] | no_license | pirib/NTNU | 61e1c232b9c0092886f3b156239f0da4a0bfc35d | f71c482cefacab0fb1e30d79c8eb2236f5f00eec | refs/heads/master | 2023-05-03T20:40:37.593711 | 2021-05-24T16:55:13 | 2021-05-24T16:55:13 | 332,446,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,964 | py | # Use Python 3.8 or newer (https://www.python.org/downloads/)
import unittest
# Remember to install numpy (https://numpy.org/install/)!
import numpy as np
import pickle
import os
import random
# README
# The code is a direct adaptation of the pseudo-code from the book. The naming convention is directly as the notatio... | [
"212310@usn.no"
] | 212310@usn.no |
7726b0527443457d1634dcb5ac6de66561b59ad3 | f041bd8590a62b34c5ea20a08a486ef454ebbe4e | /test.py | 19a904d89a85fed78c280c87ffc07003146b349b | [] | no_license | ryancurrah/jsontest | 282c4a244d05a999a366e38069ffb7dfeb2b634f | 66b6376cc84185b38c27fe1291e30627a6c35476 | refs/heads/master | 2021-01-10T04:31:16.572886 | 2015-10-14T14:45:46 | 2015-10-14T14:45:46 | 44,252,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from unittest import TestCase
import json
class IntegrationTest(TestCase):
def setUp(self):
self.data = json.load(open('data.json', 'r'))
def test_data_type(self):
self.assertIsInstance(self.data, dict)
def test_data_true(self):
self.assertTrue(self.data)
| [
"ryan@currah.ca"
] | ryan@currah.ca |
1d38ab78a01ac6b73cc35c3b5b089f2ce612904e | 735e449d5674aeb1f1336c2c69ca7829a84dc1d3 | /book_broker/.venv/bin/python-config | 8cbe1c803664f2a1e9cb034893994d4b4dd80bd9 | [] | no_license | georgenano/office_hack | da76b283c39e8090e28b459c3867274f65123125 | f38c4bffe8374da09ecc3de9b307b8d948dd7aff | refs/heads/master | 2022-12-09T18:40:39.871153 | 2020-02-26T09:09:10 | 2020-02-26T09:09:10 | 242,480,896 | 0 | 0 | null | 2022-12-08T03:41:06 | 2020-02-23T08:19:30 | Python | UTF-8 | Python | false | false | 2,377 | #!/Users/joji.okada/development/office_hack/book_broker/.venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('... | [
"joji.okada@JojinoMacBook-Pro.local"
] | joji.okada@JojinoMacBook-Pro.local | |
414687d22ede72476dbc0426cb5937debc5d33e5 | a2f3174c961f3be4b0df9df0e9e9ccd1696154a8 | /Website/academy.cba.mit.edu/classes/interface_application_programming/glimage.py | 0c3ea8bfd49d49f8011dac3c4c96ecbecbcb5f15 | [] | no_license | troykyo/FabAccademy | b37972c2d0e794fd2b00a7652e65c7aae8946fb8 | 7a8edded276656e0dd5732151aa1e37b9d793f21 | refs/heads/master | 2016-09-06T15:50:02.897219 | 2015-05-15T23:00:06 | 2015-05-15T23:00:06 | 29,254,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | #
# glimage.py
# (c) Neil Gershenfeld 2/10/08
# animate sin(r)/r image with GLUT
#
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from numpy import *
import sys
NGRID = 50
KMIN = 0.0
KMAX = 20.0
k=0.0
dk=0.2
def X(j): return (2.0*(j + 0.5)/NGRID - 1.0)
def Y(i): return... | [
"git@troykyo.com"
] | git@troykyo.com |
fc4eba5935059e6128b133cc2c060cdb972f9a15 | dcf2ab4e1a66d53eaaa1260a8824882fbd0bbd9f | /bonus of salary.py | f4ca9a0bd3e168131d1e460d06d77175392a50b1 | [] | no_license | gauriindalkar/if-else | a54189ef8e6368be5cc6b8a9fdafa6e9497843be | fac48790ffb9f6d021eff921a80ff57e399a4f77 | refs/heads/main | 2023-05-11T05:59:13.275673 | 2021-05-29T17:24:19 | 2021-05-29T17:24:19 | 371,955,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | salary=int(input("enter salary"))
years=int(input("enter year of salary"))
if years>5%100:
print("bonus is",5/100*salary)
else:
print("no bonus") | [
"noreply@github.com"
] | gauriindalkar.noreply@github.com |
16ed24a1e99499ae71fb9dbe7450a3f611296dbd | 8a94e7094f621b9b11b31a7620192f52dc96fbda | /app_0801/manage.py | ec269f063a3deb0176a6241d9e6cdda629941bab | [] | no_license | kenson2998/oldboy_fullstack | ce1a46ce951af9aef00de1ec52f30e6c394ef8e9 | 48c6a11d62b91c4db97b6da545ddb47050a65c4a | refs/heads/master | 2020-06-21T08:26:30.393606 | 2019-10-08T06:35:09 | 2019-10-08T06:35:09 | 197,394,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app_0801.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"kenson2998@gmail.com"
] | kenson2998@gmail.com |
2eb854a813b5103d5826757cebd62b9d6339928b | 562432d16c4b21071d3112775da9a082d8592079 | /docs/source/conf.py | 69254a068b78d46f6d78c319c23891704fea0587 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | koldinger/Tardis | c4e01d998d5480254f26b2fb5cd1a830d7ba1196 | 8f8c3b0ba49442b938243fa6f2eecc7fe4a1317a | refs/heads/master | 2023-07-06T08:20:09.250675 | 2023-06-25T15:30:39 | 2023-06-25T15:30:39 | 15,847,018 | 63 | 18 | null | null | null | null | UTF-8 | Python | false | false | 8,326 | py | # -*- coding: utf-8 -*-
#
# Tardis documentation build configuration file, created by
# sphinx-quickstart on Thu Mar 24 21:09:32 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"kolding@washington.edu"
] | kolding@washington.edu |
ec15cefd7201df906ecdc3912c276717b4c1ed08 | 3efbf6b115d2e2e2991aacddc40dd564e457780a | /Webots/Interface/interface.py | f39c0a4c55b6daf7ee058422ea840f60c08f86fc | [] | no_license | digo-smithh/robot-web-controller | 3904861e73572f52ec8ffd85e146ddeccae3f2cd | f0a632eb577cc727f4896236f75e4b0c695e39bf | refs/heads/main | 2023-05-17T00:54:16.949599 | 2021-06-10T06:02:04 | 2021-06-10T06:02:04 | 368,978,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # Enzo Furegatti Spinella 19168
# Mateus Cleto de Oliveira 19187
import PySimpleGUI as sg
import socket
import struct
#Conectando
address = ('192.168.56.1', 9000)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(address)
#Layout
sg.theme('Dark Gray 2')
layout = [
[sg.Button('↑')],
[sg.B... | [
"platinamaster5@gmail.com"
] | platinamaster5@gmail.com |
6ae90f81bd80d4f27cec474cff18363e9192c808 | cad7817ec484fffe844143eafd861f20b57f3577 | /Operation_Case/Production_Management/Operation_Activity.py | d2a0e8ce7fe0fbb4ea05f2f5c706028a35ee6852 | [
"Apache-2.0"
] | permissive | Four-sun/Selenium_Operation | ff18f88fe4fcbacd76ec92ba2a027c0678740feb | dfe65e67e0176035b9a09f8ae6039a4424400e79 | refs/heads/main | 2022-12-28T16:01:23.252883 | 2020-10-14T05:48:34 | 2020-10-14T05:48:34 | 303,892,007 | 0 | 0 | Apache-2.0 | 2020-10-14T05:48:35 | 2020-10-14T03:25:11 | null | UTF-8 | Python | false | false | 5,319 | py | # coding=utf-8
"""
Created on 2019-05-05
@author: Four
Project: operation-活动
"""
import sys
import time
import unittest
from Utils.log import Logger
from selenium import webdriver
from Constant.Constant_Path import *
from Constant.Page_element_path import *
from selenium.webdriver.common.by import By
from... | [
"fanshu@dtstack.com"
] | fanshu@dtstack.com |
bd12c35799ef6f853784a4e51cb1f8f41ed77c4b | d96520d6f0fdeac6091db9709d6d5e807ef5ef6d | /py2.py | cd7bc164be1737586cfd922722c84a5be3bb7fe2 | [] | no_license | guyvo/pythons | 2ca55653395eb25f3a3638977a33b3ce7c9db715 | 2320e2732625b2df2783d6ccf1cc4690d6f20e14 | refs/heads/master | 2020-03-25T23:36:28.623140 | 2018-08-14T09:24:39 | 2018-08-14T09:24:39 | 144,283,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def func1():
print("func1")
class myclass:
def func1(self):
func1()
| [
"guy.van.overtveldt@gmail.com"
] | guy.van.overtveldt@gmail.com |
a9e0e830468f184d2f98593cc05ca88159ff7b48 | 2037cc4b5689e828ad53c52233341878b528c5b0 | /Part 1 - Annotation Pipeline/dags/Preprocess_The_Data.py | c3b995a07a6399997dd7cd5e826e923baa94f23e | [] | no_license | sagarshah95/sagarshah95-Harvard-Compute-Fest-Research-Project-Edgar-Data-Architecture-ML-model-as-Service-APIs | 07990b45e312c33320ac9c174c40f7eb69d80c71 | b96ba03d918b7cb118793f7ce0a9fba1a95474b2 | refs/heads/main | 2023-03-31T09:14:00.244325 | 2021-03-29T17:31:31 | 2021-03-29T17:31:31 | 352,727,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | def convert_files_to_sent_list():
directory = r'/home/jayshil/PycharmProjects/EdgarPipeline/call_transcripts'
#content_list=[]
#temp_list=[]
global content_list
for filename in os.listdir(directory):
temp_list= []
#filepath='call_transcripts'+'/'+str(filename)
filepath=r'/hom... | [
"noreply@github.com"
] | sagarshah95.noreply@github.com |
63f04f8b472b0e6fb25ace0140b464cd60db9de8 | 58be9ab3da7170fa6eea7c12a6d59e4960db3c66 | /alumnos/Javier Sandoval/Ejercicio 02/Actividiad-3.py | 8bc8dfa99187e278f60d2ce51e5b66900f0e1477 | [] | no_license | CodevEnsenada/actividades | 08d39b9b53d8c10ad17204fa9ac5e313a940a4b3 | 862d6f983b7056957522d28686df1b0a323a9e6f | refs/heads/master | 2022-04-09T03:47:32.373978 | 2020-03-16T20:17:14 | 2020-03-16T20:17:14 | 241,519,981 | 0 | 12 | null | 2020-03-16T20:17:15 | 2020-02-19T03:03:48 | Python | UTF-8 | Python | false | false | 25 | py | x = 6
y = 5
print (x + y) | [
"jsandoval@codevschool.org"
] | jsandoval@codevschool.org |
c6fec9b804df981012e60e73e239c5d64f5c6af8 | f480409cde4e155b19cf18b5980d8922ee3b9b41 | /gsdata/gsdata5.py | 574c38497666e1d18c546c02a3a6898baad3596f | [] | no_license | adleader/wechatSpider | 114f0379817356070eb60207805f3a199c1b029a | 26166c2f3b60229c8053758ce2ed4e073602c175 | refs/heads/master | 2020-04-08T16:03:20.166873 | 2020-02-05T10:07:27 | 2020-02-05T10:07:27 | 159,502,888 | 0 | 0 | null | 2018-11-28T13:02:02 | 2018-11-28T13:02:02 | null | UTF-8 | Python | false | false | 7,214 | py | # -*- coding:utf-8 -*-
import requests
from bs4 import BeautifulSoup
import re
from pymysql import *
import json
import time
from lxml import etree
import random
'''
微信公众号号主信息抓取,清博大数据:http://www.gsdata.cn/
此代码通过直接搜索公众号的方式,来抓取微信公众号号主信息
'''
def get_gsdata(style):
headers = {
'Host': 'www.... | [
"noreply@github.com"
] | adleader.noreply@github.com |
cf0747c85d12059f3b520eb81503920f6baefb8e | eb9b4a6b439699c8a46a6c6b88fd7472f002cbfc | /euler35.py | 0837f0957a3ec87cc7b86259ec2deda65e0ad1eb | [] | no_license | klq/euler_project | f1a8fdbb905321dcc295d8a3d2b31dd635825b7b | 1a33427765e19728357bec8a3f2fa1ef88668a14 | refs/heads/master | 2020-12-24T14:53:53.118922 | 2015-01-09T08:18:07 | 2015-01-09T08:18:07 | 18,789,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | def get_primes(n):
is_prime = [True] * (n + 1)
is_prime[0] = False
is_prime[1] = False
for i in range(2, n+1):
if is_prime[i]:
j = 2*i
while j < n+1:
is_prime[j] = False
j += i
return is_prime
def all_rotations(n):
# returns all... | [
"konglq@gmail.com"
] | konglq@gmail.com |
a492b7ce86f7d1f6045e8dd2f0d1d7b7395d9ba9 | 6572c0619b42d7fafa7bbdcd4c30c3ef0e30cb17 | /lib/rucio/tests/common_server.py | e79cc5677140a3e73e16a964798733f22af81cd8 | [
"Apache-2.0"
] | permissive | martynia/rucio | 7aeff06be49a4427dfc95bf8197ae74f684fe830 | f2a2ffe00b0d99a5973390c5476167821b6d821e | refs/heads/master | 2022-02-27T01:24:19.031754 | 2022-02-07T09:49:10 | 2022-02-07T09:49:10 | 215,314,646 | 0 | 0 | Apache-2.0 | 2022-02-12T16:07:13 | 2019-10-15T14:06:52 | Python | UTF-8 | Python | false | false | 1,426 | py | # -*- coding: utf-8 -*-
# Copyright 2021 CERN
#
# 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... | [
"simon.fayer05@imperial.ac.uk"
] | simon.fayer05@imperial.ac.uk |
71b4049d88648b8d5380920d050ec18db62a5318 | 1a036a07951bce899f098d776a0e236dc1fab118 | /app/migrations/0088_delete_chart.py | a291d221c00a03852290553def7f3c91e83fd77f | [] | no_license | Jyothy-Antony/PetWorld | 53cf2136ee803c28937e76dc1b523a58d174f728 | a2608100b41d049bca43e00dd6f4d087e17185f8 | refs/heads/master | 2020-04-25T21:16:40.338031 | 2019-12-13T06:35:04 | 2019-12-13T06:35:04 | 173,075,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # Generated by Django 2.1.3 on 2018-11-06 06:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0087_tbamount'),
]
operations = [
migrations.DeleteModel(
name='chart',
),
]
| [
"kjyothy02@gmail.com"
] | kjyothy02@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.