blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9bd4b64ebb38e2e59820dd722970e0e96371a90f | 54c22fdcb44c42b1c0855be576e934939a2a2c5c | /contragents/models.py | 0b10a0036da5a0300652633c3a2677971c2eb556 | [] | no_license | flashboyka/build_yard | 84e50600e03c0124f1fdf3991491852f5f469774 | c25b419f445bc5c751966850f3860cf19dfd33a1 | refs/heads/master | 2020-12-11T06:43:44.601335 | 2020-01-15T14:34:37 | 2020-01-15T14:34:37 | 233,791,548 | 0 | 0 | null | 2020-01-14T08:19:53 | 2020-01-14T08:19:52 | null | UTF-8 | Python | false | false | 716 | py | from django.db import models
class Contragent(models.Model):
last_name = models.CharField(max_length=25, verbose_name='Фамилия')
first_name = models.CharField(max_length=25, verbose_name='Имя')
middle_name = models.CharField(max_length=25, verbose_name='Отчество')
email = models.EmailField(verbose_nam... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
9dff0431f838a1a504fe9b24ea59c733529ae5fa | 25d6371928dc91e2593edf04d7428f4cf886da42 | /students/wzh/pyfile/playmusic.py | 3cec9f688f00be432a2e29637a297462a40713ab | [] | no_license | ophwsjtu18/ohw | 7d4ecca6fc98cadbabd3c088c0d69efa3d20a10f | 67677baad6d0b92d3d453309b66ed274c097dfd6 | refs/heads/master | 2021-05-25T10:28:59.872340 | 2018-12-19T13:18:34 | 2018-12-19T13:18:34 | 127,097,829 | 1 | 3 | null | 2018-11-07T10:53:03 | 2018-03-28T06:58:57 | Python | UTF-8 | Python | false | false | 929 | py | import serial
import serial.tools.list_ports
import time
import csv
print ('hello')
ports = list(serial.tools.list_ports.comports())
print (ports)
f=open("song.csv",'r')
songs=list(csv.reader(f))
song_dictionary={}
i=0
for song in songs:
song_dictionary[song[0]]=song[1:]
i+=1
for p in ports:
... | [
"noreply@github.com"
] | ophwsjtu18.noreply@github.com |
7fff60cccdbfed5de914c812bb9d37476fabd96d | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/gui/TraceDialog.py | 93dfa69fbf3f7c968e04ca274567b4895b3f5e8f | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
a39ac72e3dd8293bb7c5a117983a0650437216be | 8e52e07428cb9ded3e96db45e9d9e4444ba80224 | /vegetableOrder/migrations/0007_auto_20170422_1146.py | dff84affaada50f0eb21a18d502b84f3ebcf05f5 | [] | no_license | prashantspandey/mohanamandi | c2f8a1763813f7df21db7579bcb44b9f390d870f | 99231feaa9eb442d20a65a6754ec5b1df4e5208c | refs/heads/master | 2021-01-20T05:15:31.741033 | 2017-04-29T05:44:32 | 2017-04-29T05:44:32 | 89,766,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-22 06:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('vegetables', '0005_vegetable_subpricekg'),
('vegetabl... | [
"prashants_pandey@outlook.com"
] | prashants_pandey@outlook.com |
b996c977517f5ce622b698b1872d39647e064362 | 06a863150a7a3a7bfc0c341b9c3f267727606464 | /lib/gii/qt/controls/Settings.py | 417bb2b0cbf6570f8ede7d3aaa6f6f5318978c4f | [
"MIT"
] | permissive | brucelevis/gii | c843dc738a958b4a2ffe42178cff0dd04da44071 | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | refs/heads/master | 2020-10-02T00:41:02.723597 | 2016-04-08T07:44:45 | 2016-04-08T07:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from PyQt4 import QtCore
globalSettings=QtCore.QSettings('Hatrix','GII')
def setGlobalSettingFile(filepath):
global globalSettings
globalSettings=QtCore.QSettings(filepath, QtCore.QSettings.IniFormat)
def getGlobalSettings():
return globalSettings
def setSettingValue(name, value):
globalSettings.setValue(name, ... | [
"tommo.zhou@gmail.com"
] | tommo.zhou@gmail.com |
ddcb78be7a534d96575e83381e99bcf1d76d713c | a2706c66c4f2769c00fc5f67e1a85742cfa7e17c | /MODULES/Execution_UserExecution_NtCreateSection.py | f244911cfec971ee6844a6865d5e9bd77056d65a | [
"BSD-3-Clause"
] | permissive | Jeromeyoung/viperpython | 48800312dcbdde17462d28d45865fbe71febfb11 | ba794ee74079285be32191e898daa3e56305c8be | refs/heads/main | 2023-09-01T18:59:23.464817 | 2021-09-26T04:05:36 | 2021-09-26T04:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | # -*- coding: utf-8 -*-
# @File : SimpleRewMsfModule.py
# @Date : 2019/1/11
# @Desc :
import time
from Lib.ModuleAPI import *
class PostModule(PostPythonModule):
NAME_ZH = "NtCreateSection进程注入"
DESC_ZH = "使用NtCreateSection及NtMapViewOfSection远程线程注入技术打开共享内存,将shellcode注入到其他进程中"
NAME_EN = "NtCreateSecti... | [
"yu5890681@gmail.com"
] | yu5890681@gmail.com |
22ff3c8ec043a748f85e7e330611f00ac0949c95 | e86d020f8ade86b86df6ad8590b4458a9d415491 | /projects/test-crrr/base_mission/utils/check_logger.py | c944ef41446f4be841f1c6a115e7d739a4cbadc0 | [] | no_license | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 1,610 | py | # -*- coding: utf-8 -*-
import hashlib
import logging
import os
import sys
from cr_scene.utils.uitls import get_cr_scene_name
from cr import settings
def scene_log_key(scene_name, name):
_key = hashlib.md5('{}-scene'.format(scene_name)).hexdigest()
return _key
class SceneLogFactory(object):
logger_po... | [
"842995907@qq.com"
] | 842995907@qq.com |
e5766dadf98150deffa339dbefa2d888f7af7282 | 44869749f8af2b548a2fbb23403e1a623e29d691 | /mysite/mysite/settings.py | 208621a7982a95d9f9f745f6e2c27df05323735f | [] | no_license | Ojou/my-first-blog | 4536c4db194d325508fd000ccd5919a722772994 | e29be78c3c87b39c474dabf2a27387797c2d2a41 | refs/heads/master | 2016-08-12T15:27:52.761420 | 2016-03-12T05:06:06 | 2016-03-12T05:06:06 | 53,712,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bu... | [
"admin@admin.com"
] | admin@admin.com |
2d2a84da60052c7bbdf576522c35aae0207f76a4 | 75136cd1865bd72ebad8ba31446d57d9fdedce22 | /pepysdiary/common/templatetags/search_tags.py | b9f9268357944463a88b44a9e284a80ec47c36ea | [] | no_license | hugovk/pepysdiary | ca9a1d39ed62e7299509daa69b5df0d5164aec31 | 1a67c11efb62f5392914732ad15a4db71872ed05 | refs/heads/main | 2021-12-03T01:36:16.626676 | 2021-11-08T17:29:51 | 2021-11-08T17:29:51 | 60,296,270 | 0 | 0 | null | 2016-06-02T20:48:07 | 2016-06-02T20:48:05 | null | UTF-8 | Python | false | false | 1,582 | py | from django import template
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from pepysdiary.common.utilities import hilite_words, trim_hilites
register = template.Library()
@register.simple_tag()
def search_summary(obj, search_string):
"""
Returns the HTML to display... | [
"phil@gyford.com"
] | phil@gyford.com |
b6a956b9818da0da10270c5fa6aa0eaccf12a1d7 | 743c1aa4ae8336645785a5afd768a3c6c7189439 | /BGWpy/BGW/__init__.py | 460615f95d9f5ce43be3666023199be3687052ec | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | kcantosh/BGWpy | 566e03e888ab17b7d8ff7a68a6033d121532d905 | fc5eda118ccdd18cdcdb88141df2b673456e8bd2 | refs/heads/master | 2021-06-25T14:21:33.426910 | 2017-08-28T18:43:40 | 2017-08-28T18:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from __future__ import print_function
from . import inputs
# Core
from . import bgwtask
# Public
from .kgrid import *
from .epsilontask import *
from .sigmatask import *
from .kerneltask import *
from .absorptiontask import *
from .inteqptask import *
__all__ = (epsilontask.__all__ + sigmatask.__all__ +
... | [
"gabriel.antonius@gmail.com"
] | gabriel.antonius@gmail.com |
3055b260778cf417707db8721cce2a574e8742a8 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/rest_api/pagination.py | 244d9b96a12060f9438120bf55da8fccfa069296 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 2,689 | py | """
Discussion API pagination support
"""
from edx_rest_framework_extensions.paginators import NamespacedPageNumberPagination
from rest_framework.utils.urls import replace_query_param
class _Page:
"""
Implements just enough of the django.core.paginator.Page interface to allow
PaginationSerializer to wor... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
09c13e8d7e182c779642a9945ae1d18db780e082 | dec7cac75fb472ab28b57228496b17fdbcf5df1d | /accounting/views.py | 2b319b1591a9b8b214b969d1b42c9bb045ff0ca9 | [] | no_license | sofide/apicolapp | a21be58982957b1115f73a3cc80bbce58832a739 | 32f9df4109540c6fb0c07dc9de2f557ec583a9d9 | refs/heads/master | 2021-06-22T22:34:53.075938 | 2019-03-28T01:27:13 | 2019-03-28T01:27:13 | 133,557,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | from datetime import datetime, timedelta, date
from django.contrib.auth.decorators import login_required
from django.db.models import Q, Sum, Count, Prefetch
from django.db.models.functions import Coalesce
from django.shortcuts import render, get_object_or_404, redirect
from accounting import forms
from accounting.ma... | [
"sofi.denner@gmail.com"
] | sofi.denner@gmail.com |
c2d6f67753d23b501788801fb5ddc9bf1b830795 | 6cf46f85debb1b0505c0edcbc7296f50a44a615d | /dexy/tests/plugins/test_wordpress_filters.py | 59635a82d9934c4853b96ef03431438d88b9812a | [
"MIT"
] | permissive | aioupload/dexy | 27b7f5051417093d8336e39d71e824b3ef5c9f56 | 350b7ed23d2f3aab50097aabf3481229d75d1cf7 | refs/heads/master | 2021-01-16T22:59:11.707350 | 2013-08-05T06:08:00 | 2013-08-05T06:08:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,062 | py | from dexy.doc import Doc
from dexy.tests.utils import TEST_DATA_DIR
from dexy.tests.utils import wrap
from dexy.tests.utils import capture_stdout
from mock import patch
import dexy.exceptions
import json
import os
import shutil
import dexy.filter
import dexy.wrapper
def test_docmd_create_keyfile():
with wrap():
... | [
"ana@ananelson.com"
] | ana@ananelson.com |
179136706a176c379e4e834a4aa983bf7e7f6ac6 | 421f42acd37d3d02dda23bad4bc68cc58b481c00 | /forensics/ekoparty-vnc/getvnckeys.py | 0656a55d4ed0be982b14ead90bf9394e324d41a2 | [] | no_license | sourcekris/ctf-solutions | 6963d0a1524c4d5bd738d187e72f571bf608bd7a | 3251f113c3a94732e432885fc785fb71d67d05e8 | refs/heads/master | 2021-08-27T18:13:00.902502 | 2021-08-25T07:59:46 | 2021-08-25T07:59:46 | 38,923,614 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | #!/usr/bin/python
#
# Extract the VNC keystrokes from a PCAP using tshark
#
# kris, Capture The Swag
#
# http://github.com/sourcekris/
#
import subprocess
import sys
import os
import re
if len(sys.argv) < 2:
print "Usage: " + sys.argv[0] + " <pcap or pcapng>"
sys.exit(-1)
# read the tshark data in PDML format - ho... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4357960f8e003e9c912bd7ac3fd0ed1852c7932b | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/contrib/autograph/utils/builtins_test.py | 0c2312178a921037fa419818bf309d671c33914d | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 4,569 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
c8e05da4b1e368920092b454e82ee0183422509a | 0c6b47f5647fa048e701c743bd61e05667b3b569 | /101_Common_Dialogs/SingleChoiceDialog/__demo__.py | 3556b9bda73bf996e3b30c39c0042e5e6c1cfb11 | [] | no_license | pythonthings/wxPython-Sample-Apps-and-Demos | bbfa5c307c08bd0e732083a7e7ec0aaefa234033 | 65e6828e92217445367420c9c2ebb4a7ed9a1d6e | refs/heads/master | 2022-10-02T18:41:01.697132 | 2020-06-10T00:18:15 | 2020-06-10T00:18:15 | 281,526,555 | 1 | 0 | null | 2020-07-21T23:32:51 | 2020-07-21T23:32:51 | null | UTF-8 | Python | false | false | 2,243 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-MetaData --------------------------------------------------------------------
__doc__ = """
This module contains the meta data needed for integrating the samples
in the directory into the wxPython demo framework. Once imported,
this module returns the following informati... | [
"metaliobovinus@gmail.com"
] | metaliobovinus@gmail.com |
604e26e48551410e05524b6f2d4cec5c440f5fbf | ff1137a7d8f9c01632cf757495e065ec5e3817a2 | /爬虫精进/第9关/第9关 selenium提取网页源代码后用bs解析.py | 900588bc680a8a8384ae9a8b2ae68d504b017129 | [] | no_license | yuqiuming2000/Python-code | 3d5e5d8ba5c5f477b4cfab67b0d63d838eefc591 | b16a6c425d4bf400df6b365d091f56bc8c5c4d34 | refs/heads/master | 2023-06-22T04:22:25.991172 | 2021-07-24T13:49:38 | 2021-07-24T13:49:38 | 389,100,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from selenium import webdriver #从selenium库中调用webdriver模块
import time
from bs4 import BeautifulSoup
driver = webdriver.Chrome() # 设置引擎为Chrome,真实地打开一个Chrome浏览器
driver.get('https://localprod.pandateacher.com/python-manuscript/hello-spiderman/') # 访问页面
time.sleep(2) # 等待2秒
page_source=driver.page_source
print(page_source)
... | [
"76746694@qq.com"
] | 76746694@qq.com |
317167f3c7c18125e0cf23dbcaad084d793b878d | 01fa2aca31eb73a559d192fd29e44350f26a13a9 | /HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_quick/unchecked/putlockersio.py | 66419b703d52903a2d204fa04395dc04459b9fd2 | [
"Beerware"
] | permissive | RandomIntermition/k4y108837s | b4beedeff375645bd4fa9ad348631a9a9f3640b6 | e9115aad49795dfe30a96c278cedaf089abcc11d | refs/heads/master | 2022-05-01T18:45:57.298903 | 2022-03-30T03:41:08 | 2022-03-30T03:41:08 | 109,356,425 | 1 | 0 | null | 2019-11-08T02:20:47 | 2017-11-03T05:36:48 | Python | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: UTF-8 -*-
# -Cleaned and Checked on 10-16-2019 by JewBMX in Scrubs.
import re
from resources.lib.modules import client
from resources.lib.modules import cleantitle
from resources.lib.modules import more_sources
class source:
def __init__(self):
self.priority = 1
self.language = ['en... | [
"github+github@github.github"
] | github+github@github.github |
7cc3e50af6a48ca74abfc02656c9019972018641 | 499fc7e223551d434582417353203ecd53b7d731 | /DataTypeandManipulation/TypeCasting.py | efab449b81a11562cf61c91d04d3c343f363a5ba | [] | no_license | pravinherester/LearnPython | df53045e4b098a9923e7ecbbeffedb75f6c82f81 | 05c06dccd9ac45fc30cf0675f89f0bb2c7db6644 | refs/heads/master | 2023-08-11T10:12:50.494666 | 2021-06-19T04:44:12 | 2021-09-10T01:20:58 | 338,636,734 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | num_char=len(input("What is your name"))
print(type(num_char))
new_num_char=str(num_char)
print("After type casting")
print(type(new_num_char))
print("Your name has "+new_num_char+ " characters") # This will not break as the Type of new_num_char is String now
#other
#Guess what will print
print(100+float(100.75))
pr... | [
"replituser@example.com"
] | replituser@example.com |
3423017cde1fa95647f30b289fef5e2249c48c80 | 25114b282d36bf67448582fa73eb50ee350c4da7 | /multicolor_backend_theme/__init__.py | aa487b80d227678e989bbb6cdf900a094b116d0e | [] | no_license | inst-sol4u/CybroAddons | 7b888628e1a1bdc21eee3c82f0c975271cc5f238 | 39a50294785209c4964f5925d7129bdc9d4af4e4 | refs/heads/14.0 | 2023-08-18T11:51:45.494958 | 2021-09-24T09:50:43 | 2021-09-24T09:50:43 | 372,519,765 | 0 | 0 | null | 2021-05-31T13:40:19 | 2021-05-31T13:40:19 | null | UTF-8 | Python | false | false | 992 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2020-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# you can modify it unde... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
a7ea9d535013853895485bb04c94a3fbfcc123c2 | 7fc03f7d28ea7bbdca650a51a23fc0b13cbefde1 | /reinforcement_learning/0x00-q_learning/1-q_init.py | d42a24aba80da020f4cb8c8a81a025823604dba3 | [] | no_license | HeimerR/holbertonschool-machine_learning | 54c410e40d38635de482773f15e26ce1c2c95e46 | e10b4e9b6f3fa00639e6e9e5b35f0cdb43a339a3 | refs/heads/master | 2021-07-24T09:33:25.833269 | 2021-01-14T00:21:45 | 2021-01-14T00:21:45 | 236,603,791 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/env python3
""" Initialize Q-table """
import numpy as np
def q_init(env):
""" initializes the Q-table
- env is the FrozenLakeEnv instance
Returns: the Q-table as a numpy.ndarray of zeros
"""
action_space_size = env.action_space.n
state_space_size = env.observation_space.n
... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
f622e236dad0ae272bf7f9ba003242f9017f8e62 | faf512a387355c5a6e5af59fc48aa2a79762344c | /playground/bot_runner.py | 2dfbcdc23780892642059da3e9d5e2c61716e453 | [
"Apache-2.0"
] | permissive | lawrencechen0921/ExcelLexBot | f80f848058af284f8595206a9e510baf21d013b1 | 97041c47c06ba42cb10630d78b2300b113b6b3bf | refs/heads/master | 2021-07-09T10:58:51.155580 | 2019-10-28T08:15:15 | 2019-10-28T08:15:15 | 229,690,075 | 0 | 0 | Apache-2.0 | 2021-03-20T05:10:26 | 2019-12-23T06:23:00 | null | UTF-8 | Python | false | false | 271 | py | import boto3
import json
client = boto3.client('lex-runtime', region_name='us-east-1')
response = client.post_text(
botName='ScheduleAppointmentBot',
botAlias='$LATEST',
userId='UserOne',
inputText='book a hotel')
print(json.dumps(response, indent=4))
| [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
28fb47d43c5f1a043a47867a3eea10ad3e89707d | 53cb38bba0f95ddbffd83a9e45c9eed602694265 | /muddery/commands/default_cmdsets.py | 9564a9cc053c9b9d55621a2346b48167a0c66bd4 | [
"BSD-3-Clause"
] | permissive | elove88/muddery | 4356eb0203edeb26285b2bf032f410a8e6e4fb3b | 55dabb2d8d5fbf87ef0e7f2a2a0722251510a254 | refs/heads/master | 2021-09-05T23:30:33.835858 | 2018-01-31T13:50:26 | 2018-01-31T13:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | """
Command sets
All commands in the game must be grouped in a cmdset. A given command
can be part of any number of cmdsets and cmdsets can be added/removed
and merged onto entities at runtime.
To create new commands to populate the cmdset, see
`commands/command.py`.
"""
import traceback
from evennia import CmdSet... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
98981f55c9eccb1768ee4877f1033ddb4650bbc7 | 749cf1cfba5e0113b9619d46aa55edc7abb4aca4 | /src/scs_mfr/test/test.py | ecca4b9e84bbd9f1834c0eea55da6dda3ad04b4f | [
"MIT"
] | permissive | caspar/scs_mfr | b65fcd51e6561370f9fb1d6482f0717d7058e535 | 90f3604190c883c39ceddd1ce56a36d72e628e8d | refs/heads/master | 2020-03-22T22:07:35.063124 | 2018-07-06T12:20:38 | 2018-07-06T12:20:38 | 140,734,794 | 0 | 0 | null | 2018-07-12T15:52:36 | 2018-07-12T15:52:36 | null | UTF-8 | Python | false | false | 1,278 | py | """
Created on 18 May 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from abc import abstractmethod
# --------------------------------------------------------------------------------------------------------------------
class Test(object):
"""
classdocs
"""
# ------------------... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
bb711b9545190d0bb301ef3888269d53576f13a7 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-win32/2.7/twisted/internet/address.py | aea84bf68bbed91d502c7072beb96a2ac2766dff | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a515bfec9ac845d6ff70998513414bc502c31a8567def729df1252d0faeb057b
size 4196
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
69ee5e0cc7739ebcbee9d1a3e5819b28dde34833 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/signal/testcase/firstcases/testcase1_016.py | e81237d6fa82e693c08ba184b53c1b1c193da30e | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
d38fe136135727031be58d9f7ae57117d9659ff6 | 0d45e05e1eda670b233081118bbcb63743c166db | /web/act_assist/settings.py | 98cdcc4d0b82667a1b1f93b5264afd75a34cc1cd | [
"MIT"
] | permissive | maleriepace/activity-assistant | 24ef7e4e6488e31726ba21c07acda83a7119f979 | c5baa21f3d22db18da591ddf76e7bf6a7e7229cc | refs/heads/master | 2023-01-31T15:53:30.100115 | 2020-12-13T14:41:04 | 2020-12-13T14:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,996 | py | """
Django settings for hassbrain_web project.
Generated by 'django-admin startproject' using Django 2.1.2.
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... | [
"account@meier-lossburg.com"
] | account@meier-lossburg.com |
3e28462872d134c1fbcd211fc3c8b0fff0004cc3 | c50c7111279fc9cfb75f414bf72b7faeb3aa93bc | /raise.py | 7161dd53a065fee7228038e606e670a75e67b1e7 | [] | no_license | Hemanthtm2/Python | d95cbd89778074dc87d75e86c75f998b6e419c93 | 64a21c9a6dadf2bb92616fbdc4209119afcaa562 | refs/heads/master | 2021-08-24T07:24:20.509134 | 2017-11-07T18:35:44 | 2017-11-07T18:35:44 | 108,621,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/pyrhon
def inputnumber():
x=input('Pick a number')
if x==17:
raise ValueError,'17 is a bad number'
return x
print inputnumber()
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
c8f4bb67eb5023fb6754b7accaaecaa3d3c89059 | b7312dc013ba06e5b44b33c0411f4948c4794346 | /study4/decorator3.py | 866d868685ac97384a6c6229bf76635ac05af61f | [] | no_license | GaoFuhong/python-code | 50fb298d0c1e7a2af55f1e13e48063ca3d1a189f | 7d17c98011e5a1e74d49332da9f87f5cb576822d | refs/heads/master | 2021-02-07T20:25:06.997173 | 2020-03-01T02:22:41 | 2020-03-01T02:26:04 | 244,072,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # Author:Fuhong Gao
#嵌套函数
# def foo():
# print("in the foo...")
# def bar():
# print("in the bar...")
# bar()
# foo()
#一个简单的装饰器(注意:在定义函数时,函数名应避免使用test1、rest2...否则容易出错)
import time
def timer(func): #将test1和test2传给func
#定义一个函数(“变量”)
def deco(*args,**kwargs):
start_time = time.time()
... | [
"1350086369@qq.com"
] | 1350086369@qq.com |
62b6f24a18c8dc7368fbaa3d566c57711600b466 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_LOG/test_c142794.py | 1fff26fd926e1ae41c0fb8a21027628e495f9ba9 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_physical_interface import *
from page_obj.scg.scg_def_vlan_interface import *
from page_obj.scg.scg_def_bridge import *
from page_obj.common.rail import *
... | [
"15501866985@163.com"
] | 15501866985@163.com |
eed1238d3a0fd05c591f3ee36a20a12e4ab9be07 | 74bf86f99cc75006716edf5e25b040d1265ea134 | /forms.py | ae87ae5091d5c25ebab6d13b38b9d4a2d40c1c31 | [] | no_license | guoweikuang/flask_blog | 65ed13c9660e699d4ec3b01212c6dcd41bb7e5d9 | 1292918b81029fd5b149486d8a8478fc02b92618 | refs/heads/master | 2022-12-09T05:46:17.093246 | 2017-07-12T15:28:27 | 2017-07-12T15:28:27 | 94,674,289 | 0 | 0 | null | 2022-12-07T23:59:57 | 2017-06-18T08:15:43 | JavaScript | UTF-8 | Python | false | false | 623 | py | # -*- coding: utf-8 -*-
import re
from flask_wtf import FlaskForm
from wtforms import StringField, TextField
from wtforms import ValidationError
from wtforms.validators import DataRequired, Length
def custom_email(form_object, field_object):
"""自定义检验器,邮箱格式检验"""
if not re.match(r"[^@+@[^@]+\.[^@]]+", field_ob... | [
"673411814@qq.com"
] | 673411814@qq.com |
44886b5540adf62e789a3e14c8bdb407164c6454 | fc6bc4cf23f713e3e4a97c00f724c977b3adbf82 | /venv/Scripts/rst2html4.py | cea8afb9d0e6e8c96822dd5798e93d5ce73aa0b3 | [] | no_license | Startrekker007/SInglePhotons | 8b429e29f78977adfa7711e8dae2cb864a13ea53 | 529c2ab3ea3c3797db4dd4e0a336ce35ea2e64a1 | refs/heads/master | 2022-12-12T16:38:56.412370 | 2020-02-04T00:19:57 | 2020-02-04T00:19:57 | 223,832,514 | 2 | 2 | null | 2022-12-08T09:25:43 | 2019-11-25T00:41:41 | VHDL | UTF-8 | Python | false | false | 738 | py | #!D:\SInglePhotons\venv\Scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms to XHTML 1.0 transitio... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
74d32a699bdd95a5f76f5892163733b31d4f7216 | e203ddace08580170e3b4de9c79588209e857c1c | /dice.py | abdae853c875404a92648d58684acab4c6db318b | [] | no_license | stradtkt/OOPTreehouse-Python | e17f3fd48840049b8b741aa0e30e54d1409804b2 | 84e0ef2142118bf44c416a3b1dde3519ff57fd15 | refs/heads/main | 2023-02-26T15:03:27.053205 | 2021-02-04T13:04:26 | 2021-02-04T13:04:26 | 334,620,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import random
class Die:
def __init__(self, sides=2, value=0):
if not sides >= 2:
raise ValueError("Must have at least 2 sides")
if not isinstance(sides, int):
raise ValueError("Sides must be a whole number")
self.value = value or random.randint(1, sides)
def __... | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
b99a5769e37c7e91afb7a10ecf5019595817fcd5 | 09120532659f7eb134163f92ac2f65423a04dc03 | /zproject/django/survey/teacher/migrations/0006_remove_question_page.py | b68e92589867082131f7e2af6969e05cc1c2cfca | [] | no_license | hoboland21/survey | 7b2dafd76db0e9317037a0cec163a97c0ec9a8ec | 93e71f3304b381a6be03c8f813d2ba3a0b6eb218 | refs/heads/master | 2023-01-28T07:38:38.934710 | 2019-05-13T08:55:41 | 2019-05-13T08:55:41 | 182,874,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 2.2.1 on 2019-05-13 07:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('teacher', '0005_auto_20190502_0008'),
]
operations = [
migrations.RemoveField(
model_name='question',
name='page',
)... | [
"jc@saipantech.com"
] | jc@saipantech.com |
0a2d611f2578b26b114f89d0df16482b4e00844f | 37b2998b537673f0b2b0237887fe3ab1b4c525d1 | /workbench/offers/migrations/0002_offer_project.py | 0ced7448d48e952a677f636985a60ce7075c79c0 | [
"MIT"
] | permissive | ndarvishev/workbench | 1076fc86522884a3128fab25cd7f6f8162a152f4 | e93c35180990ee3424fbb7b73e26400cb869e29a | refs/heads/main | 2023-05-30T23:47:36.948646 | 2021-06-25T08:43:15 | 2021-06-25T08:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 2.1.7 on 2019-03-04 21:39
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [("projects", "0001_initial"), ("offers", "0001_initial")]
operations = [
migrations.AddField(
... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
dbadb79e1a21ae2572a427526517b255f2b2e995 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/3d/8/Andreas_Wang/parser.py | 6a3bff914ce674c14def05ef60a827e30890a319 | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py | from display import *
from matrix import *
from draw import *
from math import *
from types import *
# I had a neurotic need for everything to match the math notation of
# matrices being defined as rows x columns, so my matrix items I read
# as matrix[row][column]
# Since this would mean our point matrix is an n by 4... | [
"azilby@gmail.com"
] | azilby@gmail.com |
8741b9aed2a4193f98da42908af3309846ac847d | 23805cffc86ac4dfb5bcce672b8c7070b4616e41 | /Apprendre-Python/is-prime/scripts/generate.py | 6c3f901f4ee05d4b2bf8c0c39ea1473a1f97b3d0 | [] | no_license | ukonline/pythia-tasks | f90ff90299fe0eedd0e2787bcf666df07c709a00 | 81a3731eb0cdfe16b26a4e75a165a5071fb48ff5 | refs/heads/master | 2021-01-25T03:26:33.915795 | 2016-01-04T20:03:24 | 2016-01-04T20:03:24 | 40,974,655 | 0 | 2 | null | 2016-12-21T13:12:14 | 2015-08-18T13:49:39 | Python | UTF-8 | Python | false | false | 467 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Course: Apprendre Python
# Problem: Es-tu premier ?
# Test generation script
import csv
import json
import os
import sys
sys.path.append('/task/static')
from lib import pythia
# Read test configuration and generate test data
with open('/task/config/test.json', 'r', encodi... | [
"seb478@gmail.com"
] | seb478@gmail.com |
c3ad0423c6d8b271ee252911c594199f7ab74981 | 98a9e00e0e3148e296cecf8bb5e5493d5e7c9cda | /pavement.py | d2b4556aeac8553cddab8d302a000b78bed97169 | [] | no_license | cfobel/barcode-scanner | 62b81f4d1bd36a61fea369703f9dee833916a982 | a59acd8fef93769992b3d7a50365fbbef2d475e6 | refs/heads/master | 2016-09-14T01:42:03.545862 | 2016-04-20T18:46:02 | 2016-04-20T18:46:02 | 56,710,781 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | import platform
import sys
from paver.easy import task, needs, path, sh, cmdopts, options
from paver.setuputils import setup, install_distutils_tasks
from distutils.extension import Extension
from distutils.dep_util import newer
sys.path.insert(0, path('.').abspath())
import version
install_requires = ['matplotlib>=... | [
"christian@fobel.net"
] | christian@fobel.net |
9fab66e95f7f0019a0d653ed7dd76704f7ec115a | 3473c619629ed2b6c69c9d89bc0b3229b6930137 | /Day 06 - Functions and Modules/Prime.py | 3577b2eec902655e2f93a4d6832b4d5b1d1c9034 | [] | no_license | Bobby981229/Python-Learning | 621b185e212bf7102f75c9b8ff5992ceffa0c78b | e37c37fab504597ddca569213394cec4f88ad1f4 | refs/heads/master | 2022-10-14T07:56:59.117446 | 2020-06-09T13:42:12 | 2020-06-09T13:42:12 | 259,191,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
素数
"""
from math import sqrt # 开根号
def prime(num):
result = int(sqrt(num)) # 对输入的数字进行开根号计算
for x in range(2, result + 1):
if num % x == 0: # 判断数字的模
return False
return True if num != 1 else False
num = int(input('Please input a integer number: '))
# 0 is false, 1 is true
prin... | [
"729461836@qq.com"
] | 729461836@qq.com |
26cda9d143eff38c26755fdc0f64aac127dfe784 | cd0a284c47fb03121e05284b6d5f2940ea6457ba | /fb/misc/subset-backtracking.py | 5e9517de45750964ef37a1896e73ff591ccb175c | [] | no_license | franktank/py-practice | 5803933c07c07a06670f83b059806385d0d029fa | 1dec441f1975d402d093031569cfd301eb71d465 | refs/heads/master | 2021-03-22T04:33:20.818891 | 2017-11-14T03:40:54 | 2017-11-14T03:40:54 | 101,592,046 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
self.res = []
self.helper(nums, [], 0)
return self.res
def helper(self, nums, cur_set, start):
self.res.append(list(cur_set))
for i in r... | [
"fliangz96@gmail.com"
] | fliangz96@gmail.com |
bb6aea31ed8fa714e9f3e4f9efea69c2821b47ef | dfcb9827b966a5055a47e27b884eaacd88269eb1 | /ssseg/cfgs/ce2p/cfgs_atr_resnet101os8.py | 92f1a161fe76d80856d312d01c4f8809fa71a746 | [
"MIT"
] | permissive | RiDang/sssegmentation | cdff2be603fc709c1d03897383032e69f850f0cd | 2a79959a3d7dff346bab9d8e917889aa5621615a | refs/heads/main | 2023-02-05T12:52:35.391061 | 2020-12-27T05:59:58 | 2020-12-27T05:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | '''define the config file for atr and resnet101os8'''
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG['train'].update(
{
'type': 'atr',
'rootdir': 'data/ATR',
'aug_opts': [('Resize', {'output_size': (520, 520), 'keep_ratio': False, 'scale_range'... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
8d99a90f253646661425e340c0b8b5d9743a0554 | 8a3e59ac20b2667c7f43ab91a7fd09f5a52fec4e | /apps/crm/callcentre/migrations/0001_initial.py | 16d3a8789f6799bed13602c35d3f16407455ac78 | [] | no_license | suifengdou/tbd2 | b1ba8ed423ace8624366ddbdd788f0ab7025d062 | 39093cdd45bb652e9cdfa3dc31e07344cf6628a1 | refs/heads/master | 2021-06-22T20:19:15.743182 | 2021-01-08T03:59:47 | 2021-01-08T03:59:47 | 159,639,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-11-27 10:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OriCa... | [
"2689179206@qq.com"
] | 2689179206@qq.com |
a96d0e6cbfbb17f69233e6f6c4998a16fd37cf02 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/antipro/models/Acl.py | 7832071a16e817c78df10dbe5d03f5fb05ad3d38 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 2,979 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
cd6a20e990cb2dbee4a8386d99bf84e07bae879e | 98bd2625dbcc955deb007a07129cce8b9edb3c79 | /vcf2SelectHapStatsInput.py | cc27f18f4a524c23fd3541a1cbad9fa9ac27e99a | [] | no_license | melanieabrams/bremdata | 70d0a374ab5dff32f6d9bbe0a3959a617a90ffa8 | df7a12c72a29cca4760333445fafe55bb6e40247 | refs/heads/master | 2021-12-26T01:57:25.684288 | 2021-09-30T22:48:05 | 2021-09-30T22:48:05 | 166,273,567 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import os
import vcf
import sys
##USGAGE: python vcf2SelectHapStatsInput.py gvcf_filename
##NOTE: this script assumes gVCF formatting, as generated by GATK. It handles missing data as missing.
##PARAMETERS
samples_to_exclude=[] # for 1011 genomes (all pop)
heterozygous_present=True # True for 101... | [
"noreply@github.com"
] | melanieabrams.noreply@github.com |
ebec731334511b25ef15e389dd83a5ec4e2d6dea | 9998f1b6008b290ef1ef895bc0c4ca273dfbe1e0 | /leet code/002-Two Sum.py | 8be38348c0937606c72f279e23b69bb43af0b139 | [
"MIT"
] | permissive | boisde/Greed_Island | 51a997dc0e7890ea468c448bc1dda34e61a4aea8 | 9c4f0195fb7bfaeb6c29e8e9638c7b0ffd9ad90b | refs/heads/master | 2021-06-15T06:58:35.036706 | 2021-04-12T11:14:54 | 2021-04-12T11:14:54 | 20,638,183 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,983 | py | #coding=utf-8
"""
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target,
where index1 must be less than index2.
Please note that your returned answers (both index1 and index2) are... | [
"boisde1117@gmail.com"
] | boisde1117@gmail.com |
5f9e775a7ab8bd1de57638ea892c2b7c8c3e3e6a | c838b0eaf08c63284bd29442f8a0a297d1558fd5 | /lagom/policies/random_policy.py | e19f315de4d7b034ecb4e8bf785077ab607fc0a3 | [
"MIT"
] | permissive | vin136/lagom | ccd0f4a3e469c1ee8ef88b1f5248e712b51c5704 | 54e1890e6450f4b1bf499a838963c5d1a3b2da6a | refs/heads/master | 2020-04-22T21:45:51.488458 | 2019-02-13T16:41:32 | 2019-02-13T16:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from .base_policy import BasePolicy
class RandomPolicy(BasePolicy):
r"""Random policy.
The action is uniformly sampled from action space.
Example::
policy = RandomPolicy(config=None, env_spec=env_spec, device=None)
policy(observation)
"""
def __init__(self,... | [
"zuoxingdong@hotmail.com"
] | zuoxingdong@hotmail.com |
ba9ca47753df3cc1fa8c8a864a4387c6a3a2f322 | 9a26d98f6f531b222c332ab6367e9e18beb0633f | /008. Dynamic Programming [동적 프로그래밍]/venv/Scripts/easy_install-3.8-script.py | 31936c0e1b179dcf18187893df7efb9e2d4ed4f9 | [] | no_license | yoonicode/of-Algorithms | dffac0b422e51dcd7df1f60236675608af73f03d | bbf89df443a3561fbbe0d0f6dfebb97f3ed216aa | refs/heads/master | 2022-11-24T08:27:52.679469 | 2020-07-28T14:58:52 | 2020-07-28T14:58:52 | null | 0 | 0 | null | null | null | null | UHC | Python | false | false | 523 | py | #!"D:\Users\Yoonsung\Documents\GitHub\of-Algorithms\008. Dynamic Programming [동적 프로그래밍]\venv\Scripts\python.exe" -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '... | [
"yoonsungkr@kakao.com"
] | yoonsungkr@kakao.com |
5489c893e687e6aed670cc7fdcc9bf6a16248996 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_1/Python/StefanPochmann/A.py | 854b3312bd1dba6383f564157857729276cad94e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #f = open('A.in')
#def input():
# return next(f)
for x in range(1, int(input()) + 1):
R, C, W = map(int, input().split())
#print(R, C, W)
print('Case #%d:' % x, W + (C-1) // W + (R-1) * (C // W))
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
e3bf180b1c85b33e05c07e36ed9b8cbfe6534857 | 309d17b81cea038713ba67bee72a41d2df4d6869 | /Python/Python_basic/Python_OOP/OOP6_bmi.py | d2e2087aa8b93b01272764517ec6df4319cee4a3 | [] | no_license | Bongkot-Kladklaen/Programming_tutorial_code | ac07e39da2bce396e670611884436b360536cdc5 | cda7508c15c3e3d179c64b9aac163b6173ef3519 | refs/heads/master | 2023-06-20T13:14:17.077809 | 2021-07-18T04:41:04 | 2021-07-18T04:41:04 | 387,081,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | class Bmi:
def __init__(self,w_kg, h_cm):
self.w_kg = w_kg
self.h_cm = h_cm
def bmi(self):
return self.w_kg / (self.h_cm / 100) ** 2
def category(self):
diag = ""
if self.bmi() < 18.5:
diag = "ต่ำกว่าเกณฑ์"
elif 18.5 <= self.bmi() <= 25:
... | [
"bongkot.klad@gmail.com"
] | bongkot.klad@gmail.com |
291ec277badd9ec84ba46368670827ec4adfb1db | 4da55187c399730f13c5705686f4b9af5d957a3f | /resources/sumo_exporter/road.py | f3fe5331d6efe9f5434c28093515462058cc516f | [
"Apache-2.0"
] | permissive | Ewenwan/webots | 7111c5587100cf35a9993ab923b39b9e364e680a | 6b7b773d20359a4bcf29ad07384c5cf4698d86d3 | refs/heads/master | 2020-04-17T00:23:54.404153 | 2019-01-16T13:58:12 | 2019-01-16T13:58:12 | 166,048,591 | 2 | 0 | Apache-2.0 | 2019-01-16T13:53:50 | 2019-01-16T13:53:50 | null | UTF-8 | Python | false | false | 7,356 | py | """Road class container."""
import math
import re
from re_definitions import floatRE, intRE
from data_structures import grouper
from math_utils import apply_spline_subdivison_to_path
from shapely.geometry import LineString, MultiLineString
from lxml import etree as ET
class Road(object):
"""Class matching with ... | [
"David.Mansolino@cyberbotics.com"
] | David.Mansolino@cyberbotics.com |
d42fbc0d64ddce99c3a42871b69a726c42be38af | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /unittests/test_image.py | eb9bc49d20574689e5249f2e3d79f96497b3d369 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,280 | py | import imp_unittest, unittest
import wtc
import wx
import wx.lib.six as six
from wx.lib.six import BytesIO as FileLikeObject
import os
pngFile = os.path.join(os.path.dirname(__file__), 'toucan.png')
#---------------------------------------------------------------------------
def makeBuf(w, h, bpp=1, init=0):
"M... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
656dc7e15b78455cee914cb74a92048e94167263 | 9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9 | /microsoft_atp/komand_microsoft_atp/actions/get_machine_information/action.py | 1d683811c0eb693aaf72cbf02b4acadd6d9b841d | [
"MIT"
] | permissive | PhilippBehmer/insightconnect-plugins | 5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91 | 9195ddffc575bbca758180473d2eb392e7db517c | refs/heads/master | 2021-07-25T02:13:08.184301 | 2021-01-19T22:51:35 | 2021-01-19T22:51:35 | 239,746,770 | 0 | 0 | MIT | 2020-02-11T11:34:52 | 2020-02-11T11:34:51 | null | UTF-8 | Python | false | false | 955 | py | import insightconnect_plugin_runtime
from .schema import GetMachineInformationInput, GetMachineInformationOutput, Input, Output, Component
# Custom imports below
class GetMachineInformation(insightconnect_plugin_runtime.Action):
def __init__(self):
super(self.__class__, self).__init__(
na... | [
"noreply@github.com"
] | PhilippBehmer.noreply@github.com |
5cd8e84f11d2ea34f343ae402d5c0b33dcf7d2db | 958d87cc3b77bb3308d0aa04b92fdef5f97d63ae | /4.OOPS/InheritanceAndPolymorphism.py | 8056a618b0d68087183a3df5858998b9bc487e65 | [] | no_license | parihar08/PythonJosePortilla | 6dec83519af78451c46e323928aedf19dbd908f1 | 6f47291908ad05daf5a505ba0e13687c46651bc2 | refs/heads/master | 2022-12-19T07:30:39.603468 | 2020-09-19T14:56:36 | 2020-09-19T14:56:36 | 292,650,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | class Animal():
def __init__(self):
print('ANIMAL CREATED')
def who_am_i(self):
print("I am an animal")
def eat(self):
print("I am eating")
# myanimal = Animal()
# myanimal.who_am_i()
# myanimal.who_am_i()
class Dog(Animal):
def __init__(self):
Animal.__init__(self) ... | [
"sparihar08@yahoo.com"
] | sparihar08@yahoo.com |
f13ae364d5454fff0b466fd17c8c4e70af0a9e2e | e836275adf8adca9b77acdd3d25bac157592a995 | /examples/graphs_nodal.py | fa9e8e4ec004f0a57bfd774033e20c44044346d4 | [
"BSD-3-Clause"
] | permissive | makism/dyconnmap | 3de6f482d1370bf25ec3813ddf576b675ed99d9e | cbef247e635d55cb1489ba1e429d9d472b501b56 | refs/heads/master | 2023-08-03T19:30:40.779333 | 2022-03-14T18:24:16 | 2022-03-14T18:24:16 | 98,643,787 | 67 | 25 | BSD-3-Clause | 2023-07-24T04:49:03 | 2017-07-28T11:37:17 | Python | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
from dyconnmap.graphs import nodal_global_efficiency
import numpy as np
if __name__ == '__main__':
rng = np.random.RandomState(0)
mtx = rng.rand(64, 64)
mtx_symm = (mtx + mtx.T)/2
np.fill_diagonal(mtx_symm, 1.0)
inv_fcg = 1.0 / mtx_symm
nodal_ge = nodal_global_efficie... | [
"makhsm@gmail.com"
] | makhsm@gmail.com |
d7796aa004c50f361ca9e8a8a0b3f4ef051ceb67 | d9b672fd2096b9e91dda9c82a4ae47d628f023e4 | /settings.py | a0655b84c59756eff3b37f60615c035fa474b8bd | [
"Apache-2.0"
] | permissive | homepods/silver-payu | 3f314be0b1cd2409b80a79ad1519b0b881506d69 | 6d2ad761d5972f4b92928c12dde97959939d2786 | refs/heads/master | 2020-06-22T06:15:20.522288 | 2018-10-01T09:24:13 | 2018-10-01T09:24:13 | 197,654,966 | 1 | 0 | null | 2019-07-18T20:50:09 | 2019-07-18T20:50:09 | null | UTF-8 | Python | false | false | 3,602 | py | # Copyright (c) 2015 Presslabs SRL
#
# 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 writ... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
c74db58ad4e08ae2ba7fae4dcad8d34e14650f04 | f719dc32c437a15c0eb7a229adc2848e4646a172 | /billy/api/customer/forms.py | fd102c147046aae78bf8ff40db5b2ac935fa24db | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | grang5/billy | db3a88b650962f25b8bdea80a81c5efa5d80dec0 | a723c3aca18f817829ae088f469fabc5bea9d538 | refs/heads/master | 2021-04-18T19:36:05.586549 | 2014-06-16T21:47:37 | 2014-06-16T21:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from __future__ import unicode_literals
from wtforms import Form
from wtforms import TextField
from wtforms import validators
class CustomerCreateForm(Form):
processor_uri = TextField('URI of customer in processor', [
validators.Optional(),
])
| [
"bornstub@gmail.com"
] | bornstub@gmail.com |
b25403fc53f5f5969f36e94ee28d051866d5f2e6 | 5983ea8a59cd0b9763e0eb0dfc7f26dfd2ba5e60 | /2019102962刘铎/刘铎-2019102962/DQN-First/maze_env.py | 33157255db41910b66f0e97841906122112ce32f | [] | no_license | wanghan79/2020_Master_Python | 0d8bdcff719a4b3917caa76ae318e3f8134fa83a | b3f6f3825b66b93ec6c54ed6187f6c0edcad6010 | refs/heads/master | 2021-01-26T13:29:09.439023 | 2020-06-23T02:17:52 | 2020-06-23T02:17:52 | 243,442,589 | 11 | 6 | null | 2020-03-29T05:59:29 | 2020-02-27T05:55:52 | Python | UTF-8 | Python | false | false | 4,088 | py | """
Reinforcement learning maze example.
Red rectangle: explorer.
Black rectangles: hells [reward = -1].
Yellow bin circle: paradise [reward = +1].
All other states: ground [reward = 0].
This script is the environment part of this example.
The RL is in RL_brain.py.
"""
import num... | [
"noreply@github.com"
] | wanghan79.noreply@github.com |
cede0e482d3ea3a08d161be9ba8ae74f9c9f82fa | 7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81 | /trunk/pida/utils/pgd/debugsession.py | 6e0c5d6df92cc9f56a44188a64b2d6b59d10bc26 | [] | no_license | BackupTheBerlios/pida-svn | b68da6689fa482a42f5dee93e2bcffb167a83b83 | 739147ed21a23cab23c2bba98f1c54108f8c2516 | refs/heads/master | 2020-05-31T17:28:47.927074 | 2006-05-18T21:42:32 | 2006-05-18T21:42:32 | 40,817,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,589 | py | # -*- coding: utf-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
# Copyright (c) 2006 Ali Afshar
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including... | [
"aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7"
] | aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7 |
47abd26109c9522bd177dbbf0cd330a30d2b38c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03998/s861110715.py | 06ced3f35c4b4debbacf590c69b46eaf81a9942e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | A = list(input())
B = list(input())
C = list(input())
n = A[0]
del A[0]
while True:
if n == "a":
if A == []:
print("A")
break
n = A[0]
del A[0]
elif n == "b":
if B == []:
print("B")
break
n = B[0]
del B[0]
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c041ce36c31bab982df6a4db67cbb9e648902b4e | d88e4152c0540c4c3c0a93c997ed8666d6ede863 | /daeUSB.py | 299f7ae439ebaf4837641b8975188e5fef04d3c2 | [] | no_license | mahongquan/word_auto | 2ad36383a435a0b020c3939e1efafec13a64a59f | 552ecb5dc43fdd71785f6e188de7cd0df66345ac | refs/heads/master | 2020-03-21T17:28:03.633892 | 2018-07-22T02:38:31 | 2018-07-22T02:38:31 | 138,833,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | # -*- coding: utf-8 -*-
#安装USB2COM驱动
import pywinauto
import pywintypes
from pywinauto import findwindows,handleprops
import os
import _thread
import traceback
from threading import Thread,Event
import time
def runUSB():
#cmd=r"start c:\9111\PCIS-DASK\PCIS-DASK.exe"
cmd="start c:\\CS3000备份\\CDM21216_Setup.exe"
... | [
"mahongquan@sina.com"
] | mahongquan@sina.com |
132e5c34952c72f35e089c726777abaa59399bcd | daca4a0604a21e4dcdab501369704db24741938e | /webdriver/tests/sessions/new_session/invalid_capabilities.py | 8452bfb11e908be7a06fd65f6138f6f0c3958cd8 | [
"W3C",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause"
] | permissive | Spec-Ops/web-platform-tests | 4ac91a784d5d363d261bfe92e251e6efd74b6b01 | c07a244ceef0d0833f61f2efa227bc1c65371c9c | refs/heads/master | 2020-12-11T06:08:52.141843 | 2017-10-20T11:55:15 | 2017-10-20T12:56:55 | 54,023,228 | 3 | 4 | null | 2016-09-06T21:01:15 | 2016-03-16T10:39:23 | HTML | UTF-8 | Python | false | false | 3,428 | py | #META: timeout=long
import pytest
from webdriver import error
from conftest import product, flatten
@pytest.mark.parametrize("value", [None, 1, "{}", []])
def test_invalid_capabilites(new_session, value):
with pytest.raises(error.InvalidArgumentException):
new_session({"capabilities": value})
@pytest.... | [
"james@hoppipolla.co.uk"
] | james@hoppipolla.co.uk |
ecc937959d6a50bec48eee0e0c39cad9bc0593a0 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /2020_August_Leetcode_30_days_challenge/Week_2_Excel Sheet Column Number/by_recursion_and_base_conversion.py | 8614066d3ca3b81874534ab1c3be1896d784e563 | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | '''
Description:
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Input: "A"
Output: 1
Example 2:
Input: "AB"
Output: 28
Example 3:
Input: "ZY"
Output:... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
181242534741172deff30d1570b6c1e64b1d1641 | 6daaf3cecb19f95265188adc9afc97e640ede23c | /python_design/pythonprogram_design/Ch5/5-3-E60.py | cae23228ee53270139ad9d77e1371e78ac0da7f0 | [] | no_license | guoweifeng216/python | 723f1b29610d9f536a061243a64cf68e28a249be | 658de396ba13f80d7cb3ebd3785d32dabe4b611d | refs/heads/master | 2021-01-20T13:11:47.393514 | 2019-12-04T02:23:36 | 2019-12-04T02:23:36 | 90,457,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import pickle
def main():
## Display the large cities in a specified state.
largeCities = createDictionaryFromBinaryFile("LargeCitiesDict.dat")
state = input("Enter the name of a state: ")
getCities(state, largeCities)
def createDictionaryFromBinaryFile(fileName):
# Assume pickle module has been i... | [
"weifeng.guo@cnexlabs.com"
] | weifeng.guo@cnexlabs.com |
9f9de4a0ce359c148f01dc85de77fe73c15d295b | 06a38963f22f8a74cc129033f8f1cac7f114cf5d | /problem_set_1/.history/src/p03d_poisson_20210517220103.py | 6c67a7f7ecde98d6ae3463c6f27704f0d07843ae | [] | no_license | lulugai/CS229 | 47e59bcefe9dccbb83c6d903682eb6ddca3a24b5 | 4dd77b2895559689e875afe749360c3751a12cf1 | refs/heads/main | 2023-05-09T17:39:45.336695 | 2021-06-01T09:15:25 | 2021-06-01T09:15:25 | 372,768,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import numpy as np
import util
from linear_model import LinearModel
def main(lr, train_path, eval_path, pred_path):
"""Problem 3(d): Poisson regression with gradient ascent.
Args:
lr: Learning rate for gradient ascent.
train_path: Path to CSV file containing dataset for training.
eva... | [
"2927791087@qq.com"
] | 2927791087@qq.com |
acf5d4b77fd234775af80508e3a4688f0811f179 | 37e53bb1d47004e956119e7e7047b8194b3142f5 | /grok/recursion_ver_3.py | 1d12fa0694653459fa11a17525f97743ce815aa0 | [] | no_license | fortredux/py_miscellaneous | eea82f900434ef23d98769f9057c87c97b278e45 | 7aee7c8bc0ddda1e137e4cb7e88eed78dbdb98d8 | refs/heads/master | 2020-12-21T21:03:28.897746 | 2020-04-05T20:44:55 | 2020-04-05T20:44:55 | 236,560,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py |
def check(i):
i = int(i)
if i == 0:
print('0')
return False
else:
return True
def countdown(num):
x = check(num)
while x is True:
num = int(num)
print(num)
return countdown(num-1)
countdown('15')
| [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
9092164cade33e786253089e178044d0156653f7 | 71d4fafdf7261a7da96404f294feed13f6c771a0 | /mainwebsiteenv/lib/python2.7/site-packages/phonenumbers/shortdata/region_SK.py | fdc7ed9e7dd3d18546d0c1cdbe188f1eb3101d50 | [] | no_license | avravikiran/mainwebsite | 53f80108caf6fb536ba598967d417395aa2d9604 | 65bb5e85618aed89bfc1ee2719bd86d0ba0c8acd | refs/heads/master | 2021-09-17T02:26:09.689217 | 2018-06-26T16:09:57 | 2018-06-26T16:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """Auto-generated file, do not edit by hand. SK metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_SK = PhoneMetadata(id='SK', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_length=(3, 4, ... | [
"me15btech11039@iith.ac.in.com"
] | me15btech11039@iith.ac.in.com |
e3ccc17dad2cce4bc4775644166167b2526d35eb | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex044/exercicio044.py | 290134b8ab1da627fa43d612670b1700cc3f8065 | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # Elabore um programa que calcule o valor a ser pago por um produto
# considerando o preço normal e condição de pagamento
# a vista dinheiro 10% de desconto
# a vista cartao 5% de desconto
# 2x cartao preço normal
# 3x ou mais
compra = float(input("Informe o preço das compras"))
print("Escolha a forma de pagamento")
pr... | [
"54421573+ArthurAlesi@users.noreply.github.com"
] | 54421573+ArthurAlesi@users.noreply.github.com |
a2669f6f3cf2be4424ef7db7edfd60b48effbd05 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/logs/apis/TestMetricTaskRequest.py | 8e2bba6c9cb8119d77246c48816fc0632e6a8191 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 3,730 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
5aa6d0190c71dff4c9372596cae52cfd9393b80b | 08a93de4813e0efb5cf40ac490eb0502266ca8ba | /settings/urls.py | c64f4a4821b4b9656b8e0cfa43d8ede15897236c | [
"BSD-2-Clause"
] | permissive | hunglethanh9/modelchimp | eaf3a8c6c73a3ed4c942fa361d8b661bf5d92a87 | cdb8162cdb554aa5ef00999f390138bd8325f472 | refs/heads/master | 2020-06-06T00:09:33.447383 | 2019-06-18T13:02:03 | 2019-06-18T13:02:03 | 192,582,892 | 1 | 0 | null | 2019-06-18T17:14:47 | 2019-06-18T17:14:47 | null | UTF-8 | Python | false | false | 1,188 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth.views import (
PasswordResetView,
PasswordResetConfirmView,
PasswordResetDoneView,
PasswordResetCompleteView,
)
urlpatterns =... | [
"samir.madhavan@gmail.com"
] | samir.madhavan@gmail.com |
d7c759cbcfcbf99821bb0d3e66eb3e9796632e2b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hires.py | 55de384efb494e1deadbf5e334722a21e472f366 | [
"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 | 224 | py |
from xai.brain.wordbase.nouns._hire import _HIRE
#calss header
class _HIRES(_HIRE, ):
def __init__(self,):
_HIRE.__init__(self)
self.name = "HIRES"
self.specie = 'nouns'
self.basic = "hire"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e3609abff0757e33f926d3770d5d1e1febb9b6ab | b007d88e6726452ffa8fe80300614f311ae5b318 | /LeetCode/facebook/arrays_and_strings/merge_sorted_array.py | 3713e9ba76233fd84aca0a38b42724a3074bffa4 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | """
Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
The number of elements initialized in nums1 and nums2 are m and n respectively. You may assume that nums1 has a size equal to m + n such that it has enough space to hold additional elements from nums2.
... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
9b97c3e7ea9e41ffbc45b8c498367f691295fa0e | 58cd392c642ac9408349f03dc72927db6abcce55 | /team2/src/Without_Doubt_Project/venv/lib/python3.6/site-packages/earlgrey/patterns/rpc/client_async.py | a94df1e4d861d470e4928d8f5d3ed96175e519b9 | [] | no_license | icon-hackathons/201902-dapp-competition-bu | 161226eb792425078351c790b8795a0fe5550735 | f3898d31a20f0a85637f150d6187285514528d53 | refs/heads/master | 2020-04-24T07:48:18.891646 | 2019-04-18T01:47:21 | 2019-04-18T01:47:21 | 171,809,810 | 3 | 11 | null | 2019-04-18T01:47:23 | 2019-02-21T06:01:04 | Python | UTF-8 | Python | false | false | 4,824 | py | # Copyright 2017 theloop 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"41354736+sojinkim-icon@users.noreply.github.com"
] | 41354736+sojinkim-icon@users.noreply.github.com |
62cbc2bc1f0553ebc160c9187f62311a93b9fbf8 | 11ddf56093b5a821a080249f6fc2e50e34f8970d | /opennsa/backends/dud.py | ad776c4f171d702c54f71fa839ea79587c1479fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igable/opennsa | 067d0043d324e32cebb6967023fbcc0df9ec836c | 5db943d50310345d18113dbfbe2251bb2a1a63f0 | refs/heads/master | 2021-01-15T08:36:33.998695 | 2014-02-11T11:49:53 | 2014-02-13T13:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | """
NRM backends which just logs actions performed.
Author: Henrik Thostrup Jensen <htj@nordu.net>
Copyright: NORDUnet (2011)
"""
import string
import random
from twisted.python import log
from twisted.internet import defer
from opennsa.backends.common import genericbackend
def DUDNSIBackend(network_name, networ... | [
"htj@nordu.net"
] | htj@nordu.net |
1f2eeaf30554fc2b63cc3c041524f636236bf967 | 2e927b6e4fbb4347f1753f80e9d43c7d01b9cba5 | /Section 20 - Lamba Functions/lambdas.py | 2d5e9687c5496af858166dab6f7b8ab7af2a3de4 | [] | no_license | tielushko/The-Modern-Python-3-Bootcamp | ec3d60d1f2e887d693efec1385a6dbcec4aa8b9a | 17b3156f256275fdba204d514d914731f7038ea5 | refs/heads/master | 2023-01-22T01:04:31.918693 | 2020-12-04T02:41:29 | 2020-12-04T02:41:29 | 262,424,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | def square(num): return num*num
#syntax - lambda parameter: code in one line without return - you usually don't store that in variable
square2 = lambda num: num * num
add = lambda num: num + num
print(square2(3))
print(square2.__name__)
#use case - passing in a function as a parameter into another function. short ... | [
"tielushko@mail.usf.edu"
] | tielushko@mail.usf.edu |
575abf06c7f23652b3a2ac3b595778e90ab5e287 | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/functions/38GlobalKeywordDeclareAssignError.py | 1dd186e5658999379d9e336cc39512ba1c6f8a73 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def f01():
global a = 10
print(a)
def f02():
print(a)
f01()
f02()
# File "/Code/venv/functions/38GlobalKeywordDeclareAssignError", line <>
# global a = 10
# ^
# SyntaxError: invalid syntax
| [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
6a89e67c4330943ffd882ccd41577f252a47d876 | d4abaedd47e5a3ce3e8aa7893cb63faaa4064551 | /spoj/bearseg.py | 0e1ced7689b4dc52b995ffd978e630c5f46fadb7 | [] | no_license | shiv125/Competetive_Programming | fc1a39be10c0588e0222efab8809b966430fe20f | 9c949c6d6b5f83a35d6f5f6a169c493f677f4003 | refs/heads/master | 2020-03-15T19:47:12.944241 | 2018-05-06T08:18:11 | 2018-05-06T08:18:11 | 132,317,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | t=input()
MAX=10**5+1
lookup=[0]*MAX
while t>0:
t-=1
n,p=map(int,raw_input().split())
arr=map(int,raw_input().split())
lookup[0]=arr[0]
for i in range(1,n):
lookup[i]=lookup[i-1]+arr[i]
count={}
ma=-1
for i in range(n):
for j in range(i,n):
if i!=0:
z=(lookup[j]-lookup[i-1]+p)%p
else:
z=lookup... | [
"shivdutt@shivdutt-Lenovo-G50-80"
] | shivdutt@shivdutt-Lenovo-G50-80 |
e57399c656326fe5aad20cd04948bccb429a51df | 274eb3a3c4202c86a40e13d2de7c2d6f2a982fcb | /tests/unit/altimeter/aws/resource/ec2/test_vpc_endpoint_service.py | 6823edb92f519c7b51b496fae25c2ff3d1253997 | [
"MIT",
"Python-2.0"
] | permissive | tableau/altimeter | 6199b8827d193946bb0d0d1e29e462fc8749d3e4 | eb7d5d18f3d177973c4105c21be9d251250ca8d6 | refs/heads/master | 2023-08-15T16:21:31.265590 | 2023-07-04T13:13:32 | 2023-07-04T13:13:32 | 212,153,766 | 75 | 25 | MIT | 2023-08-02T02:05:22 | 2019-10-01T17:10:16 | Python | UTF-8 | Python | false | false | 2,670 | py | import unittest
from altimeter.aws.resource.ec2.vpc_endpoint_service import VpcEndpointServiceResourceSpec
from altimeter.core.resource.resource import Resource
from altimeter.core.graph.links import LinkCollection, SimpleLink, TagLink
class TestVpcEndpointServiceResourceSpec(unittest.TestCase):
maxDiff = None
... | [
"noreply@github.com"
] | tableau.noreply@github.com |
9e73235485cb9b7abfd44cdb5134347f883ec5e0 | c31d185fb65da94dc15e16869ef1fbaf0dabc736 | /base/views.py | 0ec041e02c0386a93c8196390322f023f393e73e | [] | no_license | Joacoco/nosotrosusamos | 2777907b3df3b4022770f9ccef554d4c2b2c53c8 | 593d087c303f72136f6c425e908631357298c1eb | refs/heads/master | 2020-12-26T05:01:28.674841 | 2013-12-02T13:37:49 | 2013-12-02T13:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # -*- coding: utf-8 -*-
""" This file contains some generic purpouse views """
from django.shortcuts import render_to_response
from django.template import RequestContext
def index(request):
""" view that renders a default home"""
return render_to_response('index.jade',
context_i... | [
"ignacio.munizaga.t@gmail.com"
] | ignacio.munizaga.t@gmail.com |
a6084bfe94a88078593f1b6359db3a036eae22de | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/importer/tflite2/tflite_schema_head/PackOptions.py | 80d5354a3e6d6c474f93bce81eb2b362de5ab65e | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 2,002 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite_schema_head
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class PackOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
6b2a348908d35fad77fed82f1775983dd9ffd7cf | cc096d321ab5c6abf54fdcea67f10e77cd02dfde | /flex-backend/pypy/translator/jvm/methods.py | 582a5f04b0c2e370370a0d62c2866cc366e73d0a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | limweb/flex-pypy | 310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2 | 05aeeda183babdac80f9c10fca41e3fb1a272ccb | refs/heads/master | 2021-01-19T22:10:56.654997 | 2008-03-19T23:51:59 | 2008-03-19T23:51:59 | 32,463,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | """
Special methods which we hand-generate, such as toString(), equals(), and hash().
These are generally added to methods listing of node.Class, and the
only requirement is that they must have a render(self, gen) method.
"""
import pypy.translator.jvm.generator as jvmgen
import pypy.translator.jvm.typesystem as jv... | [
"lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d"
] | lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d |
72caef93226a4cb05201677c911b3789efdba9fd | d400c32010a414a2f536c5c0a3490c8b8e2e9d5a | /modules/m16e/ods_doc.py | 75ba3b1fea0134d2c04d2e55576de59bd5e2f548 | [
"LicenseRef-scancode-public-domain"
] | permissive | CarlosCorreiaM16e/chirico_cms | 3e521eae8f38b732497a2b808950c6a534e69d4f | 73897cbddb230630e13f22333b9094d0a047acb3 | refs/heads/master | 2020-12-30T07:59:04.100330 | 2020-05-02T12:26:58 | 2020-05-02T12:26:58 | 238,917,321 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | # -*- coding: utf-8 -*-
import sys
import traceback
from m16e.kommon import KDT_CHAR, KDT_INT, KDT_DEC, KDT_PERCENT
from m16e.odslib import odslib
#----------------------------------------------------------------------
class OdsDoc( object ):
#-------------------------------------------------------------------... | [
"carlos@memoriapersistente.pt"
] | carlos@memoriapersistente.pt |
e703967804eb0f8cb2843481d277c85bc8c71b2e | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/field/cygnus_Summon.py | 3881deea825b33318e178ca09b9972f8f7486987 | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 153 | py | if sm.getFieldID() == 271040100:
sm.spawnMob(8850111, -147, 115, False)
elif sm.getFieldID() == 211070102:
sm.spawnMob(8850111, -147, 115, False) | [
"thijsenellen@outlook.com"
] | thijsenellen@outlook.com |
6e7da8d8db94998e492bafe969437e9b40e5a8f4 | 4d0f3e2d7455f80caea978e4e70621d50c6c7561 | /MongoDB/CRUD/QueryingByObjectId.py | efc3f90c9e14317b40ca16aed85eda0d2c3df484 | [] | no_license | mhdr/PythonSamples | 66940ee2353872d2947c459e3865be42140329c6 | 1a9dccc05962033ea02b081a39cd67c1e7b29d0c | refs/heads/master | 2020-04-14T01:10:13.033940 | 2016-05-28T15:33:52 | 2016-05-28T15:33:52 | 30,691,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | __author__ = 'mahmood'
from pymongo import MongoClient
client=MongoClient()
# drop last db
client.drop_database("test-db")
# database
db=client["test-db"]
# table
people=db["People"]
new_person1={"FirstName" : "Mahmood",
"LastName" : "Ramzani",
"Gender": "Male",
"BirthDate" : {... | [
"ramzani.mahmood@gmail.com"
] | ramzani.mahmood@gmail.com |
dbf7640a313af2358461941e02b18b6d1e7c1709 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /time/high_work_and_long_life/group/case/good_child_and_case.py | fdb05e9779fa6e59a4688c46e5b2f2dee289fb94 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
#! /usr/bin/env python
def long_world(str_arg):
group(str_arg)
print('little_hand_and_week')
def group(str_arg):
print(str_arg)
if __name__ == '__main__':
long_world('high_person_and_big_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e5fc5b2e2f076a3deb4a132618a1ce25e94c26cc | e204cdd8a38a247aeac3d07f6cce6822472bdcc5 | /.history/app_test_django/views_20201116131730.py | f28ad5d7088723c0254f3cead00c09213ae31ad9 | [] | no_license | steven-halla/python-test | 388ad8386662ad5ce5c1a0976d9f054499dc741b | 0b760a47d154078002c0272ed1204a94721c802a | refs/heads/master | 2023-04-08T03:40:00.453977 | 2021-04-09T19:12:29 | 2021-04-09T19:12:29 | 354,122,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_new_user(request):
errors = User.objects.user_registration_validator(request.POST)
if len(errors) > 0:
for key, val... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
b2087e7207c8d5906a761f9b5d0333fdf5fa7128 | 20f89f49400feb9d2885dc2daf3ea3ca189556e7 | /day09/proctice/05 粘包问题解决/mod_struct.py | 08c0855ed616bb6cfc08acaaf5767a5483a48750 | [] | no_license | xiaobaiskill/python | 201511b1b1bddec8c33c4efa7ca2cc4afed24a89 | 540693baad757369ff811fb622a949c99fb6b4ba | refs/heads/master | 2021-04-12T03:43:30.308110 | 2018-07-13T01:41:19 | 2018-07-13T01:41:19 | 125,884,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author Jmz
import struct
total = 16374
res = struct.pack('i',total)
print(len(res))
| [
"1125378902@qq.com"
] | 1125378902@qq.com |
f16a18a60451d63b0c3e3ea9dfd47962690ed967 | eb19175c18053e5d414b4f6442bdfd0f9f97e24d | /tests/starwars_django/test_connections.py | 9992f0f3809a991f64dc9a760a689072066a1616 | [
"MIT"
] | permissive | jhgg/graphene | 6c4c5a64b7b0f39c8f6b32d17f62e1c31ca03825 | 67904e8329de3d69fec8c82ba8c3b4fe598afa8e | refs/heads/master | 2020-12-25T21:23:22.556227 | 2015-10-15T19:56:40 | 2015-10-15T19:56:40 | 43,073,008 | 1 | 0 | null | 2015-09-24T14:47:19 | 2015-09-24T14:47:19 | null | UTF-8 | Python | false | false | 987 | py | import pytest
from graphql.core import graphql
from .models import *
from .schema import schema
from .data import initialize
pytestmark = pytest.mark.django_db
def test_correct_fetch_first_ship_rebels():
initialize()
query = '''
query RebelsShipsQuery {
rebels {
name,
hero {
... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
a5cfd192a6bdd36268a411986e5257ad3f206711 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/HP_2021_01_04_XTP_Trades.py | 4313930c4f2639f99725c878fd6a2d0aae8b3bfc | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | import acm
import csv
with open( 'C:\\Temp\\1\\CA_Stock Input.csv', mode='r') as csv_file:
readCSV = csv.DictReader(csv_file)
print 'trade number', "|", 'instrument', "|", 'trade price', "|", 'Portfolio'
for row in readCSV:
trade=acm.FTrade()
trade.Instrument(row['Instrument'])
trade.Quantity(row... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
5a8b2cdde3908ffa52271f85cdfd0d8883b5c8db | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /young_government/want_thing.py | fe79d6bc7b16f04663bb72a76609bd5cc5bbb80f | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py |
#! /usr/bin/env python
def group(str_arg):
small_work(str_arg)
print('old_work_and_young_company')
def small_work(str_arg):
print(str_arg)
if __name__ == '__main__':
group('have_thing')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
956ef7f9bbda19c259de876c23f18bfa189bc407 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/large-scale-multiobj2/core-arch4-guard2-beta0-hebbe/pareto0.py | 0000998404917886a9c21b69d9c51c32cf41c0cc | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition_new import Arch4_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
d29f5685c461da483a731f28490384ef6e074cab | a0cf59e79154d6062c2dccfb2ff8b61aa9681486 | /10.py | 9f90c64b92e30c225325d27221e01584d6676600 | [] | no_license | PetraVidnerova/AdventOfCode | a211d77210ac1c43a9b2c0f546250f6d7c1d183c | 5b0e8017fcd8f71576a312b6c7b5bd3602be6e89 | refs/heads/master | 2021-01-10T16:07:03.336632 | 2016-02-28T14:02:54 | 2016-02-28T14:02:54 | 52,216,197 | 0 | 0 | null | 2016-02-21T17:17:37 | 2016-02-21T16:39:51 | null | UTF-8 | Python | false | false | 471 | py |
def read(input):
# one iteration of read
input = input + "x" # last char is ignored
result = ""
lastchar = None
count = 0
for ch in input:
if ch == lastchar:
count += 1
continue
if lastchar:
result = result + str(count) + str(lastchar)
... | [
"petra.vidnerova@gmail.com"
] | petra.vidnerova@gmail.com |
ce468ff5a9ed3402454e645b2be13c4a473020ea | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /gaternet/main.py | c4692b2cd0fdba89e13d15c53467b6b2f916be48 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 5,362 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d3e688e2e0724426f98735db7408e549f3245eda | 717f7d68e5f36c1d30d223cb201407b0f9c11f9c | /statistical data analysis/02_variance_measure.py | dc22125bd55674bad964315424d4951b43a8ed47 | [] | no_license | raunakshakya/PythonPractice | 7f54508f9adb8541a9cedc7a58e3629bcfb9b6f5 | 3643e9f526401d31ca706f036af0cdae3da04984 | refs/heads/master | 2020-03-22T18:01:54.357735 | 2019-06-05T03:32:07 | 2019-06-05T03:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # https://www.tutorialspoint.com/python/python_measuring_variance.htm
"""
Variance is a measure of how far a value in a data set lies from the mean value.
In other words, it indicates how dispersed the values are. It is measured by using standard deviation.
The other method commonly used is skewness.
"""
import panda... | [
"rkshakya99@gmail.com"
] | rkshakya99@gmail.com |
d6271117a9193e0facb6f43251e36bccbc847ba1 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /tests/cysparse_/sparse/common_attributes/test_common_attributes_matrices_likes_ConjugatedSparseMatrix_INT32_t_FLOAT32_t.py | 17904df851dbc456f945b9e24ed309bc76956c00 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 7,395 | py | #!/usr/bin/env python
"""
This file tests basic common attributes for **all** matrix like objects.
Proxies are only tested for a :class:`LLSparseMatrix` object.
See file ``sparse_matrix_coherence_test_functions``.
"""
from sparse_matrix_like_common_attributes import common_matrix_like_attributes
import unittest
fro... | [
"sylvain.arreckx@gmail.com"
] | sylvain.arreckx@gmail.com |
8e5530438c97d0e7a5e092c7bb90b4885627ccac | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Conv1DTranspose_7.py | 38603397c5765f6c7bc79e052c30df74cd538a9e | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 635 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
8761eaff518d705e57ceb09085af5d4088e080fb | 71047c4c45e97f474b45e0989202d8d88b0e4895 | /sparse_dot/sparse_dot.py | 3e82d3d8e3094bf5d04af57799a660e9c4e6e47a | [
"Apache-2.0"
] | permissive | pluralsight/sparse_dot | bd86e676e323ef84f51b2b5ae7b453ba7fa66916 | 271131a3a28f12d7dcca0fbeca8591e9d052c98a | refs/heads/master | 2023-04-01T06:03:51.845211 | 2016-12-13T19:33:30 | 2016-12-13T19:33:30 | 72,578,014 | 3 | 1 | Apache-2.0 | 2023-03-27T18:25:07 | 2016-11-01T21:24:52 | Python | UTF-8 | Python | false | false | 2,459 | py | '''The main script'''
# To update with any Cython changes, just run:
# python setup.py build_ext --inplace
import numpy as np
import cy_sparse_dot
def to_saf(arr1d):
arr1d = np.asanyarray(arr1d)
locs = np.nonzero(arr1d)
return {'locs': locs[0].astype(np.uint32),
'array': arr1d[locs].astype(np... | [
"david.n.mashburn@gmail.com"
] | david.n.mashburn@gmail.com |
9a8cac4b3e32f6a077d7eb78d0f5051c0512f4a2 | 936dc2666f27de7a7d1428c7ad2ded62a722b8fa | /src/aids/migrations/0176_alter_aid_subvention_comment.py | 9b1d57c10296955b4148ac4b92dc72f523a577cb | [
"ISC"
] | permissive | MTES-MCT/aides-territoires | 03451a32bdeaab3812b8593bfe3a27c1b1d9a182 | af9f6e6e8b1918363793fbf291f3518ef1454169 | refs/heads/master | 2023-09-04T22:15:17.819264 | 2023-08-25T13:19:17 | 2023-08-25T13:19:17 | 124,301,398 | 21 | 11 | NOASSERTION | 2023-09-12T13:46:49 | 2018-03-07T22:19:11 | Python | UTF-8 | Python | false | false | 553 | py | # Generated by Django 4.1.7 on 2023-04-25 12:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("aids", "0175_aid_ds_id_aid_ds_mapping_aid_ds_schema_exists"),
]
operations = [
migrations.AlterField(
model_name="aid",
... | [
"noreply@github.com"
] | MTES-MCT.noreply@github.com |
54ca12d67db93ad73a903f15cd006cccfdefb7b9 | 38b8bceafb4d80afc7c77196eb9ee99694191bcf | /scrapy/study/w3school/w3school/pipelines.py | f7b1b2c843306a1645d8a3cfe490cb83fe27c0f5 | [] | no_license | tangc1986/PythonStudy | f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff | 1ed1956758e971647426e7096ac2e8cbcca585b4 | refs/heads/master | 2021-01-23T20:39:23.930754 | 2017-10-08T07:40:32 | 2017-10-08T07:42:38 | 42,122,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
import codecs
class W3SchoolPipeline(object):
def __init__(self):
self.file = codecs.open('w3school_dat... | [
"tangc1986@gmail.com"
] | tangc1986@gmail.com |
bc84b1d032b1997b9821ff3ddf33c6d2c324154e | a6f9b3b1503fc08e7d77161bb2b5beac3b89480d | /app/main/views.py | d9d53ba612eb73e52f381e20e54f8542edc6833b | [] | no_license | AugustineOchieng/newsFeed | e779d7e4cf91c6769947cb5e140d417001ecf7c2 | b08720540c31453f895f395524177edb489add97 | refs/heads/master | 2020-05-09T14:53:23.346539 | 2019-04-16T10:04:09 | 2019-04-16T10:04:09 | 181,212,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | from flask import render_template,request,redirect,url_for
from . import main
from flask import render_template,request,redirect,url_for
from ..request import get_source,article_source,get_category,get_headlines
#our views
@main.route('/')
def index():
'''
Root function returning index/home page with data
... | [
"gusochieng@gmail.com"
] | gusochieng@gmail.com |
ec7f623c696363ec82e593a0d6aac0e53ec677b5 | 26d450ba94d06ce9ff2ced9e41c2daf6ea011118 | /demo/demo3.py | 49f164c4895737804908e1e03a4f0aff2eb7e256 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Correct-Syntax/ui-style-lang | d0a9ac478dc9c7572d0d663b48eea0c07dd48705 | 5c6dc9f1cd50de35c5745082dd02dc572f794ccc | refs/heads/master | 2023-04-28T20:01:03.866809 | 2021-05-14T14:38:49 | 2021-05-14T14:38:49 | 267,696,517 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | # Demo for UI Style Lang
# ======================
# This demo file (demo3.py) is MIT licensed - (C) 2020 Noah Rahm, Correct Syntax
# Usage:
# It's a custom button...click it!
# This demo is up-to-date
import wx
from uistylelang import UIStylePDC, UIStyleApp, UIStyleFrame
class MainApplication(UIStyleFrame):
... | [
"correctsyntax@yahoo.com"
] | correctsyntax@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.