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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28727ec723317e30d74083841007539fff22cef1 | e444f89f87b90f7946e3162e2c986c9d7f75b9b4 | /src/annotation_pipeline.py | 80122696be8453f60256d856e49281e846eaf4c6 | [] | no_license | yuzhenpeng/comparativeAnnotator | f2a7bb846f1427f09cfa6429207ec483f9ada072 | 9062c58bb7d625b2b50eb07b23b01af6bf73e5e3 | refs/heads/master | 2020-09-11T21:52:40.544833 | 2016-07-26T20:28:10 | 2016-07-26T20:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,895 | py | """
This is the main driver script for comparativeAnnotator in transMap mode.
"""
import argparse
import os
from jobTree.scriptTree.target import Target
from jobTree.scriptTree.stack import Stack
import lib.sql_lib as sql_lib
import lib.seq_lib as seq_lib
from lib.general_lib import classes_in_module, mkdir_p
impor... | [
"ian.t.fiddes@gmail.com"
] | ian.t.fiddes@gmail.com |
4dd1389420bf38c36d3b56adf825aec0a6fbab0c | 77a87e7b15d58b2d23bfdd9ed78b637bebfcc6eb | /.closet/jython.configurator.efr32.multiPhy/5.2.3.201904231805-1264/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg12xfull/revA0/AGC.py | bfe98660a031dcd7fce3e6a4596c69ffe731abd3 | [] | no_license | lenloe1/other-stuff | b06331a4f247f06066579472b296f1ae66f6bdaf | 897069e0464b19f81b14488d463710c81bb7fda4 | refs/heads/master | 2021-05-19T13:41:04.509601 | 2020-03-31T20:52:38 | 2020-03-31T20:52:38 | 251,728,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py |
# -*- coding: utf-8 -*-
__all__ = [ 'RM_Peripheral_AGC' ]
from .static import Base_RM_Peripheral
from .AGC_register import *
class RM_Peripheral_AGC(Base_RM_Peripheral):
def __init__(self, rmio, label):
self.__dict__['zz_frozen'] = False
super(RM_Peripheral_AGC, self).__init__(rmio, label,
... | [
"31710001+lenloe1@users.noreply.github.com"
] | 31710001+lenloe1@users.noreply.github.com |
ba1cfe34cdd0c72ad9925c1efba1ce9fe9481338 | 47434a10c598d2ea0e5faed4df29c755242c662e | /CodeForces/Team.py | 98ef4fa008166998218eff68a571fbbd8c8334b1 | [] | no_license | ShakilAhmmed/Problem_Solve | 566b5a5370723932a50cf34c97ac9f229df8b511 | 6864958ee892ba0aa90f6788fc7b7c16baf41716 | refs/heads/master | 2021-06-22T19:41:07.624863 | 2021-03-07T16:10:25 | 2021-03-07T16:10:25 | 200,253,202 | 2 | 0 | null | 2020-06-16T19:52:43 | 2019-08-02T14:56:30 | Python | UTF-8 | Python | false | false | 201 | py | n = int(input())
count = 0
for _ in range(n):
number = list(map(int, input().split()))
one_count = number.count(1)
zero_count = number.count(0)
if one_count > zero_count:
count += 1
print(count)
| [
"shakilfci461@gmail.com"
] | shakilfci461@gmail.com |
2b7199701eac80d3de6850b27032cfc6cc318aaa | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/billing/budgets/v1beta1/billing-budgets-v1beta1-py/setup.py | cc3c039320dec24a399055373fd5bdd28b80a43c | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
dddd3601a393ce447cf447e14d2ad14a17af28b2 | 45ba55b4fbdaf1657fde92beaeba4f173265afcd | /tests/schema/test_lazy/type_a.py | 65617b5f3b8844af612e367deb7490b69d790898 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | strawberry-graphql/strawberry | af96afd4edd1788c59e150597a12501fbc7bf444 | 6d86d1c08c1244e00535840d9d87925431bc6a1c | refs/heads/main | 2023-08-30T03:34:12.929874 | 2023-08-24T12:01:09 | 2023-08-24T12:01:09 | 162,690,887 | 3,408 | 529 | MIT | 2023-09-14T21:49:44 | 2018-12-21T08:56:55 | Python | UTF-8 | Python | false | false | 552 | py | from typing import TYPE_CHECKING, List, Optional
from typing_extensions import Annotated
import strawberry
if TYPE_CHECKING:
from .type_b import TypeB
TypeB_rel = TypeB
TypeB_abs = TypeB
else:
TypeB_rel = Annotated["TypeB", strawberry.lazy(".type_b")]
TypeB_abs = Annotated["TypeB", strawberry.laz... | [
"noreply@github.com"
] | strawberry-graphql.noreply@github.com |
bcfa114770664cf17a450ca28a1a571355fb71cb | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/table/mapper/AddressTableToAddressTableRowMapper.pyi | 26072a368ad95ac4a06849d98672f2b4d0917da2 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | pyi | import docking.widgets.table
import ghidra.app.plugin.core.disassembler
import ghidra.framework.plugintool
import ghidra.program.model.address
import ghidra.program.model.listing
import ghidra.util.table
import java.lang
class AddressTableToAddressTableRowMapper(ghidra.util.table.ProgramLocationTableRowMapper):
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
05f20377365afcf412ba6b25092ca5d4eeca0364 | 5ddacf6285da77e8b6bc53cde3379471c631e827 | /tests/databases/constructed_molecule/fixtures/constructed_molecule_mongo_db.py | c90e86673bda41cefd2525d316916ea0110c877d | [
"MIT"
] | permissive | sailfish009/stk | 19db3d50742cd822bf9c06711103bd7e1954a79f | ebf876d5207032b76b9b10f7ca62060cc12c61f0 | refs/heads/master | 2022-11-09T20:59:03.222560 | 2020-06-30T12:37:02 | 2020-06-30T12:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | import pytest
import stk
import rdkit.Chem.AllChem as rdkit
from ...utilities import MockMongoClient
from ..case_data import CaseData
@pytest.fixture(
params=(
CaseData(
database=stk.ConstructedMoleculeMongoDb(
mongo_client=MockMongoClient(),
lru_cache_size=0,
... | [
"noreply@github.com"
] | sailfish009.noreply@github.com |
fdcb707c05e376905be9ed93946a5d310d84baee | 72cdc45a345fe47c525468ff82ef8ce845d9f800 | /Python/django_ajax/django_ajax_demo/app/models.py | 43550226b816520409ecbb4bfcd875aa2a596345 | [] | no_license | bopopescu/Coding-Dojo-assignments | 474242e14371e729b5948602ffc0a9328f1e43cb | 0598d7162b37d9472c6f1b82acc51d625ac871ca | refs/heads/master | 2022-11-23T18:55:36.393073 | 2018-07-20T07:43:56 | 2018-07-20T07:43:56 | 281,670,452 | 0 | 0 | null | 2020-07-22T12:24:30 | 2020-07-22T12:24:30 | null | UTF-8 | Python | false | false | 623 | py | from django.db import models
# Create your models here.
class UserManger(models.Manager):
def create_user(self,post_data):
user = self.create(
first_name=post_data['first_name'],
last_name=post_data['last_name'],
email=post_data['email']
)
return user
... | [
"gringojaimes20@gmail.com"
] | gringojaimes20@gmail.com |
fc82b5c45efce7854e15cb4d046d461ecc5666cf | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/bootcamp/__init__.py | 38949d143389770292fb8708159801207ba40edc | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 129 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/bootcamp/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
a58c9664c1090042fa0befbe74e0e75dbfc6648b | 211196c7d7f649a5295cbbad97003422a7049fc2 | /iterateOverMessages.py | 57d3360be2df99aa52c28e161cd320a89e677cbb | [] | no_license | AzisK/Jinbe-Music | 38df261bfd334e1213dc6d96d393493a4da9517e | 44761ebb8fe196c37fa10e83e2e4c873e70a5def | refs/heads/master | 2021-01-20T07:05:29.061897 | 2017-10-05T06:11:47 | 2017-10-05T06:11:47 | 89,957,496 | 1 | 0 | null | 2017-10-05T06:11:48 | 2017-05-01T19:53:02 | Python | UTF-8 | Python | false | false | 129 | py | import mido
from mido import MidiFile
port = mido.open_output()
for msg in MidiFile('1.mid').play():
port.send(msg)
| [
"="
] | = |
e2cc4ee0baa6c4627c2423976a2c8e20afbbbdff | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/75/usersdata/161/36800/submittedfiles/maiormenor.py | f9360f4e08c5cf3b0813526c834f4c0b01124a8d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
import math
a = int(input('Digite o número 1: '))
b = int(input('Digite o número 2: '))
c = int(input('Digite o número 3: '))
d = int(input('Digite o número 4: '))
e = int(input('Digite o número 5: '))
i=0
maior=0
menor=0
for i in range(5):
if a>maior:
a=maior
elif b>maior:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
18bf7102fedf76648c340210ef8685e944c4585d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_305/ch81_2019_06_04_13_12_29_235102.py | b71526d31810aaf20ab6e06453268454b3963ec7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def interseccao_valores(dic1, dic2):
lista = []
for v in dic1.values():
v.append(lista)
for j in dic2.values():
j.append(lista)
return lista
| [
"you@example.com"
] | you@example.com |
73363dfdd60b34c13e77255bab8d474bf348fb2e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03387/s123688720.py | 032de65d86c10d90a82ee7446afbbcc91437a494 | [] | 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 | 432 | py | import sys
a=list(map(int,input().split()))
a.sort()
ans=0
while True:
if a[0]==a[1]==a[2]:
print(ans)
sys.exit()
if a[0]<a[1]:
a[0]+=2
ans+=1
a.sort()
if a[0]==a[1]==a[2]:
print(ans)
sys.exit()
if a[0]==a[1]:
a[0]+=1
a[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d166148963bb2dfef60da93fe81d806e80ba065 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /iot_write_f/audit-mitigation-actions-task_start.py | ccd58e9e6ce9fcde6370e203d0655d253cc36d40 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
1aeb26bdbe0be227bf7a86266767f07914dd78c8 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/d1186c9d2fdc62fe1491d0820af12106d16a1fb6-<customize>-fix.py | 4b77f7b3e1050c9ad0d1aaf9347f097791c87248 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py |
def customize(self, dist=None):
'Customize Fortran compiler.\n\n This method gets Fortran compiler specific information from\n (i) class definition, (ii) environment, (iii) distutils config\n files, and (iv) command line (later overrides earlier).\n\n This method should be always calle... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
549d47061f0ed2277297102fa4fd01ff4432bf94 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /07_Machine_Learning_Mastery_with_Python/07/pca.py | 2437e80daf68829e9200d38c5a0b646093a6a47b | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # Feature Extraction with PCA
from pandas import read_csv
from sklearn.decomposition import PCA
# load data
filename = 'pima-indians-diabetes.data.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']
dataframe = read_csv(filename, names=names)
array = dataframe.values
X = array[:, 0:8]... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
213431d95c159d4c1d5374f463d5a0b86a85ee8f | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_internal/sanity/yamllint.py | 85a576d02d248df24fa0e8e1fcba6176467cd312 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 3,780 | py | """Sanity test using yamllint."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import os
from .. import types as t
from ..import ansible_util
from ..sanity import (
SanitySingleVersion,
SanityMessage,
SanityFailure,
SanitySkipped,
SanitySucc... | [
"sifang@cisco.com"
] | sifang@cisco.com |
5166ace3467b2a5e6d75c7af8ef4b3a1febc640f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch31_2020_03_25_10_56_13_081031.py | a097597aaf1f8510a42ff7f07a2c25674a655745 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | y=3
def eh_primo (x):
if x%2==0:
return False
while y<x:
if x%y==0:
y=y+2
return False
else:
return True
| [
"you@example.com"
] | you@example.com |
de1db29362fe6f49c59b95f74cea99eb115bf71a | e37ee26bd37e86277aa98db7a9938e7d043c1146 | /setup.py | 386175f2b9107f26e003609e3390ad4e1d9fa916 | [
"BSD-2-Clause"
] | permissive | sjkingo/ticketus | f20e1e65a6e57706becb50371905c6d1f385bf71 | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | refs/heads/master | 2021-05-16T02:58:02.070421 | 2018-03-05T00:36:24 | 2018-03-05T00:36:24 | 28,283,750 | 3 | 3 | BSD-2-Clause | 2018-03-05T00:34:57 | 2014-12-21T00:38:26 | Python | UTF-8 | Python | false | false | 1,574 | py | from setuptools import find_packages, setup
from ticketus import __version__ as version
setup(
name='ticketus',
version=version,
license='BSD',
author='Sam Kingston',
author_email='sam@sjkwi.com.au',
description='Ticketus is a simple, no-frills ticketing system for helpdesks.',
url='https:... | [
"sam@sjkwi.com.au"
] | sam@sjkwi.com.au |
bff50f96ee9ee9794dd94abc1b4c5dfc27f57ea1 | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-master (5)/python-master/socket/udp/server.py | 7d67bbdee63a778498fcb2254818529dc569f7bc | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 351 | py | # encoding: utf-8
__author__ = 'zhanghe'
import socket
port = 8081
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# 从指定的端口,从任何发送者,接收UDP数据
s.bind(('', port))
print('正在等待接入...')
while True:
# 接收一个数据
data, address = s.recvfrom(1024)
print('Received:', data, 'from', address) | [
"369223985@qq.com"
] | 369223985@qq.com |
8f8eeb6fa9b019c75aec80c7fb15484d636c4535 | 179577ecdd7fda84ad970b3aad573a575fef56bc | /aulas/aula12.py | b78a3b884765a9cbb0cfe7ed5083bea5c718d61a | [] | no_license | Elvis-Lopes/Curso-em-video-Python | 6c12fa17a5c38c722a7c8e9677f6d9596bc5653c | 65f093975af9bd59c8aaa37606ba648b7ba1e1c4 | refs/heads/master | 2021-02-11T12:15:13.580496 | 2020-05-05T21:55:06 | 2020-05-05T21:55:06 | 244,490,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # exemplos de estrutura condicional aninhada
nome = str(input('Qual é o seu nome: ')).strip().title()
if nome == 'Elvis':
print('Que nome bonito!')
elif nome == 'Pedro' or nome == 'João' or nome =='Maria':
print('Seu nome é bem popular no Brasil')
else:
print('Seu nome é bem normal.')
print(f'Tenha um bom d... | [
"elvislopes1996@hotmail.com"
] | elvislopes1996@hotmail.com |
5bce78a403cb350f6070e28a089543acef7afb25 | e5b8a5d93989dd53933c5cd417afa8b2a39ad307 | /test/test_coupon_discount_items.py | 45325446f7a44b5aa07fade379304c1d7922820d | [
"Apache-2.0"
] | permissive | gstingy/uc_python_api | f3586bfce9c962af2e8c1bc266ff25e0f1971278 | 9a0bd3f6e63f616586681518e44fe37c6bae2bba | refs/heads/master | 2020-03-28T11:13:22.537641 | 2018-09-10T17:07:59 | 2018-09-10T17:07:59 | 148,190,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import ultracart
f... | [
"perry@ultracart.com"
] | perry@ultracart.com |
39edbec0f0e7116e1ede19dfa091fc16e782d559 | b3e9a8963b9aca334b93b95bc340c379544e1046 | /euler/14.py | 086c339acb194f1b66a930b0f64d444e2daadef9 | [] | no_license | protocol7/euler.py | 86ea512c2c216968e6c260b19469c0c8d038feb7 | e2a8e46a9b07e6d0b039a5496059f3bf73aa5441 | refs/heads/master | 2022-09-08T22:49:47.486631 | 2022-08-23T20:07:00 | 2022-08-23T20:07:00 | 169,478,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python3
def collatz(n):
c = 1
while n != 1:
if n % 2 == 0:
n //= 2
else:
n = 3 * n + 1
c += 1
return c
assert 10 == collatz(13)
assert 837799 == max([n for n in range(1, 1000000)], key=collatz)
| [
"niklas@protocol7.com"
] | niklas@protocol7.com |
139adedab62d240002e76a8278f5c9899697af38 | d32bc79eb8631d6bc4ab20498631ba516db4d5f7 | /152_maxProductArray.py | 38fc25720cfdfefd0d9b48f8df23ab13c1c386d1 | [] | no_license | Anirban2404/LeetCodePractice | 059f382d17f71726ad2d734b9579f5bab2bba93c | 786075e0f9f61cf062703bc0b41cc3191d77f033 | refs/heads/master | 2021-10-08T04:41:36.163328 | 2021-09-28T02:16:47 | 2021-09-28T02:16:47 | 164,513,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 7 22:41:52 2019
@author: anirban-mac
"""
"""
Given an integer array nums, find the contiguous subarray within an array
(containing at least one number) which has the largest product.
Example 1:
Input: [2,3,-2,4]
Output: 6
Explanation: [2,3] has... | [
"anirban-mac@Anirbans-MacBook-Pro.local"
] | anirban-mac@Anirbans-MacBook-Pro.local |
4e238c78b6a39de8f4b38c09be8989c9b69bfe93 | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/Launch_Control_XL/ButtonElement.py | fe0744f2950ba1281db7c0754c69506a53640e9b | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Launch_Control_XL/ButtonElement.py
from _Framework.ButtonElement import ON_VALUE, OFF_VALUE, ButtonElement as ButtonElementBase
class ButtonElement(ButtonElementBase):
_on_value = None
_off_value = None
d... | [
"admin@scoopler.com"
] | admin@scoopler.com |
625a6b86a578dfc51f571f9570a5a87a0b9066de | 3636c679001c9d9f75d54a0361052b243a97d2e4 | /build/fbcode_builder_config.py | d1183c045603b57d389956411bbd7a03ba3f54d3 | [
"MIT"
] | permissive | anvarov/mvfst | ebd8e259d5628ca9bc690bfea6f30b709b10e51d | b5713b9a2b4b98aa7fc0b0bcb110d70e2ea38254 | refs/heads/master | 2022-06-18T09:32:25.817789 | 2020-05-13T11:46:23 | 2020-05-13T11:46:23 | 263,613,627 | 1 | 0 | MIT | 2020-05-13T11:45:22 | 2020-05-13T11:45:21 | null | UTF-8 | Python | false | false | 1,331 | py | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __fut... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a0b669ed46c14af32a2247e902baa46765a173b6 | c47b68a858e01d5fe51661a8ded5138652d3082e | /src/exploration/businees_cases/prdicting_hiring.py | 7df6f68f3af533048d5e6e5dc147841479515439 | [] | no_license | RitGlv/Practice_Makes_perfect | d2d50efbf810b41d0648f27d02b5710c14c3fcae | 3dcb7ff876e58ade64faed0fa5523cba7461cf8d | refs/heads/master | 2021-03-13T03:51:43.142777 | 2017-06-05T07:32:47 | 2017-06-05T07:32:47 | 91,500,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import pandas as pd
from sklearn.linear_model import LogisticRegression
import sys
sys.path.insert(0, '../../')
import featurize
| [
"johndoe@example.com"
] | johndoe@example.com |
37fa900821ba826c4e1fdb9d424671d44d8c8280 | 46fe894c4a8e14727bd085c5834a2acfbe5cd41f | /blogproject/urls.py | a3fd92bc1bfdbc87607115ccf80d146a61b27b18 | [] | no_license | PriyaRamya11/React-Django-Blog-Backend | 6970ac443d0f44d5d16ea0738f16546eb50879a9 | 491629fac3cf5d6fae0a3f59b7a47e353ed9407c | refs/heads/master | 2023-04-27T20:26:13.818306 | 2021-05-05T11:27:13 | 2021-05-05T11:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | from django.shortcuts import render
from django.contrib import admin
from django.urls import path
from django.urls.conf import include
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.conf.urls.static import static
from django.conf import settings
# url patterns... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
8061be7dbac8f6e43df70f6a483d6d89690445f2 | 52a3beeb07ad326115084a47a9e698efbaec054b | /manila/api/contrib/services.py | 607903fef8b780fbb6222f72ce62af1c9d0d53a4 | [] | no_license | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 3,444 | py | # Copyright 2012 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com |
8463c8c53648a7ad7c984f04467593a429195089 | 43459d0a1b5c8d1b631ef3edb91b6a7bb1b26078 | /venv/Lib/site-packages/npx/_isin.py | 0e1d06123de282476de66018f3bbaa87bfe74931 | [] | no_license | titusowuor30/dj_rest_jwt_auth_api | 2ee5046b043d34d88c0fad344d9bb6525513ee90 | ee33e33ed2f5852d5882cbc7b694e7ca9be7e7da | refs/heads/master | 2023-07-16T21:42:08.820624 | 2021-08-28T07:50:47 | 2021-08-28T07:50:47 | 400,724,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import numpy as np
import numpy.typing as npt
def isin_rows(a: npt.ArrayLike, b: npt.ArrayLike):
a = np.asarray(a)
b = np.asarray(b)
if not np.issubdtype(a.dtype, np.integer):
raise ValueError(f"Input array must be integer type, got {a.dtype}.")
if not np.issubdtype(b.dtype, np.integer):
... | [
"titusowuor30@gmail.com"
] | titusowuor30@gmail.com |
f10d82d87ec02eb5ee78e0ebf6c735f5ed119466 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/optimization/test_linear_cg.py | e82e497ee222a16178c381ee0164f0fb565e9b2a | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import theano
from theano import tensor, config
import numpy
import linear_cg
import warnings
from pylearn2.testing.skip import skip_if_no_scipy
try:
import scipy.linalg
except ImportError:
warnings.warn("Could not import scipy.linalg")
import time
def test_linear_cg():
rng = numpy.random.RandomState([1,2,... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
4af9aaf42d7bc296c64d1dd79d632048cc5126bf | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_destiny_destiny_item_type.py | 371104552534d46e48c0251fd4f89eb10524e339 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
ee940c77343f60e39daed05d2f53ca1ce16cc5ba | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_1/Python/Alen/caseA.py | 3f71933f6070b75b35a50b9393416fc77c08e182 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | #!/usr/bin/env python
# encoding: utf-8
def way1(samples):
if len(samples) < 2:
return 0
min_pieces = 0
last_pieces = samples[0]
for s in samples[1:]:
if s < last_pieces:
min_pieces += last_pieces - s
last_pieces = s
return min_pieces
def way2(samples):
i... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
78da60a4d142b5f6f724959fb430c94449b06674 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/310/107206/submittedfiles/jogoDaVelha.py | 78481b58610ef63879d65bf7ebf7d7ab7d63160b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
jgnov = 'S'
while jgnov == 'S' or jgnov == 's' or jgnov == 'SIM' or jgnov == 'sim':
print('Bem vindo ao JogoDaVelha do grupo D [Anderson Bezerra, Caio César, Laura, Juan]')
nome = input('\nQual o seu nome (ou apelido)?... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b6cffd9814a17ffbaf39dbadfae773d76b70a95c | 4a74ec1b7e299540b924bce4928537a51fc00ff5 | /day24_day30/day24/순열(재귀).py | 3c9c552c654e3a3b99bbd69727a4723460368c48 | [] | no_license | yeonlang/algorithm | ef74b2592818495f29f6de5f44f81ccf307efa59 | ab788658bb781773c489cac8c6e8d2bea48fda07 | refs/heads/master | 2020-04-22T20:25:46.243355 | 2019-05-08T15:17:45 | 2019-05-08T15:17:45 | 170,641,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def BTK(choice):
global result
if choice==len(data):
print(result)
return
for i in range(len(data)):
if not visited[i]:
visited[i]=1
result[choice]=data[i]
BTK(choice+1)
result[choice]=0
visited[i]=0
data=[1,2,3,4,5]
visit... | [
"naspy001@gmail.com"
] | naspy001@gmail.com |
aa9a09bc595ade1419abb2183ac8589ae774764a | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc900.py | 8e3d98a41900bffeb2f868bebe4485df35b009d6 | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | class RLEIterator(object):
def __init__(self, A):
"""
:type A: List[int]
"""
self.seq = []
for i in range(0, len(A), 2):
if A[i] == 0:
continue
self.seq.append([A[i], A[i+1]])
self.seq.reverse()
def next(self, n):
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
64288c71f6d3d6f5bf17652ffa72615f6ef91492 | 6b95f96e00e77f78f0919c10b2c90f116c0b295d | /TelstraTPN/models/inline_response20018.py | f94f3428cc14125628e5e80c0129635b20cc6fa9 | [] | no_license | telstra/Programmable-Network-SDK-python | 0522b54dcba48e16837c6c58b16dabde83b477d5 | d1c19c0383af53a5f09a6f5046da466ae6e1d97a | refs/heads/master | 2021-09-19T17:09:06.831233 | 2018-07-30T03:22:26 | 2018-07-30T03:22:26 | 113,531,312 | 3 | 1 | null | 2018-07-30T03:22:27 | 2017-12-08T04:23:15 | Python | UTF-8 | Python | false | false | 4,253 | py | # coding: utf-8
"""
Telstra Programmable Network API
Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a g... | [
"steven@developersteve.com"
] | steven@developersteve.com |
d7bcf7c5dacf1719df9427cbec737517decf12bd | 6de4c9c36ab2ecdb099aef0050f1afdd30fe2b3f | /app/email.py | fec1d7e3314c60e8e5981438e1d0a1c34fbf167b | [] | no_license | wadi-1000/Pitches | b4f2ba8db2d6e18c75f3dbcf4475155abdaf30df | 6aff3af294b38674fbd45fffdb07cf32b67ccb6e | refs/heads/master | 2023-07-14T23:25:22.812954 | 2021-08-25T09:23:21 | 2021-08-25T09:23:21 | 395,655,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from flask_mail import Message
from flask import render_template
from . import mail
def mail_message(subject,template,to,**kwargs):
sender_email = 'joykiranga@gamil.com'
email = Message(subject, sender=sender_email, recipients=[to])
email.body= render_template(template + ".txt",**kwargs)
email.html = ... | [
"joy.kiranga@student.moringaschool@gmail.com"
] | joy.kiranga@student.moringaschool@gmail.com |
6b5c8a12d04375293740f160e7cff38d6c442850 | b2135e3fc77666f043f0fbafd0d88ed9865d5b4f | /7183 Python Basics/13 Chapter 2.5 - About loop conditions/01 Consuming lists/87646_07_code.py | ed93d186b4adf84e544c07eb5ee57d309cad638f | [] | no_license | Felienne/spea | 164d05e9fbba82c7b7df8d00295f7157054f9248 | ecb06c66aaf6a2dced3f141ca415be9efb7dbff5 | refs/heads/master | 2020-03-17T17:35:27.302219 | 2018-05-17T10:14:49 | 2018-05-17T10:14:49 | 133,794,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #
Finish the loop so all elements are printed.
Note: there are different ways of doing this! In the nest step you can try multiple ways.
list = [2, 6, 8, 12, 19, 5]
while ___:
item = list.pop()
print(item) | [
"felienne@gmail.com"
] | felienne@gmail.com |
79bbf1803c6fdec266bdee054b03ed8a0b300bba | 056b57a594289cab88b73889c55059376dab5655 | /filter_app/migrations/0006_auto_20151215_0614.py | 020b19cb8103a59a136d3f4d06d1eaa23b284baf | [] | no_license | dentemm/filter_project | 05b9c19975c1d50bacc78bbcc3c9ef8b95f61f65 | ac0a7ce1254f17db16f12ee5eb639d00f8713a35 | refs/heads/master | 2020-12-29T02:32:38.535747 | 2017-01-09T06:53:55 | 2017-01-09T06:53:55 | 43,113,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('filter_app', '0005_module_extra_info'),
]
operations = [
migrations.AddField(
model_name='module',
n... | [
"tim.claes@me.com"
] | tim.claes@me.com |
6b502908108a91d453d96034677fc8642e70ff3c | 1d44bfac26793f034a77916cb211bf44a774e1ef | /CIFAR-100/another_mixed_net.py | 24312a86dba5e512321b848846ca366ae4f9c0d0 | [] | no_license | VCharatsidis/Unsupervised-Clustering | d9f81603cc35c9f3087c1ad7d721cd3bfa7de9b3 | b060caa315f0c066410da9580e64d6db0222f2a8 | refs/heads/master | 2021-07-08T21:27:12.145711 | 2021-01-18T17:50:12 | 2021-01-18T17:50:12 | 224,744,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch.nn as nn
import torch
class AnotherMixed(nn.Module):
"""
This class implements a Multi-layer Perceptron in PyTorch.
It handles the different layers and parameters of the model.
O... | [
"charatsidisvasileios@gmail.com"
] | charatsidisvasileios@gmail.com |
354b59baffdbb9741441fd2bfd75671d6d48f582 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s277279155.py | 417c2e83e3ec17dc233cfcc99d01d21a875cdd90 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import math
a, b, h, m = map(int, input().split())
angle = ((h * 60 + m) / 720 - m / 60) * math.pi * 2 # 角度(ラジアン)
ans = math.sqrt(a*a + b*b - 2*a*b*math.cos(angle)) # 余弦定理
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fbcc5d633a59b210d64ed1f5d1123b66fbd1ffc7 | 8dc26aa9afcfeb943306c30b5e4800be36524e32 | /src/ch15/practise/Point1.py | 7fafff09565d670b064b0df04b7cd79ad18781b4 | [] | no_license | MITZHANG/ThinkPython | 5ce75a78ae811c6229269d34d5e819803fde8799 | b68d01df66124a9d6d10bcde61ca324c1a1592d8 | refs/heads/master | 2022-05-07T10:46:27.006351 | 2018-12-02T03:26:47 | 2018-12-02T03:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | """This module contains a code example related to
Think Python, 2nd Edition
by Allen Downey
http://thinkpython2.com
Copyright 2015 Allen Downey
License: http://creativecommons.org/licenses/by/4.0/
"""
class Point:
"""Represents a point in 2-D space.
attributes: x, y
"""
def print_point(p):
"""Pri... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
55adc70658d75b1258437b04056420d0dd722bd3 | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/to_be_fixed/needsfixing/movie4uch.py | 9fe22b01e7d14100e698e0cfbb4ea3d96376cde4 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,343 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
888965d5675a8f7fddf51e681409041dbeba44d1 | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_08/person.py | 5d69f944211008757fc2ea9a8bfa43496fbfa767 | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | def build_person(first_name, last_name, age=''):
"""返回一个字典,其中包含有关一个人的信息"""
person = {'first': first_name, 'last': last_name}
if age:
person['age'] = age
return person
musician = build_person('jimi', 'hendrix', age=27)
print(musician)
| [
"darmi19@163.com"
] | darmi19@163.com |
69dc833fbd6f66e9bb74f8674acfcdcded16f069 | 07c6f13115eba392ae9d0f1b8916e862907dfa0c | /backend/home/migrations/0005_auto_20200824_0822.py | a35246626bbd4baa31a37a6f385a216127901486 | [] | no_license | crowdbotics-apps/mobile-24-aug-dev-9264 | 5ac37888b870f21c5b662be7971ed31fb320afb6 | 74df25211a9fba244fe377b1595f4239445e69d5 | refs/heads/master | 2022-12-05T07:28:19.060867 | 2020-08-24T10:59:05 | 2020-08-24T10:59:05 | 289,830,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 2.2.15 on 2020-08-24 08:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0004_auto_20200824_0723"),
]
operations = [
migrations.RemoveField(model_name="customtext", name="title",),
migrations.AddF... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1b808a6ba74a02d33f7d1f10c324f04b8ca5ecd6 | cc5156902315a9ff0af3cc323992d3a6606a0bb1 | /cyclic sort/find the first k missing positive numbers.py | e500548815b920ce3a447a89dcb0eeb7623ba404 | [
"MIT"
] | permissive | smksevov/Grokking-the-coding-interview | 8ad6f7b11ac0c3f2a08c580a5d542b3745e9ad0b | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | refs/heads/main | 2023-06-30T03:07:39.054942 | 2021-08-05T08:25:31 | 2021-08-05T08:25:31 | 515,096,499 | 1 | 0 | MIT | 2022-07-18T08:26:16 | 2022-07-18T08:26:15 | null | UTF-8 | Python | false | false | 1,174 | py | # Given an unsorted array containing numbers and a number ‘k’,
# find the first ‘k’ missing positive numbers in the array.
# Example:
# Input: [3, -1, 4, 5, 5], k=3
# Output: [1, 2, 6]
# Explanation: The smallest missing positive numbers are 1, 2 and 6.
# O(N + K) space:O(1)
def find_first_k_missing_positive_number(... | [
"394104840@qq.com"
] | 394104840@qq.com |
b48e2095b08d287ca5bbe8003a8471badaefb42a | f891828ffe9c8501d276560c8c52d319f284056f | /404_left_leave_sum_e/root_count.py | 296baac2fa8e5b3a9061ab1decfbadbecdce1b9c | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sumOfLeftLeaves(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def rec... | [
"chao.shi@hpe.com"
] | chao.shi@hpe.com |
1cb47536871779d20749b551985661412d2fcd3c | c2471dcf74c5fd1ccf56d19ce856cf7e7e396b80 | /chap11/3.py | eb193de9c867a2242585a4330664c3af97d2b47c | [] | no_license | oc0de/pythonEpi | eaeef2cf748e6834375be6bc710132b572fc2934 | fb7b9e06bb39023e881de1a3d370807b955b5cc0 | refs/heads/master | 2021-06-18T05:33:19.518652 | 2017-07-07T04:34:52 | 2017-07-07T04:34:52 | 73,049,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from heapq import *
def sortAlmostSortedArray(s, k):
minHeap = []
for i in range(k):
heappush(minHeap, s[i])
idx = k
while idx < len(s):
heappush(minHeap, s[idx])
print heappop(minHeap)
idx += 1
while minHeap:
print heappop(minHeap)
sortAlmostSortedArray... | [
"valizade@mail.gvsu.edu"
] | valizade@mail.gvsu.edu |
17a20ec8bc36206daef719d8707bb6582bb67886 | 2c2bef621c173e8beba2917924d9b08bfb8c0eaf | /Options_Math/Matrix_Math_Python.py | ce1e1c4214eec679d55a92116d9d42b887be8315 | [] | no_license | Bhaney44/Options | d7c4d6aed57a0bbbff9731d912dfc764bbef512f | 8c265c33d111d530f5de329732f27585c4b750a4 | refs/heads/master | 2022-11-25T13:54:51.655061 | 2020-07-31T22:52:26 | 2020-07-31T22:52:26 | 273,760,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | #Matrix Math
import numpy as np
#matrix arrays
x = np.array([1,5,2])
y = np.array([7,4,1])
#addition
x + y
array([8, 9, 3])
#multiplication
x * y
array([ 7, 20, 2])
#substraction
x - y
array([-6, 1, 1])
#division
x / y
array([0, 1, 2])
#Modulus - absolute value or a constant ratio
x % y
array([1, 1, 0])
#Vecto... | [
"noreply@github.com"
] | Bhaney44.noreply@github.com |
5a056c350dcd29d87aa97c0915bf6385c065f2b0 | 50e2bf921351b62cdb9b64ce79e081c0513343e2 | /src/main.py | 2bbdc2b21d587f0290e6d0f81690f93d8decf811 | [
"MIT"
] | permissive | mattjoswald/smart-thermostat | b16d7fc3b61fb9416f462df33aa319b6a6c92175 | 4942ccfad9e0ad1206a84a8b271565d48335bbce | refs/heads/master | 2020-12-02T13:06:48.627060 | 2019-12-26T06:16:19 | 2019-12-26T06:16:19 | 231,015,646 | 0 | 0 | MIT | 2019-12-31T03:01:04 | 2019-12-31T03:01:03 | null | UTF-8 | Python | false | false | 745 | py | 'Smart thermostat project main module'
from cpx.sensor import Sensor
from cpx.timingknob import TimingKnob
from cpx.heaterrelay import HeaterRelay
from cpx.buttons import Buttons
from cpx.display import Display
from thermocontroller import ThermoController
TEMP_CHANGE_INCREMENT = 0.1
DEFAULT_DESIRED_TEMP = 21.0
BUTTO... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
44b88f8ceaf6586d2b0d0016961321a743780bac | 30dc32fd39cf71c76fc24d53b68a8393adcac149 | /OWDTestToolkit/apps/Email/__main.py | ff3f949da55fe151c72c0d1071d39d3f8773e2df | [] | no_license | carlosmartineztoral/OWD_TEST_TOOLKIT | 448caefdc95bc3e54aad97df0bff7046ffb37be1 | 50768f79488735eba8355824f5aa3686a71d560a | refs/heads/master | 2021-01-15T17:14:03.614981 | 2013-06-11T12:48:18 | 2013-06-11T12:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from OWDTestToolkit.global_imports import *
import deleteEmail ,\
emailIsInFolder ,\
goto_folder_from_list ,\
openMailFolder ,\
openMsg ,\
remove_accounts_and_restart ,\... | [
"roy.collings@sogeti.com"
] | roy.collings@sogeti.com |
e8af622b6a1fcc7d31f00df00cfbdb2d4905bf1a | f68732bc40a7a90c3a1082e4b3a4154518acafbb | /script/dbus/sessionBus/audioSink/011_sinkSetVolumeNotPlay.py | 874cbce8daddd6329480c8c5bdb73a95deb648c6 | [] | no_license | lizhouquan1017/dbus_demo | 94238a2307e44dabde9f4a4dd0cf8ec217260867 | af8442845e722b258a095e9a1afec9dddfb175bf | refs/heads/master | 2023-02-11T19:46:27.884936 | 2021-01-08T05:27:18 | 2021-01-08T05:27:18 | 327,162,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # -*- coding: utf-8 -*-
# ****************************************************
# @Test Case ID: 011_sinkSetVolumeNotPlay
# @Test Description: 设置音量大小
# @Test Condition:
# @Test Step: 1.设置音量大小,不播放声音反馈;
# # @Test Result: 1.检查设置成功;
# @Test Remark:
# @Author: ut000511
# ******************... | [
"lizhouquan@uniontech.com"
] | lizhouquan@uniontech.com |
427b3c825edd8de722ada05971ee97d2bcad81f0 | d775cdfb84e09909ebfdbef6f827c13b3921e0c4 | /example/tornado_period_server.py | 822aba54f47efd4b5357c0f99909128abcaa7e02 | [] | no_license | land-pack/sscan | 28e114e87a4c4131177f08ded7198ad8059ab779 | f68b3c124ddba073194d4e8a0b1b52a1f37030b2 | refs/heads/master | 2020-03-18T13:33:19.243078 | 2018-05-30T02:40:22 | 2018-05-30T02:40:22 | 134,791,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from socket import socket
from socket import AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_REUSEADDR, SO_BROADCAST
import tornado.ioloop
import tornado.web
def attentionPlease():
"""
Get self host information and then
broadcast it out.
"""
cs = socket(AF_INET, SOCK_DGRAM)
cs.setsockopt(SOL_SOCKET, SO_... | [
"landpack@sina.com"
] | landpack@sina.com |
6a9c731ec3f178280fea0968e582e1e28db041bc | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/play_motion/catkin_generated/pkg.develspace.context.pc.py | 446b10b7da92a6a54200af7d1784053b527689fa | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sandeepan/tiago_public_ws/src/play_motion/play_motion/include".split(';') if "/home/sandeepan/tiago_public_ws/src/play_motion/play_motion/include" != "" else []
PROJECT_CATKIN_DEPENDS = "actionli... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
7e1625f57fe84fe7dd1f3b22951765a30e604e33 | f576f0ea3725d54bd2551883901b25b863fe6688 | /eng/tox/run_verifytypes.py | 762ada2b77e747b7aacca4898f734320a7d6892e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,930 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
8aa9c06ffa56b65332bf3a4596300d836a9c88be | b0e22deb519ec621b5f866bb15d15d597e6e75d4 | /ciscoisesdk/models/validators/v3_0_0/jsd_ab203a1dd0015924bf2005a84ae85477.py | 9f0a8fd4323e48dcbd27985f5b7127c2d7ea108e | [
"MIT"
] | permissive | oianson/ciscoisesdk | 49ed9cd785a8e463cac4c5de3b1f3ff19e362871 | c8fe9d80416048dd0ff2241209c4f78ab78c1a4a | refs/heads/main | 2023-07-31T20:08:29.027482 | 2021-07-09T15:16:04 | 2021-07-09T15:16:04 | 385,743,799 | 0 | 0 | MIT | 2021-07-13T21:52:18 | 2021-07-13T21:52:18 | null | UTF-8 | Python | false | false | 2,516 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine bulkRequestForIPToSGTMapping data model.
Copyright (c) 2021 Cisco and/or its affiliates.
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 withou... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
cd645756f1ac5b85b1c2c540d0a54907e4b6abc6 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_1_aniketshah_counting_sheep.py | b23af25099e5a94affe671bb50162a7d3a36c0f6 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 699 | py | def countingSheep(startNumber):
if startNumber == 0:
return "INSOMNIA"
numbersSeen = set([])
i = 0
number = 0
while (len(numbersSeen) < 10):
i = i + 1
number = startNumber * i
for d in str(number):
numbersSeen.add(d)
return number
readFile = op... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
c6d4934ea3a2820d247f639becd1a94b8cc5068b | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/piratesgui/RadioButton.py | 9682de9337946e58656d2cbcef9c94eb1e501eb5 | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.piratesgui.RadioButton
from pandac.PandaModules import *
from direct.gui.DirectButton import *
class RadioButton(DirectButton):... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
6a5974222c1f21fd29a28373a56179bd00333e3f | cb8c62659f9509bbc01237a09cf8730b57f4a84f | /Dcc/plugin.py | 4a6c21ee8bb1c8df680fb88a8add5af49aa94430 | [] | no_license | stepnem/supybot-plugins | 5bd795319036ab21cd81b00a23e0c1f712876d3e | 6838f7ae22ad1905272cf7e003fb803e637c87d8 | refs/heads/master | 2021-01-01T18:49:44.478383 | 2012-01-05T04:14:24 | 2012-01-05T04:14:24 | 281,407 | 8 | 4 | null | 2016-11-01T20:15:17 | 2009-08-18T21:55:56 | Python | UTF-8 | Python | false | false | 7,407 | py | ###
# Copyright (c) 2005, Ali Afshar
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, a... | [
"stepnem@gmail.com"
] | stepnem@gmail.com |
76075941bd7e467d44995643e233f13eca483d18 | e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3 | /0124 Binary Tree Maximum Path Sum.py | 3772643dcebbd0d82ff8dd51ecb723631c33f535 | [
"MIT"
] | permissive | kevin-fang/leetcode | 2744ff01e791db6f60edf946ef71451fae92ef6f | 3958f888b30bb3e29916880ecec49b3870a0bea3 | refs/heads/master | 2022-12-15T07:50:01.056016 | 2020-09-10T03:47:53 | 2020-09-10T03:47:53 | 294,296,037 | 3 | 0 | MIT | 2020-09-10T03:47:39 | 2020-09-10T03:47:38 | null | UTF-8 | Python | false | false | 698 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def helper(self, node):
if node is None:
return 0
left_max = self.helpe... | [
"mdabedincs@gmail.com"
] | mdabedincs@gmail.com |
7075a0a9fe98a746e96222a704367de7151ff994 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1325168/snippet.py | 28eec836542399a12c1ef4027f7db0df6443778c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 986 | py | import requests
import json
class ClickyApi(object):
"""
A simple Python interface for the Clicky web analytics api.
Relies on the Requests library - python-requests.org
Usage:
YOUR_CLICKY_SITE_ID = '12345'
YOUR_CLICKY_SITE_KEY = 'qwerty'
clicky = ClickyApi(YOUR_CLICKY_SITE_ID, YOUR_CLIC... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
149d6fa9b596c90e0ae82587e4ffc555cd25f416 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_index.py | dbb4bd9fd48d9c62bf796bf622299c21d088a604 | [
"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 | 430 | py |
#calss header
class _INDEX():
def __init__(self,):
self.name = "INDEX"
self.definitions = [u'to prepare an index for a book or collection, or arrange it in an index: ', u'to change a system of numbers according to each other or a fixed standard: ']
self.parents = []
self.childen = []
self.properties = []... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8252567d9a62b4688bd1e0d9909847736b2f41e4 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_diagnosticsettingscategory.py | 81e867b980ec07f78f416b811e20a8757ce96ad7 | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 6,634 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
9222db26105e569fbad307f258bb1299d5225365 | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/functions/25VariableLengthArgv.py | b5824e86a2958cb40b1f05bc9bf98f85d3963f09 | [] | 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 | 506 | py | def f01(*n, x):
print('x :', x, type(x))
print('n :', n, type(n))
# f01(1)
# Traceback (most recent call last):
# File "/Code/venv/functions/25VariableLengthArgv.py", line <>, in <module>
# f01(1)
# TypeError: f01() missing 1 required keyword-only argument: 'x'
# f01(1, 2)
# TypeError: f01() missing 1 r... | [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
7751ad4bdeec9135090e42680ec1598b9710257c | 9844294a93eef781f8cc2473abb0046f8a416966 | /xpdan/tests/test_io.py | e98861be36cd90a551663017f2f9d0ac133f5b9c | [] | no_license | sbillinge/xpdAn | b5decca72d1539e10a6920df5c75cc0374486687 | 0fc91ea7a26e505ff65e58b08b17b145f3e8e7d8 | refs/heads/master | 2021-01-01T18:49:49.964014 | 2017-07-26T15:42:18 | 2017-07-26T15:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | ##############################################################################
#
# xpdan by Billinge Group
# Simon J. L. Billinge sb2896@columbia.edu
# (c) 2016 trustees of Columbia University in the City of
# New York.
# All rights... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
c308f33845f5ac2ca3beaf0b4d9efb85dad9b9c6 | fd83af9e6348eddae2f4bfeeb1760048763e857b | /OsSearch/src/search_files.py | ca688ca06b42139934e87294770f837ac754d35b | [] | no_license | rduvalwa5/NewPythonOsLevel | 6f41f4c4934a0f3a016b435acbc4bbc5e2d057c5 | 44a434ace6a21ea27dfffd14a4b1f55931907673 | refs/heads/master | 2020-04-13T01:18:38.451607 | 2019-03-08T05:26:12 | 2019-03-08T05:26:12 | 162,870,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,108 | py | '''
Created on Jul 16, 2016
purpose search for files
@author: rduvalwa2
'''
import glob
import os
from os.path import join, getsize
import string
class find_file:
def __init__(self):
self.allFoundFiles = []
self.constrainedFiles = []
self.allDirectories = []
self.ar... | [
"rduvalwa5@hotmail.com"
] | rduvalwa5@hotmail.com |
854b0ae1add69f394aaa72b8c9bce2cc76f4601c | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-302262.py | a3a3ff5f7bf6d86259b10c3c2216689e4f7f3c66 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | # -*- coding: iso-8859-1 -*-
"""
Handling of arguments: options, arguments, file(s) content iterator
For small scripts that:
- read some command line options
- read some command line positional arguments
- iterate over all lines of some files given on the command line, or stdin if none given
- give usage message if po... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
13bc41ea13c609620e4b5eccc6962fa2e0a7aa90 | a0500eec8e656301d3e71f4ea240ddabd2994107 | /student/forms.py | e718c658f3efffcd83b3d15cb3e17a47e5b6889d | [] | no_license | abhinavsharma629/Stalk-Site | bc80aaf7ecc91f7b09e64173b351101a41253adf | 37564018543dfb2d0e439a4ee6933477958fca48 | refs/heads/master | 2020-04-19T13:08:28.544661 | 2019-01-30T23:50:26 | 2019-01-30T23:50:26 | 168,210,403 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from django import forms
from .models import StudentData
class StudentSubmit(forms.ModelForm):
er_no=forms.CharField(widget=forms.TextInput(attrs={'class':'form-group'}),required=True,max_length=100)
name=forms.CharField(widget=forms.TextInput(),required=True,max_length=150)
college_name=forms.CharField(widge... | [
"abhinavsharma629@gmail.com"
] | abhinavsharma629@gmail.com |
0e02b9d97b66a81201874125f05af122a2bdf46f | 761a3c37621b2daae06d9fe29c93e4d9a8bf5a95 | /policy/networks/fixed_actor_network.py | a269867bb588716baf82eb8a034559e15f03d784 | [] | no_license | matthewzhang1998/ecco | 486dd37e3b2038b0d3f4d9f40de094f64b6a0679 | b25b6d6d4d815e716c19aa53010e70583fbe5686 | refs/heads/master | 2020-03-26T19:36:55.511529 | 2018-09-17T04:53:52 | 2018-09-17T04:53:52 | 145,275,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 14 14:21:09 2018
@author: matthewszhang
"""
from policy.networks import base_network
class network(base_network.base_network):
def __init__(self, *args, **kwargs):
pass
| [
"matthew.zhang@mail.utoronto.ca"
] | matthew.zhang@mail.utoronto.ca |
dbbe212390f1fa211ad11556a684327f80674fe8 | 366d50ddb1ae1c20f2e8bcbc1b6cde58996ac24a | /Python-02网络数据采集/Reference/chapter6-数据读取/2-getUtf8Text.py | d76ea93faa287090d1058be700deefa0793c77f0 | [] | no_license | luilui163/PythonBook | fe7796ca26842f07d3baa5d754f79cda5fd2b18f | f81585479fb3859dfd818fccd43a64e50f6f81dc | refs/heads/master | 2020-04-06T12:59:10.949209 | 2017-11-09T10:43:36 | 2017-11-09T10:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # 使用BeautifulSoup模块对txt格式文本进行UTF-8编码再提取
# 解决:Python把文本读成ASCII编码格式,而浏览器把文本读成 ISO-8859-1 编码格式
from urllib.request import urlopen
from bs4 import BeautifulSoup
# 使用BeautifulSoup获取网页源代码
html = urlopen("http://en.wikipedia.org/wiki/Python_(programming_language)")
bsObj = BeautifulSoup(html, "lxml")
content = bsObj.find(... | [
"lafitehhq@126.com"
] | lafitehhq@126.com |
e0b09cdc02c1147f7eebd503a05959609d961462 | fab15f0e35d3196b9e486d1d3e4f42b22f326817 | /scripts/ugm/52_create_curation.py | 73348c37c05695f765891d9bb8382f70a2424de0 | [] | no_license | nakamura196/genji | 4511c9d297b97697cad87f570085ac865ca0f750 | e1079ad2839772fca4c93657d96e6bee14957b68 | refs/heads/master | 2022-06-03T01:18:37.789217 | 2020-05-01T11:44:44 | 2020-05-01T11:44:44 | 194,894,216 | 0 | 0 | null | 2019-08-28T23:44:12 | 2019-07-02T15:56:09 | CSS | UTF-8 | Python | false | false | 2,515 | py | import pandas as pd
from rdflib import URIRef, BNode, Literal, Graph
from rdflib.namespace import RDF, RDFS, FOAF, XSD
from rdflib import Namespace
import numpy as np
import math
import sys
import argparse
import json
import urllib.request
import os
import csv
import glob
import requests
import csv
map = {}
label_ma... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
b1b319ea7e1a3d520dec06505878bcb419be66fd | 35429631806692df957bd74a77e5c97db7d5db1e | /05_Themenmodellierung/project.py | 10cbef9bdc4818d3982ef4ad3a87f94bd1b66503 | [
"MIT"
] | permissive | felixdittrich92/NLP | f135f4390a3d76676dbd28fda11fad49c68ae8a5 | 1097d43dd1c99762b6a909a876a765bc79245471 | refs/heads/master | 2020-10-01T14:32:14.389080 | 2020-09-18T11:33:23 | 2020-09-18T11:33:23 | 227,556,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.decomposition import NMF
questions = pd.read_csv('./TextFiles/quora_questions.csv')
print(questions.head())
tfidf = TfidfVectorizer(max_df=0.95, min_df=2, stop_words='english')
dtm = tfidf.fit_transform(questions['Question'])... | [
"felixdittrich92@gmail.com"
] | felixdittrich92@gmail.com |
e941491f6ee750b1d448382918e1e2807a6dd007 | b53e3d57d31a47a98d87141e44a5f8940ee15bca | /src/programy/utils/license/keys.py | 65a5dc3d00fa025f122135206e067f668429418a | [
"MIT"
] | permissive | Chrissimple/program-y | 52177fcc17e75fb97ab3993a4652bcbe7906bd58 | 80d80f0783120c2341e6fc57e7716bbbf28a8b3f | refs/heads/master | 2020-03-29T13:20:08.162177 | 2018-09-26T19:09:20 | 2018-09-26T19:09:20 | 149,952,995 | 1 | 0 | null | 2018-09-23T06:11:04 | 2018-09-23T06:11:04 | null | UTF-8 | Python | false | false | 3,057 | py | """
Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, mod... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
fe30adbedfb9ded1a2bbaa6ae520a3830eb00f32 | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/utils/custom_print.py | 589ac02c3990c2630664b441e021a3eab0f9f5b6 | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | # -*- coding: utf-8 -*-
"""
utils custom_print module.
"""
import colorama
import pyrin.application.services as application_services
def print_colorful(value, color, force=False):
"""
prints the given value into stdout using the given color.
if the application has been started in scripting mode
it d... | [
"mohamadnobakht@gmail.com"
] | mohamadnobakht@gmail.com |
a04e9f18fb32c8d4bac7255f10399e78f854df1c | 54e3397609cc31b9142d483a29a9a3854800a620 | /create/factoryMethod2.py | 6b56640fb0915d08428d7528383759fbf17c12b3 | [] | no_license | qiangayz/DesignPatterns | 1ac2ee51e2a176910bc19520dcb6ebb9914e0a36 | 527a0ffe59e5fd980ba6b4387d422d6c96fe1623 | refs/heads/master | 2020-03-23T22:34:21.040915 | 2018-07-24T16:10:22 | 2018-07-24T16:10:22 | 142,183,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # _*_coding:utf-8_*_
'''
工厂方法模式是简单工厂模式的衍生,解决了许多简单工厂模式的问题。
首先完全实现‘开-闭 原则’,实现了可扩展。其次更复杂的层次结构,可以应用于产品结果复杂的场合。
工厂方法模式的对简单工厂模式进行了抽象。有一个抽象的Factory类(可以是抽象类和接口),这个类将不在负责具体的产品生产,
而是只制定一些规范(接口作用),具体的生产工作由其子类去完成。在这个模式中,工厂类和产品类往往可以依次对应。即一个抽象工厂对应一个抽象产品,一个具体工厂对应一个具体产品,这个具体的工厂就负责生产对应的产品。
工厂方法模式(Factory Method pattern)是最典型的模板方法... | [
"38162672+qiangayz@users.noreply.github.com"
] | 38162672+qiangayz@users.noreply.github.com |
986ae54cc208bb5b8f14735de120a47266e6fe9f | 9c5f36b72323090b9f0254938923a04b436fd3be | /scripts/test_image_contrast.py | 81fd44194ba9ab7620bb56b92c03da263360a07a | [] | no_license | mdlaskey/IL_ROS_HSR | 7c7233905e6a1fc8388661236bade3862da0fc90 | d12f8397249acea4fae71d12c74074314a8a005e | refs/heads/master | 2021-01-20T18:30:11.815581 | 2018-04-07T01:14:41 | 2018-04-07T01:14:41 | 90,918,344 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import numpy as np
import cPickle as pickle
import matplotlib.pyplot as plt
import IPython
import sys
sys.path.append('/home/autolab/Workspaces/michael_working/yolo_tensorflow/')
import configs.config_bed as cfg
import cv2
if __name__ == "__main__":
#-----Reading the image-----------------------------------------... | [
"mdlaskey@umich.edu"
] | mdlaskey@umich.edu |
bed356639866f41e11f0b2455c985aa120917362 | ee803c29e9c5216a16a2699854b98c8a6d9760b8 | /dataServer/FlaskDataServer/app/test.py | 6dd9b65ccf3c7303b2957ba3d976bab84c9c4f92 | [] | no_license | algo2019/algorithm | c160e19b453bc979853caf903ad96c2fa8078b69 | 3b5f016d13f26acab89b4a177c95a4f5d2dc1ba1 | refs/heads/master | 2022-12-12T17:59:57.342665 | 2019-02-23T07:45:39 | 2019-02-23T07:45:39 | 162,404,028 | 0 | 0 | null | 2022-12-08T01:29:20 | 2018-12-19T08:08:13 | Python | UTF-8 | Python | false | false | 204 | py | import urllib2
import cPickle as pickle
import json
r = urllib2.urlopen('http://127.0.0.1:5001/api/v1.0/dom_info?symbol=a&&start=20100101')
res = r.read()
print pickle.loads(str(json.loads(res)['res'])) | [
"xingwang.zhang@renren-inc.com"
] | xingwang.zhang@renren-inc.com |
2af4aa1e5d0238e05026c8ffb75754f820cc2f9a | 253089ef4ee99c50cdaa23fde4d789794789e2e9 | /15/enumerate_data.py | a77262511b818966d3f7f2bb7417e4e4ee3d2f3a | [] | no_license | Zaubeerer/bitesofpy | 194b61c5be79c528cce3c14b9e2c5c4c37059259 | e5647a8a7a28a212cf822abfb3a8936763cd6b81 | refs/heads/master | 2021-01-01T15:01:21.088411 | 2020-11-08T19:56:30 | 2020-11-08T19:56:30 | 239,328,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | names = 'Julian Bob PyBites Dante Martin Rodolfo'.split()
countries = 'Australia Spain Global Argentina USA Mexico'.split()
def enumerate_names_countries():
"""Outputs:
1. Julian Australia
2. Bob Spain
3. PyBites Global
4. Dante Argentina
5. Martin ... | [
"r.beer@outlook.de"
] | r.beer@outlook.de |
6fbb0dabca820df63974542daab4cc8236741723 | 208446b30b8c4a479ed414376453c4edbab5053b | /python_space/Atest/duoxiancheng/1.py | b161562b65506e220985a498fba9628eda000dea | [] | no_license | fengyu0712/myclone | 6e0bcb0e4b4f5919c4cabb1eb1be49afa7e68ba2 | d4e47adf81b3ced0f433d5e261989b0bbb457fa4 | refs/heads/master | 2023-02-10T06:50:43.349167 | 2021-01-05T08:38:35 | 2021-01-05T08:38:35 | 316,674,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import threading
import time
import random
start_time =time.time()
def do_something():
print ("{thread_name} start at {now}\n".format(thread_name=threading.currentThread().name,now=time.time()))
time.sleep(1)
print ("{thread_name} stop at {now}".format(thread_name=threading.currentThread().name,now=time.ti... | [
"121193252@qq.com"
] | 121193252@qq.com |
6e9bb166100ed8ecfed7b6e5acfac458e92d0fab | ab65fa746dafd99873d4fd0a1576469809db162c | /django/apps/stories/migrations/0012_auto_20150527_0113.py | f3ab04d2999839499ee31db58ce176f33729546d | [] | no_license | haakenlid/tassen-dockerize | 27dfb13a05925e2570949ad6337379fe6bc8d452 | c867c36c1330db60acfc6aba980e021585fbcb98 | refs/heads/master | 2021-01-22T03:14:05.219508 | 2017-03-23T12:57:54 | 2017-03-23T12:57:54 | 81,106,809 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('stories', '0011_auto_20150527_0050'),
]
operations = [
migrations.AlterField(
model_name='storyimage',
... | [
"haakenlid@gmail.com"
] | haakenlid@gmail.com |
3312a1191c10cb37edbb6e8c7a0bd3feb12e7e8b | eec9299fd80ed057585e84e0f0e5b4d82b1ed9a7 | /blog/views.py | ada404e5e604dbf81ca51b66062ae71c9a74efc4 | [] | no_license | aimiliya/mysite | f51967f35c0297be7051d9f485dd0e59b8bb60c2 | b8e3b639de6c89fb8e6af7ee0092ee744a75be41 | refs/heads/master | 2020-04-08T19:06:36.539404 | 2018-12-01T08:05:18 | 2018-12-01T08:05:18 | 159,640,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | from django.core.paginator import Paginator
from django.db.models import Count
from django.shortcuts import render, get_object_or_404
from read_statistic.utils import read_statisitcs_once_read
from .models import Blog, BlogType
EACH_PAGE_BLOGS_NUMBER = 10
def get_blog_list_common_data(request, blog_all_list):
pa... | [
"951416267@qq.com"
] | 951416267@qq.com |
ce31f2005a4906c1d8266048483b4c20e17a7f1c | 969fed6b9f4c0daa728bda52fea73d94bda6faad | /fakeTempControl/oxford/MercurySCPI.py | d2e94fb25e63fcbc0fd4c62448f863e23a7df451 | [] | no_license | ess-dmsc/essiip-fakesinqhw | 7d4c0cb3e412a510db02f011fb9c20edfbd8a84f | ad65844c99e64692f07e7ea04d624154a92d57cd | refs/heads/master | 2021-01-18T22:50:50.182268 | 2020-10-01T08:39:30 | 2020-10-01T08:39:30 | 87,077,121 | 0 | 0 | null | 2018-12-07T08:43:00 | 2017-04-03T13:28:23 | Python | UTF-8 | Python | false | false | 5,980 | py | # vim: ft=python ts=8 sts=4 sw=4 expandtab autoindent smartindent nocindent
# Fake Mercury Temperature Controller
#
# Author: Douglas Clowes 2014
#
from MercuryDevice import MercuryDevice
import random
import re
import os
import sys
import time
sys.path.insert(0, os.path.realpath(os.path.abspath(os.path.join(os.path.d... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
95a422e8dee940a9edc01bbbe8a0d875f40c8fe1 | 817588295567c6ea114e5a25abfb9aabc9b6b312 | /planetary_system_stacker/planetary_system_stacker_windows.spec | 6a20795833d229c8aa878d72ad907a502dedc9d1 | [] | no_license | Flashy-GER/PlanetarySystemStacker | 72037bcbfd0bbd184d06c997ccbcac991c60c03f | bae9191746b0456fa97a68a70b52a38750bf8ee0 | refs/heads/master | 2023-02-13T03:46:00.808743 | 2021-01-05T19:19:45 | 2021-01-05T19:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | spec | # -*- mode: python -*-
block_cipher = None
# Integrate astropy as data directory instead of module:
import astropy
astropy_path, = astropy.__path__
a = Analysis(['planetary_system_stacker.py'],
pathex=['D:\\SW-Development\\Python\\PlanetarySystemStacker\\planetary_system_stacker'],
binaries... | [
"rolf6419@gmx.de"
] | rolf6419@gmx.de |
c782987ab7f5eb6736b6b9063fcbb3c8fbb6fa90 | d38a2f807138232165fd665fd74231df942efc8d | /exercises/21_jinja2/conftest.py | 2b59c73af8fd796c19bf8fb37e3f98571a465c85 | [] | no_license | maximacgfx/work | b2537381916fe92c6267302375e49809cf7f327b | 84a3da63b65a9883febd5191ca9d759c43a15bfa | refs/heads/master | 2022-11-22T06:14:21.593468 | 2019-09-04T19:25:53 | 2019-09-04T19:25:53 | 25,587,765 | 0 | 1 | null | 2022-11-15T11:25:46 | 2014-10-22T15:03:24 | Python | UTF-8 | Python | false | false | 260 | py | import re
import yaml
import pytest
def strip_empty_lines(output):
lines = []
for line in output.strip().split('\n'):
line = line.strip()
if line:
lines.append(re.sub(' +', ' ', line.strip()))
return '\n'.join(lines)
| [
"vagrant@stretch.localdomain"
] | vagrant@stretch.localdomain |
7e2280a0a8cc80790caebdbd2dcdd8770668b623 | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/desk/doctype/notification_settings/test_notification_settings.py | ed60aac3c067eff22a0a8bb529d0d61175255e1b | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # Copyright (c) 2021, VMRaid Technologies and Contributors
# See license.txt
# import vmraid
import unittest
class TestNotificationSettings(unittest.TestCase):
pass
| [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
50f230ad7fe45a58dc789e52770f1670d7cca518 | 2ce3ef971a6d3e14db6615aa4da747474d87cc5d | /练习/Python基础/工具组件/时间处理/datetime_test.py | aea34308073615d9f580245e46ef6834e2d5eee7 | [] | no_license | JarvanIV4/pytest_hogwarts | 40604245807a4da5dbec2cb189b57d5f76f5ede3 | 37d4bae23c030480620897583f9f5dd69463a60c | refs/heads/master | 2023-01-07T09:56:33.472233 | 2020-11-10T15:06:13 | 2020-11-10T15:06:13 | 304,325,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import datetime
class DatetimeTest:
def start_date(self, current_date, delta_date):
"""
计算执行时间前N天的日期
:param current_date: 执行时间
:param delta_date: 当前日期偏差天数
:return: 返回当前日期前N天的日期
"""
current_date = datetime.datetime.strptime(current_date, "%Y-%m-%d") # 将字符串转... | [
"2268035948@qq.com"
] | 2268035948@qq.com |
632157ea55bfbdc2a50330d4b79d18c9094b58c7 | d7663e323e2b48ad094e0ab7454ab0bed73aafd1 | /pychzrm course/Django/day_01/code/mywebsite1/mywebsite1/views.py | a0ed194f3f17e5a79bebfa79a6e5dc5d3653c2c6 | [] | no_license | Jack-HFK/hfklswn | f9b775567d5cdbea099ec81e135a86915ab13a90 | f125671a6c07e35f67b49013c492d76c31e3219f | refs/heads/master | 2021-06-19T05:58:54.699104 | 2019-08-09T10:12:22 | 2019-08-09T10:12:22 | 201,442,926 | 7 | 0 | null | 2021-04-20T18:26:03 | 2019-08-09T10:07:20 | HTML | UTF-8 | Python | false | false | 3,682 | py | """
视图处理函数 : request接受请求:代表的浏览器给我们的数据
return 响应内容
一个视图处理函数可以对应多个url路由
一个utl路由只能对应一个视图处理函数
"""
from django.http import HttpResponse
# 视图处理函数
def index_view(request):
html = "欢迎来到主页面"
html += "<a href='/page1'> 第一页 </a>"
html += "<a href='/page2'> 第二页 </a>"
html += "<... | [
"88888888@qq.com"
] | 88888888@qq.com |
cf03c0cf829ae23af046854d5a4f1118d9e1b1ef | e2f7c64ea3674033c44fa4488e6479d21c86ce54 | /mkoenig/python/database/wholecellkb/wsgi.py | e9dcdff586b7e2867b033b48f36fe50fe2a43870 | [] | no_license | dagwa/wholecell-metabolism | f87c6105c420ebb83f7bfd19a44cd59df2b60414 | aa0c3c04680f56e0676b034eed92c34fd87b9234 | refs/heads/master | 2021-01-17T13:05:18.679605 | 2016-10-19T08:39:19 | 2016-10-19T08:39:19 | 31,332,881 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for wholecellkb 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wholecellkb.settings")
from djang... | [
"konigmatt@googlemail.com"
] | konigmatt@googlemail.com |
b81c75bb9187cf61314bd837262eea0add8331fb | ba766731ae8132a14460dc3b92bc73cb951a5612 | /header/lobby.py | 43ec541c23a7b3a0dcb9e9141b6ec254fd12da8b | [] | no_license | Jineapple/aoc-mgz | 566318dc96b8a19dac7a03c450ec112fa9a421a8 | bc263ac3728a714c670d6120b9fae952f60818a2 | refs/heads/master | 2021-01-15T12:25:25.211495 | 2015-05-17T04:27:34 | 2015-05-17T04:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from construct import *
from aoc.mgz.enums import *
"""Player inputs in the lobby, and several host settings"""
lobby = Struct("lobby",
Array(8, Byte("teams")), # team number selected by each player
Padding(1),
RevealMapEnum(ULInt32("reveal_map")),
Padding(8),
ULInt32("population_limit"), # multiply by 25 for Use... | [
"happyleaves.tfr@gmail.com"
] | happyleaves.tfr@gmail.com |
70030042ac847cb5174a253c07fa9f9c635f637f | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210719110929.py | 20b3509b7524593d8999e837b41f92d3b9ffb6f9 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,463 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
04346790cd9cf5310fb94eba427a9102cf59e99d | 5ed2d0e107e4cdcd8129f418fdc40f1f50267514 | /AAlgorithms/LongestWordInDictionary/test.py | 68b3f9841632adcbba727c63a7beed0329f2636f | [] | no_license | tliu57/Leetcode | 6cdc3caa460a75c804870f6615653f335fc97de1 | c480697d174d33219b513a0b670bc82b17c91ce1 | refs/heads/master | 2020-05-21T03:14:07.399407 | 2018-07-08T18:50:01 | 2018-07-08T18:50:01 | 31,505,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | class Node(object):
def __init__(self):
self.children = {}
self.end = 0
self.word = ""
class Trie(object):
def __init__(self):
self.root = Node()
def insert(self, word, index):
curr = self.root
for c in word:
if not c in curr.children:
curr.children[c] = Node()
curr = curr.children.get(c)... | [
"tliu57@asu.edu"
] | tliu57@asu.edu |
fb82eb83ed7a0670cab22075f2c7c1d27231a585 | 48a647031af30b93b332001544b258a787542c6f | /venv/chapter_20/spider/data_storage.py | f5f27694d9569870052315a462ac75977a203333 | [] | no_license | Adminsys-debug/xdclass_python | 3d3f37f7812336aa79bf9dc0d990658c67156057 | c2e82b750c5337045b07c19a0c9ead5c3752b3a7 | refs/heads/master | 2022-05-20T07:10:33.396655 | 2020-04-18T05:40:48 | 2020-04-18T05:40:48 | 256,659,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/4/11 13:17
# @Author : mr.chen
# @File : data_storage
# @Software: PyCharm
# @Email : 794281961@qq.com
from product import Product
# 数据存储器
class DataStorage:
def storage(self, products):
"""
数据存储
:param products:set结构
... | [
"a794281961@126.com"
] | a794281961@126.com |
74605f100f294cbdb2fd6b1603fc54e1b2f208bf | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/VH_TTH/WH_ZH_HToZG_M_145_TuneZ2star_8TeV_pythia6_tauola_cff.py | 4d683cb2a41735d37ed09f293c40900ce5814b99 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 3,034 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
from GeneratorInterface.ExternalDecays.TauolaSettings_cff import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.int32(1),
# put here the efficiency of your filt... | [
"sha1-dc1081d72f70055f90623ceb19c685a609c9cac9@cern.ch"
] | sha1-dc1081d72f70055f90623ceb19c685a609c9cac9@cern.ch |
0ddf55572f09ed16988fcd1aa1f47e8401d8b4f8 | fac51719e067ee2a70934e3bffdc98802d6dbb35 | /src/textbook/rosalind_ba6i.py | 3097321406cca35d9f4218a69ee6417dcadcbe36 | [
"MIT"
] | permissive | cowboysmall-comp/rosalind | 37730abdd03e86a2106ef39b39cdbae908f29e6e | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | refs/heads/master | 2022-03-05T14:30:21.020376 | 2019-11-20T02:03:09 | 2019-11-20T02:03:09 | 29,898,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
import files
import genetics
def main(argv):
line = files.read_line(argv[0])
edges = [tuple(int(node) for node in edge.split(', ')) for edge in line[1:-1].split('), (')]
genome = genetics.graph_to_genome(edges)
... | [
"jerry@cowboysmall.com"
] | jerry@cowboysmall.com |
fa43b38cc8c680ff7d76c83a79980ff488fd793b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /s89T6kpDGf8Pc6mzf_16.py | 0ae192e947c37b17c83cb839b9559d913bf5a661 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | """

The table below shows which of the segments `a` through `g` are illuminated on
the seven segment display for the digits `0` through `9`. When the number on
the display changes, some of the segments may stay on, some may stay off, and
others change sta... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
18b7335146eec47a871a0deced551625885c4dcb | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/301-400/391-完美矩形.py | d16f82be1881abf68bae10af5492ab41a8008a61 | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 1,067 | py | class Solution:
def isRectangleCover(self, rectangles: list[list[int]]) -> bool:
# 保存所有矩形的四个点
lookup = set()
# 最大矩形的 左下角 右上角
x1 = float("inf")
y1 = float("inf")
x2 = float("-inf")
y2 = float("-inf")
area = 0
for x, y, s, t in rectangles:
... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
81c6fedb138c99e3a0488312702050b36f603ddb | 5439a18b31ac213b16306c9eeacadadfc38cdfb8 | /examples/base_demo.py | bf3e2a354aeb01de311246c14f74ca03912f415e | [
"Apache-2.0"
] | permissive | DaoCalendar/text2vec | 459767e49295c17838179264516e3aa7873ecd11 | c5822a66dfb36623079196d0d0a5f717a829715a | refs/heads/master | 2022-12-30T12:30:13.658052 | 2020-10-22T04:08:06 | 2020-10-22T04:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # -*- coding: utf-8 -*-
"""
@author:XuMing<xuming624@qq.com>
@description:
"""
import numpy as np
import text2vec
text2vec.set_log_level('DEBUG')
char = '我'
result = text2vec.encode(char)
print(type(result))
print(char, result)
word = '如何'
print(word, text2vec.encode(word))
a = '如何更换花呗绑定银行卡'
emb = text2vec.encod... | [
"xuming624@qq.com"
] | xuming624@qq.com |
23754283199886f836e1f45d13b736c23b777186 | a37b756e34fc39c1237fc68997dbef77df9fa6fc | /keras/keras34-44/keras44_8_cifar10_Conv1D.py | ee930cb705b6fa2be595a7c93d86b5b8f8520fae | [] | no_license | jvd2n/ai-study | e20e38493ad295940a3201fc0cc8061ca9052607 | a82f7c6d89db532f881c76b553b5ab3eea0bdd59 | refs/heads/main | 2023-08-06T03:24:39.182686 | 2021-10-06T14:41:01 | 2021-10-06T14:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | import time
from icecream import ic
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.datasets import cifar10
from keras.utils import np_utils
#1. Data
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
ic('********* raw data **********')
ic(x_train.shape, x_test.shape)
ic(y_train.shape,... | [
"juhnmayer@gmail.com"
] | juhnmayer@gmail.com |
5343dfd6363f61f125f0bb08022f46540282dba2 | f6e83bc298b24bfec278683341b2629388b22e6c | /sonic_cli_gen/main.py | bfcd301aedea983579ed265c5c2cdd1c57149398 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | noaOrMlnx/sonic-utilities | 8d8ee86a9c258b4a5f37af69359ce100c29ad99c | 9881f3edaa136233456408190367a09e53386376 | refs/heads/master | 2022-08-17T23:15:57.577454 | 2022-05-18T21:49:32 | 2022-05-18T21:49:32 | 225,886,772 | 1 | 0 | NOASSERTION | 2022-07-19T08:49:40 | 2019-12-04T14:31:32 | Python | UTF-8 | Python | false | false | 1,385 | py | #!/usr/bin/env python
import sys
import click
import logging
from sonic_cli_gen.generator import CliGenerator
logger = logging.getLogger('sonic-cli-gen')
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
@click.group()
@click.pass_context
def cli(ctx):
""" SONiC CLI Auto-generator tool.\r
Gener... | [
"noreply@github.com"
] | noaOrMlnx.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.